@molecule/api-database-duckdb 1.1.1 → 1.1.2
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/README.md +5 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:22:31.767Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-database-duckdb
|
|
@@ -465,7 +465,7 @@ reports 0 changed rows for a RETURNING statement, so the returned rows ARE
|
|
|
465
465
|
the affected count), `rowsChanged` for plain DML, `null` for DDL.
|
|
466
466
|
|
|
467
467
|
```typescript
|
|
468
|
-
function runDuckdbQuery(
|
|
468
|
+
function runDuckdbQuery<T = Record<string, unknown>>(
|
|
469
469
|
connection: DuckDBConnection,
|
|
470
470
|
text: string,
|
|
471
471
|
values?: DuckDBValue[],
|
|
@@ -573,7 +573,7 @@ sqlite bond); a larger one becomes its decimal string (matching node-postgres
|
|
|
573
573
|
`int8AsString`). Mutates rows in place for speed.
|
|
574
574
|
|
|
575
575
|
```typescript
|
|
576
|
-
function normalizeDuckdbRows(rows: Record<string, unknown>[]): T[]
|
|
576
|
+
function normalizeDuckdbRows<T>(rows: Record<string, unknown>[]): T[]
|
|
577
577
|
```
|
|
578
578
|
|
|
579
579
|
- `rows` — Row objects from `result.getRowObjectsJS()`.
|
|
@@ -591,7 +591,7 @@ is why this runs in the DataStore (it knows the table) and not in the pool.
|
|
|
591
591
|
A value that is not valid JSON text is left as the raw string.
|
|
592
592
|
|
|
593
593
|
```typescript
|
|
594
|
-
function parseJsonColumns(rows: Record<string, unknown>[], jsonColumns: Set<string>): T[]
|
|
594
|
+
function parseJsonColumns<T>(rows: Record<string, unknown>[], jsonColumns: Set<string>): T[]
|
|
595
595
|
```
|
|
596
596
|
|
|
597
597
|
- `rows` — Row objects.
|
|
@@ -611,7 +611,7 @@ rows exist, where PostgreSQL cascades — a silently changed delete, which this
|
|
|
611
611
|
bond refuses rather than reproduces inexactly.
|
|
612
612
|
|
|
613
613
|
```typescript
|
|
614
|
-
const sqlCapabilities:
|
|
614
|
+
const sqlCapabilities: SqlCapabilities
|
|
615
615
|
```
|
|
616
616
|
|
|
617
617
|
#### `pool`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-database-duckdb",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "DuckDB database provider for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@duckdb/node-api": "2.0.0-r.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@molecule/api-bond": "1.0.
|
|
66
|
-
"@molecule/api-database": "1.2.
|
|
65
|
+
"@molecule/api-bond": "1.0.4",
|
|
66
|
+
"@molecule/api-database": "1.2.1",
|
|
67
67
|
"@molecule/api-process-lifecycle": "1.2.1",
|
|
68
|
-
"@molecule/api-process-lifecycle-express": "1.3.
|
|
68
|
+
"@molecule/api-process-lifecycle-express": "1.3.2",
|
|
69
69
|
"@molecule/api-secrets": "1.0.2",
|
|
70
70
|
"@types/node": "26.6.5",
|
|
71
71
|
"typescript": "6.0.3",
|