dirsql 0.3.46 → 0.3.48

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.
Files changed (2) hide show
  1. package/docs/api/index.md +1 -21
  2. package/package.json +11 -11
package/docs/api/index.md CHANGED
@@ -145,26 +145,6 @@ for await (const event of db.watch()) { // AsyncIterable<RowEvent>
145
145
 
146
146
  Returns an async iterable of `RowEvent` objects. The file watcher starts automatically on first iteration. The iterator never terminates on its own.
147
147
 
148
- #### `serialization`
149
-
150
- ::: code-group
151
-
152
- ```python [Python]
153
- vars(db) -> dict
154
- ```
155
-
156
- ```rust [Rust]
157
- db.config() -> DirSQLConfig
158
- ```
159
-
160
- ```typescript [TypeScript]
161
- JSON.stringify(db) // via db.toJSON()
162
- ```
163
-
164
- :::
165
-
166
- Returns the resolved construction state as a JSON-compatible value with fields `root`, `tables`, `ignore`, `persist`, `persist_path` (camelCase `persistPath` in TypeScript). Each table is `{ ddl, glob, strict }`. All three SDK snapshots also include `extensions` -- an array of `{ path, entrypoint }` (empty when none are configured; `entrypoint` is `null` when no override was supplied). Excludes the original `config` path (already merged into `root` / `tables` / `ignore`), per-table `extract`, and per-table `name`. Available immediately after construction in Python and TypeScript; Rust's sync `build()` returns a ready instance.
167
-
168
148
  ---
169
149
 
170
150
  ## Table
@@ -213,7 +193,7 @@ Defines a mapping from files to SQLite table rows.
213
193
  - `ddl` -- A `CREATE TABLE` statement. The table name is parsed from this DDL.
214
194
  - `glob` -- A glob pattern matched against file paths relative to the root directory.
215
195
  - `extract` -- A callable `(path) -> list[dict]`. Receives the path of the matched file -- relative to the scan root, or absolute when `root` is absolute. `dirsql` does not read file contents; a callback that needs the file body reads `path` itself. Returns a list of dicts/maps mapping column names to values. Return an empty list to skip a file.
216
- - `strict` -- Optional (default `False`). Controls row/schema validation. In the default relaxed mode, extra row keys are dropped and missing columns become `NULL`. When `True`, every row key must be a valid column identifier and any extra or missing key raises an error. Surfaced in [serialization](#serialization) above as part of each table's `{ ddl, glob, strict }`.
196
+ - `strict` -- Optional (default `False`). Controls row/schema validation. In the default relaxed mode, extra row keys are dropped and missing columns become `NULL`. When `True`, every row key must be a valid column identifier and any extra or missing key raises an error.
217
197
 
218
198
  **Attributes:**
219
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.3.46",
3
+ "version": "0.3.48",
4
4
  "description": "Ephemeral SQL index over a local directory",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/thekevinscott/dirsql",
@@ -216,15 +216,15 @@
216
216
  ]
217
217
  },
218
218
  "optionalDependencies": {
219
- "@dirsql/lib-linux-x64-gnu": "0.3.46",
220
- "@dirsql/lib-linux-arm64-gnu": "0.3.46",
221
- "@dirsql/lib-darwin-x64": "0.3.46",
222
- "@dirsql/lib-darwin-arm64": "0.3.46",
223
- "@dirsql/lib-win32-x64-msvc": "0.3.46",
224
- "@dirsql/cli-linux-x64-gnu": "0.3.46",
225
- "@dirsql/cli-linux-arm64-gnu": "0.3.46",
226
- "@dirsql/cli-darwin-x64": "0.3.46",
227
- "@dirsql/cli-darwin-arm64": "0.3.46",
228
- "@dirsql/cli-win32-x64-msvc": "0.3.46"
219
+ "@dirsql/lib-linux-x64-gnu": "0.3.48",
220
+ "@dirsql/lib-linux-arm64-gnu": "0.3.48",
221
+ "@dirsql/lib-darwin-x64": "0.3.48",
222
+ "@dirsql/lib-darwin-arm64": "0.3.48",
223
+ "@dirsql/lib-win32-x64-msvc": "0.3.48",
224
+ "@dirsql/cli-linux-x64-gnu": "0.3.48",
225
+ "@dirsql/cli-linux-arm64-gnu": "0.3.48",
226
+ "@dirsql/cli-darwin-x64": "0.3.48",
227
+ "@dirsql/cli-darwin-arm64": "0.3.48",
228
+ "@dirsql/cli-win32-x64-msvc": "0.3.48"
229
229
  }
230
230
  }