feat: one install and one import per database; server dialects open their pool from a URL; nodeListener answers a throwing context; 0.5.0

This commit is contained in:
2026-11-03 13:06:04 +01:00
parent 1391c21c1f
commit e7637c3704
24 changed files with 194 additions and 227 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@crudy/restloom-sqlite",
"version": "0.4.0",
"version": "0.5.0",
"type": "module",
"description": "SQLite dialect for restloom",
"keywords": [
@@ -36,7 +36,7 @@
"prepack": "npm run build"
},
"dependencies": {
"@crudy/restloom": "^0.4.0"
"@crudy/restloom": "^0.5.0"
},
"peerDependencies": {
"better-sqlite3": ">=12"
+4 -1
View File
@@ -3,6 +3,8 @@ import type { Database } from 'better-sqlite3';
import { introspect } from './introspect.js';
import { SqliteRenderer } from './renderer.js';
export * from '@crudy/restloom';
export { SqliteRenderer } from './renderer.js';
const CODES: Record<string, [number, string]> = {
@@ -27,7 +29,8 @@ export interface SqliteOptions {
}
/**
* The SQLite dialect over a better-sqlite3 Database. It turns on foreign keys
* The SQLite dialect over a better-sqlite3 Database, or any object with its
* API, such as sql.js in a browser. It turns on foreign keys
* and case-sensitive LIKE for the connection. One connection runs one
* transaction at a time, so requests are queued. SQLite cannot stop a running
* statement, so `limits.timeoutMs` does not apply, and it has no functions to