Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.lua
More file actions
Latest commit
13 lines (12 loc) · 1.81 KB
/
Copy pathtypes.lua
File metadata and controls
13 lines (12 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
---@classTransactionStep
---@fieldquerystring | number
---@fieldvaluesany[]
---@classMnrSql
---@fieldqueryfun(query: string | number, params?: any[]): table[] | nil, number | nil Executes a SELECT and returns all rows.
---@fieldsinglefun(query: string | number, params?: any[]): table | nil, number | nil Executes a SELECT and returns the first row.
---@fieldscalarfun(query: string | number, params?: any[]): any | nil, number | nil Executes a SELECT and returns the value of the first column of the first row.
---@fieldinsertfun(query: string | number, params?: any[]): number | nil, number | nil Executes an INSERT and returns the generated auto-increment ID.
---@fieldupdatefun(query: string | number, params?: any[]): number | nil, number | nil Executes an UPDATE or DELETE and returns the affected row count.
---@fieldpreparefun(query: string | number, params: any[] | any[][]): table[] | { insertId: number, affectedRows: number } | nil, number | nil Executes one query with a single or a batch of parameter sets; returns rows for a SELECT, `{ insertId, affectedRows }` for a mutation, or an array of either when `params` is a batch.
---@fieldtransactionfun(steps: TransactionStep[]): boolean, number | nil Executes all steps in a single transaction.
---@fieldstorefun(query: string): number Stores a SQL query and returns its numeric handle.