Database

We support Oracle and Postgres databases.

DB scheme

_images/lambda_db.png
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

base_image_name

base lambda image name

Type:

str

base_image_tag

base lambda image tag

Type:

str

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

status

status

Type:

smallint

user_commands

list with additional user docker commands

Type:

str

version

lambda version

Type:

int

workers

lambda workers

Type:

int