AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0
PluginDatabaseTransaction
Since Plugin API: 1.0.0
Signature
interface PluginDatabaseTransaction {
readonly schema: PluginDatabaseSchemaOperations;
query<T = Record<string, PluginDatabaseValue>>(table: string, sql: string, params?: readonly PluginDatabaseValue[]): Promise<readonly T[]>;
execute(table: string, sql: string, params?: readonly PluginDatabaseValue[]): Promise<DatabaseExecuteResult>;
}Members
| Name | Type | Required | Description |
|---|---|---|---|
schema | PluginDatabaseSchemaOperations | yes | - |
query | (table: string, sql: string, params?: readonly PluginDatabaseValue[]) => Promise<readonly T[]> | yes | - |
execute | (table: string, sql: string, params?: readonly PluginDatabaseValue[]) => Promise<DatabaseExecuteResult> | yes | - |