~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/pds.js

An atproto PDS in JavaScript, for Cloudflare Workers and Node

0
0
main
17 lines · 633 B Raw History
// @pdsjs/storage-sqlite/driver - SQLite driver interface types
// Both better-sqlite3 and node:sqlite implement this interface natively

/**
 * @typedef {Object} SQLiteStatement
 * @property {(...args: any[]) => any} get - Single row query
 * @property {(...args: any[]) => any[]} all - Multi-row query
 * @property {(...args: any[]) => {changes: number | bigint}} run - Execute INSERT/UPDATE/DELETE
 */

/**
 * @typedef {Object} SQLiteDatabase
 * @property {(sql: string) => void} exec - Execute raw SQL (DDL, multiple statements)
 * @property {(sql: string) => SQLiteStatement} prepare - Create prepared statement
 */

export {};