Canister methods
QuikDB SDK interacts with the QuikDB backend through various canister methods.
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.
Usage:
GetSchema
Description: Retrieves the details of a specific schema.
Parameters:
GetSchemaArgs
:[string]
string
: Name of the schema to retrieve.
Usage:
ListSchemas
Description: Lists all existing schemas within the database.
Parameters:
ListSchemasArgs
:[]
Usage:
DeleteSchema
Description: Deletes a specific schema from the database.
Parameters:
DeleteSchemaArgs
:[string]
string
: Name of the schema to delete.
Usage:
CreateRecordData
Description: Inserts a new record into a specified schema.
Parameters:
CreateRecordDataArgs
:[string, DBRecord]
string
: Name of the schema.DBRecord
: Record data to insert.
Usage:
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.
Usage:
GetAllRecords
Description: Retrieves all records within a specified schema.
Parameters:
GetAllRecordsArgs
:[string]
string
: Name of the schema.
Usage:
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.
Usage:
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.
Usage:
GetOwner
Description: Retrieves the principal ID of the owner.
Parameters:
GetOwnerArgs
:[]
Usage:
GetMetrics
Description: Retrieves metrics related to a specific schema.
Parameters:
GetMetricsArgs
:[string]
string
: Name of the schema.
Usage:
GetRecordSizes
Description: Retrieves the sizes of records within a schema.
Parameters:
GetRecordSizesArgs
:[string]
string
: Name of the schema.
Usage:
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.
Usage:
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.
Usage:
NoOfSchema
Description: Retrieves the total number of schemas present in the database.
Parameters:
NoOfSchemaArgs
:[]
Usage: