A minimal AT Protocol Personal Data Server written in JavaScript.
atproto
pds
1// @pds/storage-sqlite/driver - SQLite driver interface types
2// Both better-sqlite3 and node:sqlite implement this interface natively
3
4/**
5 * @typedef {Object} SQLiteStatement
6 * @property {(...args: any[]) => any} get - Single row query
7 * @property {(...args: any[]) => any[]} all - Multi-row query
8 * @property {(...args: any[]) => {changes: number | bigint}} run - Execute INSERT/UPDATE/DELETE
9 */
10
11/**
12 * @typedef {Object} SQLiteDatabase
13 * @property {(sql: string) => void} exec - Execute raw SQL (DDL, multiple statements)
14 * @property {(sql: string) => SQLiteStatement} prepare - Create prepared statement
15 */
16
17export {};