InitOwner
Description: Initializes the owner of the canister. This is typically the first method called to set up ownership. Parameters: None Usage:CreateSchema
Description: Creates a new schema within the database. A schema defines the structure of records, including fields and indexes. Parameters:CreateSchemaArgs:[string, Field[], string[]]string: Name of the schema.Field[]: Array of field definitions.string[]: Array of fields to index.
GetSchema
Description: Retrieves the details of a specific schema. Parameters:GetSchemaArgs:[string]string: Name of the schema to retrieve.
ListSchemas
Description: Lists all existing schemas within the database. Parameters:ListSchemasArgs:[]
DeleteSchema
Description: Deletes a specific schema from the database. Parameters:DeleteSchemaArgs:[string]string: Name of the schema to delete.
CreateRecordData
Description: Inserts a new record into a specified schema. Parameters:CreateRecordDataArgs:[string, DBRecord]string: Name of the schema.DBRecord: Record data to insert.
GetRecord
Description: Retrieves a specific record from a schema. Parameters:GetRecordArgs:[string, string]string: Name of the schema.string: ID of the record to retrieve.
GetAllRecords
Description: Retrieves all records within a specified schema. Parameters:GetAllRecordsArgs:[string]string: Name of the schema.
UpdateData
Description: Updates specific fields of an existing record. Parameters:UpdateDataArgs:[string, string, [string, string][]]string: Name of the schema.string: ID of the record to update.[string, string][]: Array of field updates.
DeleteRecord
Description: Deletes a specific record from a schema. Parameters:DeleteDataArgs:[string, string]string: Name of the schema.string: ID of the record to delete.
GetOwner
Description: Retrieves the principal ID of the owner. Parameters:GetOwnerArgs:[]
GetMetrics
Description: Retrieves metrics related to a specific schema. Parameters:GetMetricsArgs:[string]string: Name of the schema.
GetRecordSizes
Description: Retrieves the sizes of records within a schema. Parameters:GetRecordSizesArgs:[string]string: Name of the schema.
SearchByIndex
Description: Searches for records based on an indexed field. Parameters:SearchByIndexArgs:[string, string, string]string: Name of the schema.string: Index field name.string: Value to search for.
SearchByMultipleFields
Description: Searches for records based on multiple field criteria. Parameters:SearchByMultipleFieldsArgs:[string, [string, string][]]string: Name of the schema.[string, string][]: Array of field-value pairs to search for.
NoOfSchema
Description: Retrieves the total number of schemas present in the database. Parameters:NoOfSchemaArgs:[]
