lines-db 0.18.0 → 0.19.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/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 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-aQqE1pe5.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,6 +99,10 @@ 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;
106
108
  private constructor();
@@ -134,6 +136,20 @@ export declare class LinesDB<Tables extends TableDefs> {
134
136
  * @returns Object with loaded status and validation errors
135
137
  */
136
138
  private loadTable;
139
+ /**
140
+ * A column no row holds a value in has no type to read a boolean or an object back with, and so reads
141
+ * back as 1 or as JSON text. The first value written settles it, and a string settles it as text so an
142
+ * object written later does not turn that text into JSON. Not asked of the schema: it names no type at
143
+ * run time. Returns what puts the columns back, which a write that did not go in, or a transaction that
144
+ * rolled back, must call: the value that settled it is not in the table
145
+ */
146
+ private settleColumnsNoRowHolds;
147
+ /**
148
+ * A column every row holds is inferred NOT NULL, which refuses a later row that leaves it out even
149
+ * where the schema takes that row. The sample row without the field says whether the schema does.
150
+ * A column the schema fills in stays NOT NULL: the row is stored as the schema leaves it
151
+ */
152
+ private relaxColumnsTheSchemaLeavesOptional;
137
153
  /**
138
154
  * Create table in SQLite with constraints and indexes
139
155
  */
@@ -231,6 +247,11 @@ export declare class LinesDB<Tables extends TableDefs> {
231
247
  lastInsertRowid: number | bigint;
232
248
  }, Error>;
233
249
  private insertInternal;
250
+ /**
251
+ * A table made from the columns given has only those, and the validator may add a field they lack: the
252
+ * columns of a table made from rows are those of the validated rows, which have it
253
+ */
254
+ private addMissingColumns;
234
255
  /**
235
256
  * Batch insert rows with validation per record.
236
257
  */
@@ -283,6 +304,7 @@ export declare class LinesDB<Tables extends TableDefs> {
283
304
  * Normalize value for SQLite
284
305
  */
285
306
  private normalizeValue;
307
+ private columnOf;
286
308
  /**
287
309
  * Build WHERE clause from condition (supports OR/AND with arrays and functions)
288
310
  */
@@ -509,8 +531,6 @@ export declare class LinesDB<Tables extends TableDefs> {
509
531
  */
510
532
  getDb(): SQLiteDatabase;
511
533
  }
512
- //#endregion
513
- //#region src/jsonl-writer.d.ts
514
534
  export declare class JsonlWriter {
515
535
  /**
516
536
  * Write data to JSONL file
@@ -525,8 +545,6 @@ export declare class JsonlWriter {
525
545
  */
526
546
  static append(filePath: string, data: JsonObject[]): Promise<void>;
527
547
  }
528
- //#endregion
529
- //#region src/merge-fields.d.ts
530
548
  /**
531
549
  * Options for {@link mergeFields}
532
550
  */
@@ -566,8 +584,6 @@ interface MergeFieldsOptions {
566
584
  * // {"id":"018f…","name":"Alice","createdAt":"2026-…","note":"check"}
567
585
  */
568
586
  export declare function mergeFields(line: JsonObject, computed: Record<string, JsonValue | undefined>, options: MergeFieldsOptions): JsonObject;
569
- //#endregion
570
- //#region src/fill.d.ts
571
587
  /** Computes the values a row gets, from the row as its line holds it */
572
588
  type RowFiller = (row: JsonObject) => Record<string, unknown>;
573
589
  interface FillFieldsOptions {
@@ -616,8 +632,6 @@ interface FillFieldsResult {
616
632
  * the computed row lists them. Every value is computed before any file is written.
617
633
  */
618
634
  export declare function fillFields(options: FillFieldsOptions): Promise<Result<FillFieldsResult, Error>>;
619
- //#endregion
620
- //#region src/schema-loader.d.ts
621
635
  export declare class SchemaLoader {
622
636
  /**
623
637
  * Check if a schema file exists for a table
@@ -633,8 +647,6 @@ export declare class SchemaLoader {
633
647
  */
634
648
  private static isStandardSchema;
635
649
  }
636
- //#endregion
637
- //#region src/directory-scanner.d.ts
638
650
  export declare class DirectoryScanner {
639
651
  /**
640
652
  * Scan directories for JSONL files and create table configurations.
@@ -642,8 +654,6 @@ export declare class DirectoryScanner {
642
654
  */
643
655
  static scanDirectory(dataDir: string | readonly string[]): Promise<Map<string, TableConfig>>;
644
656
  }
645
- //#endregion
646
- //#region src/schema.d.ts
647
657
  /**
648
658
  * Schema options for defining constraints and indexes
649
659
  * When Input and Output types differ, backward transformation is required
@@ -733,8 +743,6 @@ export declare function defineSchema<Input extends Table, Output extends Table>(
733
743
  * Check if a schema has backward transformation
734
744
  */
735
745
  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
746
  interface TypeGeneratorOptions {
739
747
  dataDir: string;
740
748
  projectRoot?: string;
@@ -761,8 +769,6 @@ export declare class TypeGenerator {
761
769
  private createSchemaIdentifier;
762
770
  private formatTableKey;
763
771
  }
764
- //#endregion
765
- //#region src/jsonl-migration.d.ts
766
772
  interface TableValidationOptions {
767
773
  dataDir: string;
768
774
  tableName: string;
@@ -773,8 +779,6 @@ interface TableValidationOptions {
773
779
  * If validation fails, throws an error with validation details.
774
780
  */
775
781
  export declare function ensureTableRowsValid(options: TableValidationOptions): Promise<void>;
776
- //#endregion
777
- //#region src/schema-extensions.d.ts
778
782
  /**
779
783
  * Supported schema file extensions, in priority order.
780
784
  * The first match wins when discovering schema files.
@@ -800,8 +804,6 @@ export declare function extractTableNameFromSchemaFile(fileName: string): string
800
804
  * ".schema.ts" -> ".schema.js", ".schema.mts" -> ".schema.mjs", ".schema.cts" -> ".schema.cjs"
801
805
  */
802
806
  export declare function rewriteExtensionForImport(filePath: string): string;
803
- //#endregion
804
- //#region src/error-formatter.d.ts
805
807
  interface ValidationErrorInfo {
806
808
  file: string;
807
809
  rowIndex: number;
@@ -861,20 +863,15 @@ export declare class ErrorFormatter {
861
863
  */
862
864
  formatMigrationFailureHeader(): string;
863
865
  }
864
- //#endregion
865
- //#region src/runtime.d.ts
866
866
  /**
867
867
  * Runtime detection utilities
868
868
  */
869
869
  type RuntimeEnvironment = 'node' | 'unknown';
870
870
  export declare function detectRuntime(): RuntimeEnvironment;
871
871
  export declare const RUNTIME: RuntimeEnvironment;
872
- //#endregion
873
- //#region src/dataset-config.d.ts
874
872
  interface DatasetConfigOptions {
875
873
  datasets?: string[] | 'all';
876
874
  }
877
875
  export declare function loadDatasetConfig(path?: string, options?: DatasetConfigOptions): Promise<DatabaseConfig>;
878
- //#endregion
879
876
  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
877
  //# 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;UAC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A,SAAS;;;;EAgBf,YAAY;;;;UAwBJ;;;;UA6BN;UA0DA;UAkBA;;;;UCjKO;EACf;EACA;EACA,MAAM;;;;;;wBAOc,qBAAqB,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;;;;;UCmBQ;;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;;UAE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