We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
Statement.get docs examples are copypasta of Statement.all -
Statement.all
declare module "bun:sqlite" { // ... export class Statement<ReturnType = unknown, ParamsType extends SQLQueryBindings[] = any[]> implements Disposable { //... /** * Execute the prepared statement and return **the first** result. * * If no result is returned, this returns `null`. * * @param params optional values to bind to the statement. If omitted, the statement is run with the last bound values or no parameters if there are none. * * @example * ```ts * const stmt = db.prepare("SELECT * FROM foo WHERE bar = ?"); * * stmt.all("baz"); ❌ * // => [{bar: "baz"}] ❌ * * stmt.all(); ❌ * // => [{bar: "baz"}] ❌ * * stmt.all("foo"); ❌ * // => [{bar: "foo"}] ❌ * ``` * * The following types can be used when binding parameters: * * | JavaScript type | SQLite type | * | -------------- | ----------- | * | `string` | `TEXT` | * | `number` | `INTEGER` or `DECIMAL` | * | `boolean` | `INTEGER` (1 or 0) | * | `Uint8Array` | `BLOB` | * | `Buffer` | `BLOB` | * | `bigint` | `INTEGER` | * | `null` | `NULL` | */ get(...params: ParamsType): ReturnType | null; // ...
https://github.com/oven-sh/bun/blob/main/packages/bun-types/sqlite.d.ts#L524-L531
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the type of issue?
No response
What is the issue?
Statement.get docs examples are copypasta of
Statement.all
-Where did you find it?
https://github.com/oven-sh/bun/blob/main/packages/bun-types/sqlite.d.ts#L524-L531
The text was updated successfully, but these errors were encountered: