lines-db 0.18.1 → 0.19.1

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { A as WhereCondition, C as TableConfig, D as ValidationError, E as TableValidationResult, O as ValidationErrorDetail, S as Table, T as TableSchema, _ as JsonlConflictError, a as err, b as StandardSchemaIssue, c as ColumnDefinition, d as IndexDefinition, f as InferInput, g as JsonValue, h as JsonObject, i as Result, j as WriteFilledValues, k as ValidationResult, l as DatabaseConfig, m as JsonArray, n as JsonlSnapshot, o as ok, p as InferOutput, s as unwrap, t as JsonlReader, u as ForeignKeyDefinition, v as JsonlParseError, w as TableDefs, x as StandardSchemaResult, y as StandardSchema } from "./jsonl-reader-CoYEJ9pg.mjs";
2
- //#region src/sqlite-adapter.d.ts
1
+ import { A as ValidationErrorDetail, C as StandardSchemaResult, D as TableSchema, E as TableDefs, M as WhereCondition, N as WriteFilledValues, O as TableValidationResult, S as StandardSchemaIssue, T as TableConfig, _ as JsonObject, b as JsonlParseError, c as ok, d as DatabaseConfig, f as ForeignKeyDefinition, g as JsonArray, h as InferOutput, i as JsonlSnapshot, j as ValidationResult, k as ValidationError, l as unwrap, m as InferInput, o as Result, p as IndexDefinition, r as JsonlReader, s as err, t as SchemaImports, u as ColumnDefinition, v as JsonValue, w as Table, x as StandardSchema, y as JsonlConflictError } from "./schema-module-Tb40gPyF.mjs";
3
2
  /**
4
3
  * SQLite adapter for Node.js
5
4
  */
@@ -19,8 +18,6 @@ interface SQLiteStatement {
19
18
  get(...params: any[]): any;
20
19
  all(...params: any[]): any[];
21
20
  }
22
- //#endregion
23
- //#region src/database.d.ts
24
21
  /**
25
22
  * Options for {@link LinesDB.update}
26
23
  */
@@ -70,6 +67,7 @@ export declare class LinesDB<Tables extends TableDefs> {
70
67
  * holds the fields a user wrote, so only what changed since it was written needs remembering
71
68
  */
72
69
  private fieldChanges;
70
+ private settleUndos;
73
71
  /**
74
72
  * The tables raw SQL may have changed since they were last written back: which fields it set is
75
73
  * unknown, so their rows are written back whole
@@ -101,8 +99,14 @@ export declare class LinesDB<Tables extends TableDefs> {
101
99
  private observedHashes;
102
100
  /** The JSONL files the data directories held when the tables were scanned */
103
101
  private scannedJsonlFiles;
102
+ /** Tables left out because their files have no rows to infer the columns from */
103
+ private emptyTables;
104
+ /** Tables created from the columns `schemaOfEmptyTable` gave, which may lack a field the validator adds */
105
+ private tablesFromGivenColumns;
104
106
  /** Each table's schema file and a hash of its content as the tables were loaded, or '' for none */
105
107
  private schemaFileStates;
108
+ private schemaImports;
109
+ private schemaDependencyHashes;
106
110
  private constructor();
107
111
  static create<Tables extends TableDefs>(config: DatabaseConfig<Tables>, dbPath?: string): LinesDB<Tables>;
108
112
  /**
@@ -121,6 +125,7 @@ export declare class LinesDB<Tables extends TableDefs> {
121
125
  }): Promise<Result<ValidationResult, Error>>;
122
126
  private initializeInternal;
123
127
  private loadTables;
128
+ private importSchemaModule;
124
129
  /**
125
130
  * Load a table and its dependencies recursively
126
131
  */
@@ -134,6 +139,20 @@ export declare class LinesDB<Tables extends TableDefs> {
134
139
  * @returns Object with loaded status and validation errors
135
140
  */
136
141
  private loadTable;
142
+ /**
143
+ * A column no row holds a value in has no type to read a boolean or an object back with, and so reads
144
+ * back as 1 or as JSON text. The first value written settles it, and a string settles it as text so an
145
+ * object written later does not turn that text into JSON. Not asked of the schema: it names no type at
146
+ * run time. Returns what puts the columns back, which a write that did not go in, or a transaction that
147
+ * rolled back, must call: the value that settled it is not in the table
148
+ */
149
+ private settleColumnsNoRowHolds;
150
+ /**
151
+ * A column every row holds is inferred NOT NULL, which refuses a later row that leaves it out even
152
+ * where the schema takes that row. The sample row without the field says whether the schema does.
153
+ * A column the schema fills in stays NOT NULL: the row is stored as the schema leaves it
154
+ */
155
+ private relaxColumnsTheSchemaLeavesOptional;
137
156
  /**
138
157
  * Create table in SQLite with constraints and indexes
139
158
  */
@@ -231,6 +250,11 @@ export declare class LinesDB<Tables extends TableDefs> {
231
250
  lastInsertRowid: number | bigint;
232
251
  }, Error>;
233
252
  private insertInternal;
253
+ /**
254
+ * A table made from the columns given has only those, and the validator may add a field they lack: the
255
+ * columns of a table made from rows are those of the validated rows, which have it
256
+ */
257
+ private addMissingColumns;
234
258
  /**
235
259
  * Batch insert rows with validation per record.
236
260
  */
@@ -283,6 +307,7 @@ export declare class LinesDB<Tables extends TableDefs> {
283
307
  * Normalize value for SQLite
284
308
  */
285
309
  private normalizeValue;
310
+ private columnOf;
286
311
  /**
287
312
  * Build WHERE clause from condition (supports OR/AND with arrays and functions)
288
313
  */
@@ -462,12 +487,20 @@ export declare class LinesDB<Tables extends TableDefs> {
462
487
  hasExternalChanges(): Promise<Result<boolean, Error>>;
463
488
  /**
464
489
  * The files that changed since this database last read or wrote them, as {@link hasExternalChanges}
465
- * tells: each JSONL file edited, added or removed, and each schema file edited, added or removed
490
+ * tells: each JSONL file edited, added or removed, each schema file edited, added or removed, and each
491
+ * project file a schema imports edited, added or removed
466
492
  */
467
493
  findExternalChanges(): Promise<Result<string[], Error>>;
468
494
  private findExternalChangesInternal;
469
495
  /** The state of the schema file a state names, for a table whose JSONL file is gone */
470
496
  private stateOfKnownSchemaFile;
497
+ private recordSchemaDependencies;
498
+ /**
499
+ * The project files the schemas import, as paths: not the schema files, and not a package from
500
+ * node_modules. Those of one table when it is given. An edit to one of them is among
501
+ * {@link findExternalChanges}
502
+ */
503
+ listSchemaDependencies(tableName?: string): string[];
471
504
  private schemaFileState;
472
505
  /**
473
506
  * Sync database changes back to JSONL files
@@ -509,8 +542,6 @@ export declare class LinesDB<Tables extends TableDefs> {
509
542
  */
510
543
  getDb(): SQLiteDatabase;
511
544
  }
512
- //#endregion
513
- //#region src/jsonl-writer.d.ts
514
545
  export declare class JsonlWriter {
515
546
  /**
516
547
  * Write data to JSONL file
@@ -525,8 +556,6 @@ export declare class JsonlWriter {
525
556
  */
526
557
  static append(filePath: string, data: JsonObject[]): Promise<void>;
527
558
  }
528
- //#endregion
529
- //#region src/merge-fields.d.ts
530
559
  /**
531
560
  * Options for {@link mergeFields}
532
561
  */
@@ -566,8 +595,6 @@ interface MergeFieldsOptions {
566
595
  * // {"id":"018f…","name":"Alice","createdAt":"2026-…","note":"check"}
567
596
  */
568
597
  export declare function mergeFields(line: JsonObject, computed: Record<string, JsonValue | undefined>, options: MergeFieldsOptions): JsonObject;
569
- //#endregion
570
- //#region src/fill.d.ts
571
598
  /** Computes the values a row gets, from the row as its line holds it */
572
599
  type RowFiller = (row: JsonObject) => Record<string, unknown>;
573
600
  interface FillFieldsOptions {
@@ -616,8 +643,6 @@ interface FillFieldsResult {
616
643
  * the computed row lists them. Every value is computed before any file is written.
617
644
  */
618
645
  export declare function fillFields(options: FillFieldsOptions): Promise<Result<FillFieldsResult, Error>>;
619
- //#endregion
620
- //#region src/schema-loader.d.ts
621
646
  export declare class SchemaLoader {
622
647
  /**
623
648
  * Check if a schema file exists for a table
@@ -627,14 +652,12 @@ export declare class SchemaLoader {
627
652
  * Load a validation schema file for a table
628
653
  * Requires ${tableName}.schema.{ts,mts,cts} to exist in schemaDir, or alongside the JSONL file when omitted
629
654
  */
630
- static loadSchema(jsonlPath: string, schemaDir?: string): Promise<StandardSchema>;
655
+ static loadSchema(jsonlPath: string, schemaDir?: string, imports?: SchemaImports): Promise<StandardSchema>;
631
656
  /**
632
657
  * Check if an object implements the StandardSchema interface
633
658
  */
634
659
  private static isStandardSchema;
635
660
  }
636
- //#endregion
637
- //#region src/directory-scanner.d.ts
638
661
  export declare class DirectoryScanner {
639
662
  /**
640
663
  * Scan directories for JSONL files and create table configurations.
@@ -642,8 +665,6 @@ export declare class DirectoryScanner {
642
665
  */
643
666
  static scanDirectory(dataDir: string | readonly string[]): Promise<Map<string, TableConfig>>;
644
667
  }
645
- //#endregion
646
- //#region src/schema.d.ts
647
668
  /**
648
669
  * Schema options for defining constraints and indexes
649
670
  * When Input and Output types differ, backward transformation is required
@@ -733,8 +754,6 @@ export declare function defineSchema<Input extends Table, Output extends Table>(
733
754
  * Check if a schema has backward transformation
734
755
  */
735
756
  export declare function hasBackward<Input extends Table, Output extends Table>(schema: StandardSchema<Input, Output>): schema is BiDirectionalSchema<Input, Output>;
736
- //#endregion
737
- //#region src/type-generator.d.ts
738
757
  interface TypeGeneratorOptions {
739
758
  dataDir: string;
740
759
  projectRoot?: string;
@@ -761,8 +780,6 @@ export declare class TypeGenerator {
761
780
  private createSchemaIdentifier;
762
781
  private formatTableKey;
763
782
  }
764
- //#endregion
765
- //#region src/jsonl-migration.d.ts
766
783
  interface TableValidationOptions {
767
784
  dataDir: string;
768
785
  tableName: string;
@@ -773,8 +790,6 @@ interface TableValidationOptions {
773
790
  * If validation fails, throws an error with validation details.
774
791
  */
775
792
  export declare function ensureTableRowsValid(options: TableValidationOptions): Promise<void>;
776
- //#endregion
777
- //#region src/schema-extensions.d.ts
778
793
  /**
779
794
  * Supported schema file extensions, in priority order.
780
795
  * The first match wins when discovering schema files.
@@ -800,8 +815,6 @@ export declare function extractTableNameFromSchemaFile(fileName: string): string
800
815
  * ".schema.ts" -> ".schema.js", ".schema.mts" -> ".schema.mjs", ".schema.cts" -> ".schema.cjs"
801
816
  */
802
817
  export declare function rewriteExtensionForImport(filePath: string): string;
803
- //#endregion
804
- //#region src/error-formatter.d.ts
805
818
  interface ValidationErrorInfo {
806
819
  file: string;
807
820
  rowIndex: number;
@@ -861,20 +874,15 @@ export declare class ErrorFormatter {
861
874
  */
862
875
  formatMigrationFailureHeader(): string;
863
876
  }
864
- //#endregion
865
- //#region src/runtime.d.ts
866
877
  /**
867
878
  * Runtime detection utilities
868
879
  */
869
880
  type RuntimeEnvironment = 'node' | 'unknown';
870
881
  export declare function detectRuntime(): RuntimeEnvironment;
871
882
  export declare const RUNTIME: RuntimeEnvironment;
872
- //#endregion
873
- //#region src/dataset-config.d.ts
874
883
  interface DatasetConfigOptions {
875
884
  datasets?: string[] | 'all';
876
885
  }
877
886
  export declare function loadDatasetConfig(path?: string, options?: DatasetConfigOptions): Promise<DatabaseConfig>;
878
- //#endregion
879
887
  export { type BiDirectionalSchema, type ColumnDefinition, type DatabaseConfig, type DatasetConfigOptions, type ErrorFormatterOptions, type FillFieldsOptions, type FillFieldsResult, type FilledFile, type ForeignKeyDefinition, type ForeignKeyErrorInfo, type IndexDefinition, type InferInput, type InferOutput, type JsonArray, type JsonObject, type JsonValue, type JsonlConflictError, type JsonlParseError, JsonlReader, type JsonlSnapshot, type MergeFieldsOptions, type Result, type RowFiller, type RuntimeEnvironment, type SQLiteDatabase, type SQLiteStatement, type SchemaExtension, type SchemaOptions, type StandardSchema, type StandardSchemaIssue, type StandardSchemaResult, type SyncOptions, type Table, type TableConfig, type TableDefs, type TableSchema, type TableValidationOptions, type TableValidationResult, type TypeGeneratorOptions, type UpdateOptions, type ValidationError, type ValidationErrorDetail, type ValidationErrorInfo, type ValidationResult, type WriteFilledValues, err, ok, unwrap };
880
888
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/sqlite-adapter.ts","../src/database.ts","../src/jsonl-writer.ts","../src/merge-fields.ts","../src/fill.ts","../src/schema-loader.ts","../src/directory-scanner.ts","../src/schema.ts","../src/type-generator.ts","../src/jsonl-migration.ts","../src/schema-extensions.ts","../src/error-formatter.ts","../src/runtime.ts","../src/dataset-config.ts"],"mappings":";;;;;;;;UASiB;EACf,QAAQ,cAAc;EACtB,KAAK;EACL;;UAGe;EACf,OAAO;IAAkB;IAAiB;;EAC1C,OAAO;EACP,OAAO;;;;;;;UCkBQ;;EAEf;;;;;EAKA;;;;;UAMe;;;;;;;;;EASf;;;;;EAKA,oBAAoB;;qBAmET,QAAQ,eAAe;UAC1B;mBACS;UACT;UACA;UACA;UACA;UACA;UACA;;UAEA;;UAEA;;;;;UAKA;;;;;UAKA;;UAEA;;;;;UAKA;;UAEA;;UAEA;;UAEA;;UAEA;;UAEA;;UAEA;;;;;UAKA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AAqB,SAAS,yBAAyB;;;;;;;qBCThE;KACD,0BAA0B;;;;;wBAehB,eAAe,aAAa,oBAAoB;;;;wBAkCtD,aAAa;;;;;wBAQb,+BAA+B;;;;;wBAa/B,0BAA0B;;;UC3EzB;EACf;EACA;EACA,QAAQ,cAAc;EACtB;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;;qBAGW;UACH;EAEI,YAAA,UAAS;;;;EAOrB,uBAAuB,QAAQ;;;;EAU/B,sBAAsB,OAAO;;;;UAUrB;;;;UAiBA;;;;UAqCA;;;;UAOA;;;;UAoBA;;;;EAkBR,kBAAkB,eAAe;;;;EAQjC;;;;;;;KC9JU;wBAEI,iBAAiB;qBASpB,SAAO;;;UC2BH;EACf;;wBAGoB,kBACpB,eACA,UAAS,uBACR,QAAQ"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/sqlite-adapter.ts","../src/database.ts","../src/jsonl-writer.ts","../src/merge-fields.ts","../src/fill.ts","../src/schema-loader.ts","../src/directory-scanner.ts","../src/schema.ts","../src/type-generator.ts","../src/jsonl-migration.ts","../src/schema-extensions.ts","../src/error-formatter.ts","../src/runtime.ts","../src/dataset-config.ts"],"mappings":";;;;;;;UASiB;EACf,QAAQ,cAAc;EACtB,KAAK;EACL;;UAGe;EACf,OAAO;IAAkB;IAAiB;;EAC1C,OAAO;EACP,OAAO;;;;;UCoBQ;;EAEf;;;;;EAKA;;;;;UAMe;;;;;;;;;EASf;;;;;EAKA,oBAAoB;;qBAmET,QAAQ,eAAe;UAC1B;mBACS;UACT;UACA;UACA;UACA;UACA;UACA;;UAEA;;UAEA;;;;;UAKA;UACA;;;;;UAKA;;UAEA;;;;;UAKA;;UAEA;;UAEA;;UAEA;;UAEA;;UAEA;;UAEA;;;;;UAKA;;UAEA;;UAEA;;UAEA;;UAEA;UAEA;UAEA;UAED;SAKA,OAAO,eAAe,WAAW,QAAQ,eAAe,SAAS,kBAAkB,QAAQ;;;;;;;;;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