Database
We support Postgres database.
DB scheme
- class luna_lambda.db.lambda_db_tools.models.lambda_models.Column(*args, **kwargs)[source]
 Release some pretty methods for sqlalchemy.Column.
- class luna_lambda.db.lambda_db_tools.models.lambda_models.Lambda(**kwargs)[source]
 Lambda model for database.
- account_id
 account uuid in format “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”, to which this lambda belong
- Type:
 str
- archive_ttl
 archive storage ttl
- Type:
 int
- base_image_name
 base lambda image name
- Type:
 str
- base_image_tag
 base lambda image tag
- Type:
 str
- cpu_limit
 cpu units limit
- Type:
 int
- cpu_request
 cpu unit request
- Type:
 int
- create_time
 date and time of creating lambda
- Type:
 DateTime
- description
 description
- Type:
 str(256)
- gpu
 whether gpu is enabled
- Type:
 smallint
- id
 lambda id, uuid in format “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”
- Type:
 str
- lambda_type
 lambda type
- Type:
 enum
- last_update_time
 date and time of last changed of the lambda
- Type:
 DateTime
- name
 lambda name, uuid in format “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”
- Type:
 str
- namespace
 namespace
- Type:
 str
- pod_count
 lambda pod count
- Type:
 int
- ram_limit
 ram limit
- Type:
 int
- ram_request
 ram request
- Type:
 int
- selector
 lambda selector
- Type:
 dict
- status
 status
- Type:
 smallint
- user_commands
 list with additional user docker commands
- Type:
 str
- version
 lambda version
- Type:
 int
- workers
 lambda workers
- Type:
 int