UNPKG

@dossierhq/sqlite-core

Version:

A library used by concrete SQLite adapters for Dossier.

6 lines (5 loc) 422 B
import { type ErrorType, type Result } from '@dossierhq/core'; import type { Database } from '../QueryFunctions.js'; export type CursorNativeType = 'int' | 'string'; export declare function toOpaqueCursor(database: Database, type: CursorNativeType, value: unknown): string; export declare function fromOpaqueCursor(database: Database, type: CursorNativeType, cursor: string): Result<unknown, typeof ErrorType.BadRequest>;