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.
@@ -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 Python types:
107
-
108
- | SQLite type | Python type |
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
 
@@ -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 Python types, which map to SQLite types:
259
-
260
- | Python type | SQLite type |
261
- |-------------|-------------|
262
- | `str` | TEXT |
263
- | `int` | INTEGER |
264
- | `float` | REAL |
265
- | `bool` | INTEGER (0/1) |
266
- | `bytes` | BLOB |
267
- | `None` | NULL |
268
-
269
- Any other type is converted to its string representation via `str()`.
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.56",
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.56",
223
- "@dirsql/lib-linux-arm64-gnu": "0.3.56",
224
- "@dirsql/lib-darwin-x64": "0.3.56",
225
- "@dirsql/lib-darwin-arm64": "0.3.56",
226
- "@dirsql/lib-win32-x64-msvc": "0.3.56",
227
- "@dirsql/cli-linux-x64-gnu": "0.3.56",
228
- "@dirsql/cli-linux-arm64-gnu": "0.3.56",
229
- "@dirsql/cli-darwin-x64": "0.3.56",
230
- "@dirsql/cli-darwin-arm64": "0.3.56",
231
- "@dirsql/cli-win32-x64-msvc": "0.3.56"
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
  }