View Source Cosmox.StoredProcedure (Cosmox v0.1.1)

Manages the creation of stored procedures in CosmosDB

Link to this section Summary

Functions

Creates a stored procedure in the given database/container set.

Deletes a stored procedure in the given database/container set.

Link to this section Functions

Link to this function

create_stored_procedure(database_id, container_id, map)

View Source
@spec create_stored_procedure(
  database_id :: binary(),
  container_id :: binary(),
  stored_procedure :: Cosmox.Structs.StoredProcedure.t()
) :: :ok

Creates a stored procedure in the given database/container set.

Link to this function

delete_stored_procedure(database_id, container_id, stored_procedure_name)

View Source
@spec delete_stored_procedure(
  database_id :: binary(),
  container_id :: binary(),
  store_procedure_name :: binary()
) :: :ok

Deletes a stored procedure in the given database/container set.