dirsql 0.3.56 → 0.3.58
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/docs/guide/querying.md +9 -9
- package/docs/guide/tables.md +12 -12
- package/package.json +11 -11
package/docs/guide/querying.md
CHANGED
|
@@ -103,15 +103,15 @@ const results = await db.query('SELECT title, author FROM posts');
|
|
|
103
103
|
|
|
104
104
|
:::
|
|
105
105
|
|
|
106
|
-
SQLite types map back to
|
|
107
|
-
|
|
108
|
-
| SQLite type | Python
|
|
109
|
-
|
|
110
|
-
| TEXT | `str`
|
|
111
|
-
| INTEGER | `int`
|
|
112
|
-
| REAL | `float`
|
|
113
|
-
| BLOB | `bytes`
|
|
114
|
-
| NULL | `None`
|
|
106
|
+
SQLite types map back to language types:
|
|
107
|
+
|
|
108
|
+
| SQLite type | Python | TypeScript | Rust |
|
|
109
|
+
|-------------|---------|------------|------------------|
|
|
110
|
+
| TEXT | `str` | `string` | `Value::Text` |
|
|
111
|
+
| INTEGER | `int` | `number` | `Value::Integer` |
|
|
112
|
+
| REAL | `float` | `number` | `Value::Real` |
|
|
113
|
+
| BLOB | `bytes` | `Buffer` | `Value::Blob` |
|
|
114
|
+
| NULL | `None` | `null` | `Value::Null` |
|
|
115
115
|
|
|
116
116
|
## Internal columns
|
|
117
117
|
|
package/docs/guide/tables.md
CHANGED
|
@@ -255,15 +255,15 @@ Ignore patterns are applied before glob matching. Any file matching an ignore pa
|
|
|
255
255
|
|
|
256
256
|
## Supported value types
|
|
257
257
|
|
|
258
|
-
The extract function can return these
|
|
259
|
-
|
|
260
|
-
|
|
|
261
|
-
|
|
262
|
-
| `str`
|
|
263
|
-
| `int` |
|
|
264
|
-
| `float` |
|
|
265
|
-
|
|
|
266
|
-
| `bytes`
|
|
267
|
-
| `None`
|
|
268
|
-
|
|
269
|
-
Any other type is converted to its string representation
|
|
258
|
+
The extract function can return these types, which map to SQLite types:
|
|
259
|
+
|
|
260
|
+
| SQLite type | Python | TypeScript | Rust |
|
|
261
|
+
|---------------|---------|-------------------------|------------------|
|
|
262
|
+
| TEXT | `str` | `string` | `Value::Text` |
|
|
263
|
+
| INTEGER | `int` | integral `number` | `Value::Integer` |
|
|
264
|
+
| REAL | `float` | fractional `number` | `Value::Real` |
|
|
265
|
+
| INTEGER (0/1) | `bool` | `boolean` | `Value::Integer` |
|
|
266
|
+
| BLOB | `bytes` | `Buffer` / `Uint8Array` | `Value::Blob` |
|
|
267
|
+
| NULL | `None` | `null` / `undefined` | `Value::Null` |
|
|
268
|
+
|
|
269
|
+
Any other type is converted to its string representation (`str()` in Python, string coercion in TypeScript).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dirsql",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.58",
|
|
4
4
|
"description": "Ephemeral SQL index over a local directory",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/thekevinscott/dirsql",
|
|
@@ -219,15 +219,15 @@
|
|
|
219
219
|
]
|
|
220
220
|
},
|
|
221
221
|
"optionalDependencies": {
|
|
222
|
-
"@dirsql/lib-linux-x64-gnu": "0.3.
|
|
223
|
-
"@dirsql/lib-linux-arm64-gnu": "0.3.
|
|
224
|
-
"@dirsql/lib-darwin-x64": "0.3.
|
|
225
|
-
"@dirsql/lib-darwin-arm64": "0.3.
|
|
226
|
-
"@dirsql/lib-win32-x64-msvc": "0.3.
|
|
227
|
-
"@dirsql/cli-linux-x64-gnu": "0.3.
|
|
228
|
-
"@dirsql/cli-linux-arm64-gnu": "0.3.
|
|
229
|
-
"@dirsql/cli-darwin-x64": "0.3.
|
|
230
|
-
"@dirsql/cli-darwin-arm64": "0.3.
|
|
231
|
-
"@dirsql/cli-win32-x64-msvc": "0.3.
|
|
222
|
+
"@dirsql/lib-linux-x64-gnu": "0.3.58",
|
|
223
|
+
"@dirsql/lib-linux-arm64-gnu": "0.3.58",
|
|
224
|
+
"@dirsql/lib-darwin-x64": "0.3.58",
|
|
225
|
+
"@dirsql/lib-darwin-arm64": "0.3.58",
|
|
226
|
+
"@dirsql/lib-win32-x64-msvc": "0.3.58",
|
|
227
|
+
"@dirsql/cli-linux-x64-gnu": "0.3.58",
|
|
228
|
+
"@dirsql/cli-linux-arm64-gnu": "0.3.58",
|
|
229
|
+
"@dirsql/cli-darwin-x64": "0.3.58",
|
|
230
|
+
"@dirsql/cli-darwin-arm64": "0.3.58",
|
|
231
|
+
"@dirsql/cli-win32-x64-msvc": "0.3.58"
|
|
232
232
|
}
|
|
233
233
|
}
|