Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

644 B
Raw Blame
// `pg-cursor` ships no type definitions. These are the parts the Postgres
// plugin data store uses (`db/engine/postgres/plugin-data-store.ts`): a cursor
// is handed to a `pg` client's `query`, which submits it over the extended
// query protocol, and is then read a number of rows at a time.

declare module 'pg-cursor' {
  export default class Cursor {
    constructor(text: string, values?: unknown[]);
    /** The next `rows` rows, or none once the statement has returned them all. */
    read(rows: number): Promise<unknown[]>;
    /** Closes the portal; safe after the last read and after an error. */
    close(): Promise<void>;
  }
}