dirsql 0.3.89 → 0.3.91

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.
@@ -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.
@@ -102,7 +102,6 @@ row-mapping rules.
102
102
  | Placeholder | Value |
103
103
  |---|---|
104
104
  | `{path}` | The matched file's path **relative to the index root**. Appended automatically as a final argument when the command omits it, so `extract.py` and `extract.py {path}` behave identically. |
105
- | `{abspath}` | The matched file's absolute path. |
106
105
  | `{root}` | The index root directory. |
107
106
 
108
107
  ### `pre-query`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dirsql",
3
- "version": "0.3.89",
3
+ "version": "0.3.91",
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.89",
216
- "@dirsql/lib-linux-arm64-gnu": "0.3.89",
217
- "@dirsql/lib-darwin-x64": "0.3.89",
218
- "@dirsql/lib-darwin-arm64": "0.3.89",
219
- "@dirsql/lib-win32-x64-msvc": "0.3.89",
220
- "@dirsql/cli-linux-x64-gnu": "0.3.89",
221
- "@dirsql/cli-linux-arm64-gnu": "0.3.89",
222
- "@dirsql/cli-darwin-x64": "0.3.89",
223
- "@dirsql/cli-darwin-arm64": "0.3.89",
224
- "@dirsql/cli-win32-x64-msvc": "0.3.89"
215
+ "@dirsql/lib-linux-x64-gnu": "0.3.91",
216
+ "@dirsql/lib-linux-arm64-gnu": "0.3.91",
217
+ "@dirsql/lib-darwin-x64": "0.3.91",
218
+ "@dirsql/lib-darwin-arm64": "0.3.91",
219
+ "@dirsql/lib-win32-x64-msvc": "0.3.91",
220
+ "@dirsql/cli-linux-x64-gnu": "0.3.91",
221
+ "@dirsql/cli-linux-arm64-gnu": "0.3.91",
222
+ "@dirsql/cli-darwin-x64": "0.3.91",
223
+ "@dirsql/cli-darwin-arm64": "0.3.91",
224
+ "@dirsql/cli-win32-x64-msvc": "0.3.91"
225
225
  }
226
226
  }