@toiroakr/lines-db 0.9.1 → 0.10.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.cts DELETED
@@ -1,605 +0,0 @@
1
- import { StandardSchemaV1 } from "@standard-schema/spec";
2
-
3
- //#region src/sqlite-adapter.d.ts
4
-
5
- /**
6
- * SQLite adapter for Node.js
7
- */
8
- /**
9
- * Common interface for SQLite database
10
- */
11
- interface SQLiteDatabase {
12
- prepare(sql: string): SQLiteStatement;
13
- exec(sql: string): void;
14
- close(): void;
15
- }
16
- interface SQLiteStatement {
17
- run(...params: any[]): {
18
- changes: number;
19
- lastInsertRowid: number | bigint;
20
- };
21
- get(...params: any[]): any;
22
- all(...params: any[]): any[];
23
- }
24
- //#endregion
25
- //#region src/types.d.ts
26
- type Table = Record<string, unknown>;
27
- type StandardSchema<Input extends Table = Table, Output extends Table = Input> = StandardSchemaV1<Input, Output>;
28
- type StandardSchemaResult<Output> = StandardSchemaV1.Result<Output>;
29
- type StandardSchemaIssue = StandardSchemaV1.Issue;
30
- type InferInput<T$1> = T$1 extends StandardSchemaV1<infer I, unknown> ? I : never;
31
- type InferOutput<T$1> = T$1 extends StandardSchemaV1<unknown, infer O> ? O : never;
32
- interface TableValidationResult {
33
- tableName: string;
34
- valid: boolean;
35
- rowCount: number;
36
- errors: ValidationErrorDetail[];
37
- warnings: string[];
38
- }
39
- interface ValidationResult {
40
- valid: boolean;
41
- errors: ValidationErrorDetail[];
42
- warnings: string[];
43
- tableResults: TableValidationResult[];
44
- }
45
- interface ValidationErrorDetail {
46
- file: string;
47
- tableName: string;
48
- rowIndex: number;
49
- issues: ReadonlyArray<StandardSchemaIssue>;
50
- type?: 'schema' | 'foreignKey';
51
- foreignKeyError?: {
52
- column: string;
53
- value: unknown;
54
- referencedTable: string;
55
- referencedColumn: string;
56
- };
57
- }
58
- interface ForeignKeyDefinition {
59
- column: string;
60
- references: {
61
- table: string;
62
- column: string;
63
- };
64
- onDelete?: 'CASCADE' | 'SET NULL' | 'RESTRICT' | 'NO ACTION';
65
- onUpdate?: 'CASCADE' | 'SET NULL' | 'RESTRICT' | 'NO ACTION';
66
- }
67
- interface IndexDefinition {
68
- name?: string;
69
- columns: string[];
70
- unique?: boolean;
71
- }
72
- interface TableSchema {
73
- name: string;
74
- columns: ColumnDefinition[];
75
- foreignKeys?: ForeignKeyDefinition[];
76
- indexes?: IndexDefinition[];
77
- }
78
- interface ColumnDefinition {
79
- name: string;
80
- type: 'TEXT' | 'INTEGER' | 'REAL' | 'BLOB' | 'NULL' | 'JSON';
81
- primaryKey?: boolean;
82
- notNull?: boolean;
83
- unique?: boolean;
84
- valueType?: 'boolean';
85
- }
86
- type TableDefs = Record<string, Table>;
87
- declare const TABLES_BRAND: unique symbol;
88
- interface DatabaseConfig<_Tables extends TableDefs = TableDefs> {
89
- dataDir: string;
90
- readonly [TABLES_BRAND]?: _Tables;
91
- }
92
- interface TableConfig {
93
- jsonlPath: string;
94
- schema?: TableSchema;
95
- autoInferSchema?: boolean;
96
- validationSchema?: StandardSchema;
97
- }
98
- interface ValidationError extends Error {
99
- name: 'ValidationError';
100
- issues: ReadonlyArray<StandardSchemaIssue>;
101
- }
102
- type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
103
- interface JsonObject {
104
- [key: string]: JsonValue;
105
- }
106
- type JsonArray = JsonValue[];
107
- type WhereValue<T$1> = T$1 | ((value: T$1) => boolean);
108
- type WhereObject<T$1 extends Table> = { [K in keyof T$1]?: WhereValue<T$1[K]> };
109
- type WhereCondition<T$1 extends Table> = WhereObject<T$1> | WhereConditionArray<T$1>;
110
- type WhereConditionArray<T$1 extends Table> = Array<WhereObject<T$1> | WhereConditionArray<T$1>>;
111
- //#endregion
112
- //#region src/database.d.ts
113
- declare class LinesDB<Tables extends TableDefs> {
114
- private db;
115
- private config;
116
- private schemas;
117
- private validationSchemas;
118
- private tables;
119
- private inTransaction;
120
- private constructor();
121
- static create<Tables extends TableDefs>(config: DatabaseConfig<Tables>, dbPath?: string): LinesDB<Tables>;
122
- /**
123
- * Initialize database by loading all JSONL files or a specific table
124
- * Uses dependency resolution to ensure foreign key references are loaded in correct order
125
- * @param options Optional configuration for initialization
126
- * @param options.tableName Optional table name to initialize. If not provided, initializes all tables
127
- * @param options.detailedValidate If true, performs detailed validation by inserting rows one by one to catch constraint violations
128
- * @param options.transform Optional transform function to apply to rows before validation (only applied to the specified tableName)
129
- * @returns ValidationResult containing validation status, errors, and warnings
130
- */
131
- initialize(options?: {
132
- tableName?: string;
133
- detailedValidate?: boolean;
134
- transform?: (row: JsonObject) => JsonObject;
135
- }): Promise<ValidationResult>;
136
- /**
137
- * Load a table and its dependencies recursively
138
- */
139
- private loadTableWithDependencies;
140
- /**
141
- * Load a single table from JSONL file
142
- * @returns Object with loaded status and validation errors
143
- */
144
- private loadTable;
145
- /**
146
- * Create table in SQLite with constraints and indexes
147
- */
148
- private createTable;
149
- /**
150
- * Quote table name to handle special characters in SQL
151
- */
152
- private quoteTableName;
153
- /**
154
- * Quote identifier for SQL statements, escaping embedded quotes
155
- */
156
- private quoteIdentifier;
157
- /**
158
- * Insert data into table using batch insert (multiple rows per SQL)
159
- * SQLite has a parameter limit (default 999), so we batch rows accordingly
160
- * Throws exception if any constraint violation occurs
161
- */
162
- private insertData;
163
- /**
164
- * Insert data into table one row at a time with detailed error reporting
165
- * This is used for validation to catch constraint violations
166
- */
167
- private insertDataWithDetailedValidation;
168
- /**
169
- * Analyze constraint error and extract detailed information
170
- */
171
- private analyzeConstraintError;
172
- /**
173
- * Validate a deferred foreign key constraint after all tables have been loaded.
174
- * Used for circular dependency FK validation.
175
- */
176
- private validateDeferredForeignKey;
177
- /**
178
- * Execute a raw SQL query
179
- */
180
- query<T$1 = unknown>(sql: string, params?: (string | number | bigint | null | Uint8Array)[]): T$1[];
181
- /**
182
- * Execute a SQL query that returns a single row
183
- */
184
- queryOne<T$1 = unknown>(sql: string, params?: (string | number | bigint | null | Uint8Array)[]): T$1 | null;
185
- /**
186
- * Execute a SQL statement (INSERT, UPDATE, DELETE)
187
- */
188
- execute(sql: string, params?: (string | number | bigint | null | Uint8Array)[]): {
189
- changes: number | bigint;
190
- lastInsertRowid: number | bigint;
191
- };
192
- /**
193
- * Find rows by condition (supports OR/AND with arrays and function filters)
194
- * If where is not provided, returns all rows
195
- */
196
- find<K$1 extends keyof Tables & string>(tableName: K$1, where?: WhereCondition<Tables[K$1]>): Tables[K$1][];
197
- /**
198
- * Find a single row by condition (supports OR/AND with arrays and function filters)
199
- */
200
- findOne<K$1 extends keyof Tables & string>(tableName: K$1, where: WhereCondition<Tables[K$1]>): Tables[K$1] | null;
201
- /**
202
- * Deserialize JSON columns in a row
203
- */
204
- private deserializeRow;
205
- /**
206
- * Validate data using StandardSchema and return the transformed value
207
- * Note: Only synchronous validation is supported
208
- */
209
- private validateAndTransform;
210
- /**
211
- * Validate data using StandardSchema (without returning transformed value)
212
- * Note: Only synchronous validation is supported
213
- */
214
- private validateData;
215
- /**
216
- * Insert a row into a table with validation
217
- */
218
- insert<K$1 extends keyof Tables & string>(tableName: K$1, data: Tables[K$1]): {
219
- changes: number | bigint;
220
- lastInsertRowid: number | bigint;
221
- };
222
- /**
223
- * Batch insert rows with validation per record.
224
- */
225
- batchInsert<K$1 extends keyof Tables & string>(tableName: K$1, records: Tables[K$1][]): {
226
- changes: number | bigint;
227
- lastInsertRowid: number | bigint;
228
- };
229
- /**
230
- * Update rows in a table with validation (supports OR/AND with arrays)
231
- * Note: Function filters are not supported for update operations
232
- * Note: By default, validation is enabled. For partial updates, existing data is fetched
233
- * and merged before validation. Set options.validate = false to disable validation.
234
- */
235
- update<K$1 extends keyof Tables & string>(tableName: K$1, data: Partial<Tables[K$1]>, where: WhereCondition<Tables[K$1]>, options?: {
236
- validate?: boolean;
237
- }): {
238
- changes: number | bigint;
239
- lastInsertRowid: number | bigint;
240
- };
241
- /**
242
- * Batch update rows with record-specific values and validation.
243
- * Each record must include the primary key to identify the target row.
244
- * Validation runs once per merged record unless explicitly disabled.
245
- */
246
- batchUpdate<K$1 extends keyof Tables & string>(tableName: K$1, records: Array<Partial<Tables[K$1]> & Record<string, unknown>>, options?: {
247
- validate?: boolean;
248
- }): {
249
- changes: number | bigint;
250
- lastInsertRowid: number | bigint;
251
- };
252
- /**
253
- * Delete rows from a table (supports OR/AND with arrays)
254
- * Note: Function filters are not supported for delete operations
255
- */
256
- delete<K$1 extends keyof Tables & string>(tableName: K$1, where: WhereCondition<Tables[K$1]>): {
257
- changes: number | bigint;
258
- lastInsertRowid: number | bigint;
259
- };
260
- /**
261
- * Batch delete rows by primary key.
262
- */
263
- batchDelete<K$1 extends keyof Tables & string>(tableName: K$1, records: Array<Partial<Tables[K$1]> & Record<string, unknown>>): {
264
- changes: number | bigint;
265
- lastInsertRowid: number | bigint;
266
- };
267
- /**
268
- * Normalize value for SQLite
269
- */
270
- private normalizeValue;
271
- /**
272
- * Build WHERE clause from condition (supports OR/AND with arrays and functions)
273
- */
274
- private buildWhereClause;
275
- /**
276
- * Apply OR condition with function filters by evaluating each row against the condition
277
- */
278
- private applyOrConditionWithFilters;
279
- /**
280
- * Check if a row matches an OR/AND condition (recursively)
281
- */
282
- private matchesOrCondition;
283
- /**
284
- * Apply function filters to rows
285
- */
286
- private applyFunctionFilters;
287
- /**
288
- * Get table schema
289
- */
290
- getSchema(tableName: string): TableSchema | undefined;
291
- /**
292
- * Get all table names
293
- */
294
- getTableNames(): string[];
295
- /**
296
- * Sync a specific table back to its JSONL file
297
- * Uses backward transformation when available
298
- */
299
- private syncTable;
300
- /**
301
- * Sync database changes back to JSONL files
302
- * Uses backward transformation when available
303
- * @param tableName Optional table name to sync. If not provided, syncs all loaded tables
304
- */
305
- sync(tableName?: string): Promise<void>;
306
- /**
307
- * Execute a function within a transaction
308
- * Automatically commits on success or rolls back on error
309
- */
310
- transaction<T$1>(fn: (tx: LinesDB<Tables>) => Promise<T$1> | T$1): Promise<T$1>;
311
- /**
312
- * Close the database connection
313
- */
314
- close(): Promise<void>;
315
- /**
316
- * Get the underlying SQLite database instance
317
- */
318
- getDb(): SQLiteDatabase;
319
- }
320
- //#endregion
321
- //#region src/jsonl-reader.d.ts
322
- declare class JsonlReader {
323
- private static overrides;
324
- /**
325
- * Temporarily override the data returned for specific JSONL files.
326
- * Useful for scenarios like migration validation where in-memory data should be used.
327
- */
328
- static withOverrides<T$1>(overrides: Map<string, JsonObject[]>, fn: () => Promise<T$1>): Promise<T$1>;
329
- /**
330
- * Read JSONL file and parse each line as JSON
331
- */
332
- static read(filePath: string): Promise<JsonObject[]>;
333
- /**
334
- * Infer schema from JSONL data
335
- */
336
- static inferSchema(tableName: string, data: JsonObject[]): TableSchema;
337
- private static inferType;
338
- }
339
- //#endregion
340
- //#region src/jsonl-writer.d.ts
341
- declare class JsonlWriter {
342
- /**
343
- * Write data to JSONL file
344
- */
345
- static write(filePath: string, data: JsonObject[]): Promise<void>;
346
- /**
347
- * Append data to JSONL file
348
- */
349
- static append(filePath: string, data: JsonObject[]): Promise<void>;
350
- }
351
- //#endregion
352
- //#region src/schema-loader.d.ts
353
- declare class SchemaLoader {
354
- /**
355
- * Check if a schema file exists for a table
356
- */
357
- static hasSchema(jsonlPath: string): Promise<boolean>;
358
- /**
359
- * Load a validation schema file for a table
360
- * Requires ${tableName}.schema.{ts,mts,cts} to exist alongside the JSONL file
361
- */
362
- static loadSchema(jsonlPath: string): Promise<StandardSchema>;
363
- /**
364
- * Check if an object implements the StandardSchema interface
365
- */
366
- private static isStandardSchema;
367
- }
368
- //#endregion
369
- //#region src/directory-scanner.d.ts
370
- declare class DirectoryScanner {
371
- /**
372
- * Scan directory for JSONL files and create table configurations
373
- */
374
- static scanDirectory(dataDir: string): Promise<Map<string, TableConfig>>;
375
- }
376
- //#endregion
377
- //#region src/schema.d.ts
378
- /**
379
- * Schema options for defining constraints and indexes
380
- * When Input and Output types differ, backward transformation is required
381
- */
382
- type SchemaOptions<Input extends Table, Output extends Table> = {
383
- /**
384
- * Primary key column
385
- */
386
- primaryKey?: string;
387
- /**
388
- * Foreign key constraints
389
- */
390
- foreignKeys?: ForeignKeyDefinition[];
391
- /**
392
- * Indexes to create
393
- */
394
- indexes?: IndexDefinition[];
395
- } & (Output extends Input ? {
396
- /**
397
- * Backward transformation from Output to Input (optional when output is substitutable for input)
398
- */
399
- backward?: (output: Output) => Input;
400
- } : {
401
- /**
402
- * Backward transformation from Output to Input (REQUIRED when types differ)
403
- */
404
- backward: (output: Output) => Input;
405
- });
406
- /**
407
- * BiDirectional Schema interface
408
- * Extends StandardSchema with optional backward transformation and schema metadata
409
- */
410
- interface BiDirectionalSchema<Input extends Table = Table, Output extends Table = Input> extends StandardSchema<Input, Output> {
411
- /**
412
- * Backward transformation from Output to Input
413
- * Required when Input and Output types differ (e.g., with transformations)
414
- */
415
- backward?: (output: Output) => Input;
416
- /**
417
- * Primary key column
418
- */
419
- primaryKey?: string;
420
- /**
421
- * Foreign key constraints
422
- */
423
- foreignKeys?: ForeignKeyDefinition[];
424
- /**
425
- * Indexes to create
426
- */
427
- indexes?: IndexDefinition[];
428
- }
429
- /**
430
- * Define a bidirectional schema with optional backward transformation
431
- *
432
- * @param schema - Standard Schema for validation
433
- * @param options - SchemaOptions object. When Input and Output types differ, backward transformation is required
434
- *
435
- * @example
436
- * // No transformation - backward not needed
437
- * const schema = defineSchema(
438
- * v.object({ id: v.number(), name: v.string() })
439
- * );
440
- *
441
- * @example
442
- * // With transformation - backward REQUIRED
443
- * const schema = defineSchema(
444
- * v.pipe(v.string(), v.transform(Number)),
445
- * {
446
- * backward: (num) => String(num) // backward: number → string (REQUIRED)
447
- * }
448
- * );
449
- *
450
- * @example
451
- * // With primary key and foreign key
452
- * const schema = defineSchema(
453
- * v.object({ id: v.number(), customerId: v.number() }),
454
- * {
455
- * primaryKey: 'id',
456
- * foreignKeys: [
457
- * { column: 'customerId', references: { table: 'users', column: 'id' } }
458
- * ]
459
- * }
460
- * );
461
- */
462
- declare function defineSchema<Input extends Table, Output extends Table>(schema: StandardSchema<Input, Output>, ...args: Output extends Input ? [options?: SchemaOptions<Input, Output>] : [options: SchemaOptions<Input, Output>]): BiDirectionalSchema<Input, Output>;
463
- /**
464
- * Check if a schema has backward transformation
465
- */
466
- declare function hasBackward<Input extends Table, Output extends Table>(schema: StandardSchema<Input, Output>): schema is BiDirectionalSchema<Input, Output>;
467
- //#endregion
468
- //#region src/type-generator.d.ts
469
- interface TypeGeneratorOptions {
470
- dataDir: string;
471
- projectRoot?: string;
472
- output?: string;
473
- }
474
- declare class TypeGenerator {
475
- private dataDir;
476
- private projectRoot;
477
- private outputFile;
478
- private dataDirPath;
479
- constructor(options: TypeGeneratorOptions);
480
- /**
481
- * Generate types file from JSONL files and their optional schema files.
482
- */
483
- generate(): Promise<string>;
484
- /**
485
- * Find all *.jsonl files and check if they have corresponding *.schema.ts files
486
- */
487
- private findTables;
488
- /**
489
- * Generate type declaration content
490
- */
491
- private generateTypeDeclarations;
492
- private createSchemaIdentifier;
493
- private formatTableKey;
494
- }
495
- //#endregion
496
- //#region src/jsonl-migration.d.ts
497
- interface TableValidationOptions {
498
- dataDir: string;
499
- tableName: string;
500
- rows: JsonObject[];
501
- }
502
- /**
503
- * Validate a table by temporarily supplying in-memory rows while reusing the existing LinesDB validation pipeline.
504
- * If validation fails, throws an error with validation details.
505
- */
506
- declare function ensureTableRowsValid(options: TableValidationOptions): Promise<void>;
507
- //#endregion
508
- //#region src/schema-extensions.d.ts
509
- /**
510
- * Supported schema file extensions, in priority order.
511
- * The first match wins when discovering schema files.
512
- */
513
- declare const SCHEMA_EXTENSIONS: readonly [".schema.ts", ".schema.mts", ".schema.cts"];
514
- type SchemaExtension = (typeof SCHEMA_EXTENSIONS)[number];
515
- /**
516
- * Try each supported schema extension and return the full path of the first
517
- * one that exists on disk. Returns undefined if none is found.
518
- */
519
- declare function findSchemaFile(dir: string, tableName: string): Promise<string | undefined>;
520
- /**
521
- * Check if a filename matches any supported schema file pattern.
522
- */
523
- declare function isSchemaFile(fileName: string): boolean;
524
- /**
525
- * Extract table name from a schema filename.
526
- * e.g., "users.schema.ts" -> "users", "users.schema.mts" -> "users"
527
- */
528
- declare function extractTableNameFromSchemaFile(fileName: string): string | null;
529
- /**
530
- * Rewrite a TypeScript path to its JavaScript counterpart for ESM imports.
531
- * ".schema.ts" -> ".schema.js", ".schema.mts" -> ".schema.mjs", ".schema.cts" -> ".schema.cjs"
532
- */
533
- declare function rewriteExtensionForImport(filePath: string): string;
534
- //#endregion
535
- //#region src/error-formatter.d.ts
536
- interface ValidationErrorInfo {
537
- file: string;
538
- rowIndex: number;
539
- issues: ReadonlyArray<StandardSchemaIssue>;
540
- data?: unknown;
541
- originalData?: unknown;
542
- }
543
- interface ForeignKeyErrorInfo {
544
- file: string;
545
- rowIndex: number;
546
- column: string;
547
- value: unknown;
548
- referencedTable: string;
549
- referencedColumn: string;
550
- data?: unknown;
551
- }
552
- interface ErrorFormatterOptions {
553
- verbose?: boolean;
554
- }
555
- declare class ErrorFormatter {
556
- private verbose;
557
- constructor(options?: ErrorFormatterOptions);
558
- /**
559
- * Format validation errors
560
- */
561
- formatValidationErrors(errors: ValidationErrorInfo[]): string;
562
- /**
563
- * Format foreign key error
564
- */
565
- formatForeignKeyError(error: ForeignKeyErrorInfo): string;
566
- /**
567
- * Format compact (default) validation errors
568
- */
569
- private formatValidationErrorsCompact;
570
- /**
571
- * Format verbose validation errors
572
- */
573
- private formatValidationErrorsVerbose;
574
- /**
575
- * Format compact foreign key error
576
- */
577
- private formatForeignKeyErrorCompact;
578
- /**
579
- * Format verbose foreign key error
580
- */
581
- private formatForeignKeyErrorVerbose;
582
- /**
583
- * Get field path from issue
584
- */
585
- private getFieldPath;
586
- /**
587
- * Format error header with count
588
- */
589
- formatErrorHeader(count: number, file?: string): string;
590
- /**
591
- * Format migration failure header
592
- */
593
- formatMigrationFailureHeader(): string;
594
- }
595
- //#endregion
596
- //#region src/runtime.d.ts
597
- /**
598
- * Runtime detection utilities
599
- */
600
- type RuntimeEnvironment = 'node' | 'unknown';
601
- declare function detectRuntime(): RuntimeEnvironment;
602
- declare const RUNTIME: RuntimeEnvironment;
603
- //#endregion
604
- export { type BiDirectionalSchema, type ColumnDefinition, type DatabaseConfig, DirectoryScanner, ErrorFormatter, type ErrorFormatterOptions, type ForeignKeyDefinition, type ForeignKeyErrorInfo, type IndexDefinition, type InferInput, type InferOutput, type JsonArray, type JsonObject, type JsonValue, JsonlReader, JsonlWriter, LinesDB, RUNTIME, type RuntimeEnvironment, SCHEMA_EXTENSIONS, type SQLiteDatabase, type SQLiteStatement, type SchemaExtension, SchemaLoader, type SchemaOptions, type StandardSchema, type StandardSchemaIssue, type StandardSchemaResult, type Table, type TableConfig, type TableDefs, type TableSchema, type TableValidationOptions, type TableValidationResult, TypeGenerator, type TypeGeneratorOptions, type ValidationError, type ValidationErrorDetail, type ValidationErrorInfo, type ValidationResult, defineSchema, detectRuntime, ensureTableRowsValid, extractTableNameFromSchemaFile, findSchemaFile, hasBackward, isSchemaFile, rewriteExtensionForImport };
605
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/sqlite-adapter.ts","../src/types.ts","../src/database.ts","../src/jsonl-reader.ts","../src/jsonl-writer.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"],"sourcesContent":[],"mappings":";;;;;;;AASA;AAMA;;UANiB,cAAA;wBACO;ECPZ,IAAA,CAAA,GAAK,EAAA,MAAA,CAAA,EAAG,IAAA;EACR,KAAA,EAAA,EAAA,IAAA;;AACY,UDUP,eAAA,CCVO;EACP,GAAA,CAAA,GAAA,MAAA,EAAA,GAAA,EAAA,CAAA,EAAA;IAAQ,OAAA,EAAA,MAAA;IACJ,eAAA,EAAA,MAAA,GAAA,MAAA;EAAO,CAAA;EAAxB,GAAA,CAAA,GAAA,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AA;EAAU,WAAA,CAAA,OAAA,CAAA,EUYf,qBVZe;EAAqC;;AAC3E;EAA6B,sBAAA,CAAA,MAAA,EUkBI,mBVlBJ,EAAA,CAAA,EAAA,MAAA;EAAU;;;EAGtB,qBAAA,CAAA,KAAqB,EUyBP,mBVrBrB,CAAA,EAAA,MAAqB;EAId;AAOjB;AAcA;EAUiB,QAAA,6BAAe;EAMf;;;EAIL,QAAA,6BAAA;EAAe;AAG3B;AASA;EACqB,QAAA,4BAA2B;EAE/B;;;EAEW,QAAA,4BAAA;EAAhB;;AAaZ;EAOiB,QAAA,YAAgB;EAET;;;EAFsB,iBAAA,CAAA,KAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAKlC;AACZ;AAGA;EAGY,4BAAgB,CAAA,CAAA,EAAA,MAAc;AAE1C;;;;;;AD/GiB,KYLL,kBAAA,GZMY,MAAA,GAAA,SAAe;AAKtB,iBYTD,aAAA,CAAA,CZSgB,EYTC,kBZSD;cYAnB,SAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/sqlite-adapter.ts","../src/types.ts","../src/database.ts","../src/jsonl-reader.ts","../src/jsonl-writer.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"],"sourcesContent":[],"mappings":";;;;;;;AASA;AAMA;;UANiB,cAAA;wBACO;ECPZ,IAAA,CAAA,GAAK,EAAA,MAAA,CAAA,EAAG,IAAA;EACR,KAAA,EAAA,EAAA,IAAA;;AACY,UDUP,eAAA,CCVO;EACP,GAAA,CAAA,GAAA,MAAA,EAAA,GAAA,EAAA,CAAA,EAAA;IAAQ,OAAA,EAAA,MAAA;IACJ,eAAA,EAAA,MAAA,GAAA,MAAA;EAAO,CAAA;EAAxB,GAAA,CAAA,GAAA,MAAA,EAAA,GAAA,EAAA,CAA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