@crvouga/sqlite-mem 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ast/nodes.d.ts +5 -0
- package/dist/index.js +305 -179
- package/dist/index.js.map +2 -2
- package/dist/unstable.js +39 -18
- package/dist/unstable.js.map +2 -2
- package/package.json +3 -2
package/dist/ast/nodes.d.ts
CHANGED
|
@@ -269,6 +269,7 @@ export interface UpdateStmt {
|
|
|
269
269
|
export interface DeleteStmt {
|
|
270
270
|
type: "delete";
|
|
271
271
|
with: WithClause | null;
|
|
272
|
+
or: "replace" | "ignore" | "abort" | "rollback" | "fail" | null;
|
|
272
273
|
table: string;
|
|
273
274
|
alias: string | null;
|
|
274
275
|
where: Expr | null;
|
|
@@ -316,6 +317,7 @@ export type ColumnConstraint = {
|
|
|
316
317
|
columns: string[] | null;
|
|
317
318
|
onDelete: FkAction | null;
|
|
318
319
|
onUpdate: FkAction | null;
|
|
320
|
+
match: FkMatch;
|
|
319
321
|
deferrable: boolean;
|
|
320
322
|
initiallyDeferred: boolean;
|
|
321
323
|
} | {
|
|
@@ -343,6 +345,7 @@ export type TableConstraint = {
|
|
|
343
345
|
refColumns: string[] | null;
|
|
344
346
|
onDelete: FkAction | null;
|
|
345
347
|
onUpdate: FkAction | null;
|
|
348
|
+
match: FkMatch;
|
|
346
349
|
name: string | null;
|
|
347
350
|
deferrable: boolean;
|
|
348
351
|
initiallyDeferred: boolean;
|
|
@@ -356,6 +359,8 @@ export interface IndexedColumn {
|
|
|
356
359
|
}
|
|
357
360
|
export type ConflictAction = "ROLLBACK" | "ABORT" | "FAIL" | "IGNORE" | "REPLACE";
|
|
358
361
|
export type FkAction = "SET NULL" | "SET DEFAULT" | "CASCADE" | "RESTRICT" | "NO ACTION";
|
|
362
|
+
/** SQLite MATCH clause; FULL rejects partial-NULL composite keys. PARTIAL is accepted as SIMPLE. */
|
|
363
|
+
export type FkMatch = "SIMPLE" | "FULL" | "PARTIAL";
|
|
359
364
|
export interface DropTableStmt {
|
|
360
365
|
type: "drop_table";
|
|
361
366
|
ifExists: boolean;
|