dirsql 0.4.19 → 0.4.21
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.
|
@@ -61,6 +61,17 @@ SELECT * FROM '**/*.md';
|
|
|
61
61
|
-- no such table: **/*.md; did you mean './**/*.md'?
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
**The quotes are required too.** A path is not a bare SQL identifier — `./` is
|
|
65
|
+
punctuation to SQLite's parser, so an unquoted path fails at parse time, before
|
|
66
|
+
dirsql ever sees a table name to resolve. Single or double quotes both work;
|
|
67
|
+
the error names the quoted form:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
SELECT * FROM ./;
|
|
71
|
+
-- near ".": syntax error in SELECT * FROM ./ at offset 14
|
|
72
|
+
-- hint: paths used as table names must be quoted; did you mean "./"?
|
|
73
|
+
```
|
|
74
|
+
|
|
64
75
|
### Paths outside the index root
|
|
65
76
|
|
|
66
77
|
Three other prefixes resolve, with their usual shell meanings:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dirsql",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.21",
|
|
4
4
|
"description": "Ephemeral SQL index over a local directory",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/thekevinscott/dirsql",
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
215
|
"optionalDependencies": {
|
|
216
|
-
"@dirsql/lib-linux-x64-gnu": "0.4.
|
|
217
|
-
"@dirsql/lib-linux-arm64-gnu": "0.4.
|
|
218
|
-
"@dirsql/lib-darwin-x64": "0.4.
|
|
219
|
-
"@dirsql/lib-darwin-arm64": "0.4.
|
|
220
|
-
"@dirsql/lib-win32-x64-msvc": "0.4.
|
|
216
|
+
"@dirsql/lib-linux-x64-gnu": "0.4.21",
|
|
217
|
+
"@dirsql/lib-linux-arm64-gnu": "0.4.21",
|
|
218
|
+
"@dirsql/lib-darwin-x64": "0.4.21",
|
|
219
|
+
"@dirsql/lib-darwin-arm64": "0.4.21",
|
|
220
|
+
"@dirsql/lib-win32-x64-msvc": "0.4.21"
|
|
221
221
|
}
|
|
222
222
|
}
|