Skip to main content

prefect.server.models.variables

Functions

emit_variable_created_event

Emit an event when a variable is created.

emit_variable_updated_event

Emit an event when a variable is updated.

emit_variable_deleted_event

Emit an event when a variable is deleted.

create_variable

Create a variable Args:
  • session: async database session
  • variable: variable to create
Returns:
  • orm_models.Variable

read_variable

Reads a variable by id.

read_variable_by_name

Reads a variable by name.

read_variables

Read variables, applying filers.

count_variables

Count variables, applying filters.

update_variable

Updates a variable by id.

update_variable_by_name

Updates a variable by name.

delete_variable

Delete a variable by id.

delete_variable_by_name

Delete a variable by name.