Skip to content

remix/data-table/sqlite · Interface

View Source

SqliteDatabaseClient

Summary

Synchronous SQLite client accepted by createSqliteDatabase().

This matches the shared surface of Node's node:sqlite DatabaseSync, Bun's bun:sqlite Database, and compatible synchronous SQLite clients.

Signature

interface SqliteDatabaseClient {
  close?: () => void
  exec(sql: string): unknown
  prepare(sql: string): SqliteStatement
}