dirsql 0.3.88 → 0.3.90

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.
@@ -45,7 +45,7 @@ requests, closes open `/events` streams, and exits.
45
45
 
46
46
  | Flag | Default | Description |
47
47
  |---|---|---|
48
- | `--config <path>` | `./.dirsql.toml` | Path to the [config file](./config.md). The index is rooted at the directory containing this file (unless the config sets `[dirsql].root`). When the file does not exist, the server runs in [zero-config mode](#zero-config-mode). |
48
+ | `-c, --config <path>` | `./.dirsql.toml` | Path to the [config file](./config.md). The index is rooted at the directory containing this file (unless the config sets `[dirsql].root`). When the file does not exist, the server runs in [zero-config mode](#zero-config-mode). |
49
49
  | `--host <addr>` | `localhost` | Bind address. |
50
50
  | `--port <n>` | `7117` | TCP port to bind. |
51
51
  | `--extension <path>` | none | Load a SQLite extension by literal path, overriding the config's `[[dirsql.extension]]` entries. Repeatable. Format: `<path>` or `<path>::<entrypoint>`. Internal plumbing for the pip/npm launchers, which resolve package-name extensions and pass the resolved paths here — not intended for direct use. When any `--extension` is present, the config file's own extension entries are not loaded. |
@@ -3,7 +3,9 @@
3
3
  `.dirsql.toml` is a TOML file with one optional `[dirsql]` section, zero or
4
4
  more `[[dirsql.extension]]` entries, and zero or more `[[table]]` entries.
5
5
  An empty file is valid. A missing `[dirsql]` section behaves as an
6
- all-defaults one. Unknown keys are ignored.
6
+ all-defaults one. Unknown keys are a parse error at every level (top level,
7
+ `[dirsql]`, `[[table]]`, `[[dirsql.extension]]`) — a typo or a removed key
8
+ fails loudly, naming the offending key, rather than silently no-opping.
7
9
 
8
10
  The [CLI](./cli.md) loads `./.dirsql.toml` by default (`--config <path>`
9
11
  overrides). The [SDKs](./sdk.md) load a config via the `config` constructor
@@ -136,6 +138,8 @@ Loading fails (the CLI enters [degraded mode](./cli.md#degraded-mode); the
136
138
  SDKs raise/reject) when:
137
139
 
138
140
  - The TOML is malformed.
141
+ - Any table contains an unknown key (top level, `[dirsql]`, `[[table]]`, or
142
+ `[[dirsql.extension]]`). The error names the offending key.
139
143
  - A `[[table]]` entry omits `ddl` or `glob`.
140
144
  - A `[[dirsql.extension]]` entry omits `path`, or `path` is empty.
141
145
  - `on-file`, `pre-query`, or `post-query` is present but empty/whitespace.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.3.88",
3
+ "version": "0.3.90",
4
4
  "description": "Ephemeral SQL index over a local directory",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/thekevinscott/dirsql",
@@ -212,15 +212,15 @@
212
212
  ]
213
213
  },
214
214
  "optionalDependencies": {
215
- "@dirsql/lib-linux-x64-gnu": "0.3.88",
216
- "@dirsql/lib-linux-arm64-gnu": "0.3.88",
217
- "@dirsql/lib-darwin-x64": "0.3.88",
218
- "@dirsql/lib-darwin-arm64": "0.3.88",
219
- "@dirsql/lib-win32-x64-msvc": "0.3.88",
220
- "@dirsql/cli-linux-x64-gnu": "0.3.88",
221
- "@dirsql/cli-linux-arm64-gnu": "0.3.88",
222
- "@dirsql/cli-darwin-x64": "0.3.88",
223
- "@dirsql/cli-darwin-arm64": "0.3.88",
224
- "@dirsql/cli-win32-x64-msvc": "0.3.88"
215
+ "@dirsql/lib-linux-x64-gnu": "0.3.90",
216
+ "@dirsql/lib-linux-arm64-gnu": "0.3.90",
217
+ "@dirsql/lib-darwin-x64": "0.3.90",
218
+ "@dirsql/lib-darwin-arm64": "0.3.90",
219
+ "@dirsql/lib-win32-x64-msvc": "0.3.90",
220
+ "@dirsql/cli-linux-x64-gnu": "0.3.90",
221
+ "@dirsql/cli-linux-arm64-gnu": "0.3.90",
222
+ "@dirsql/cli-darwin-x64": "0.3.90",
223
+ "@dirsql/cli-darwin-arm64": "0.3.90",
224
+ "@dirsql/cli-win32-x64-msvc": "0.3.90"
225
225
  }
226
226
  }