@leonardovida-md/drizzle-neo-duckdb 1.2.0 → 1.2.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 +2 -1
- package/dist/duckdb-introspect.mjs +562 -73
- package/dist/index.mjs +554 -65
- package/dist/sql/ast-transformer.d.ts +18 -0
- package/dist/sql/visitors/column-qualifier.d.ts +5 -0
- package/dist/sql/visitors/generate-series-alias.d.ts +13 -0
- package/dist/sql/visitors/union-with-hoister.d.ts +11 -0
- package/package.json +2 -2
- package/src/sql/ast-transformer.ts +120 -18
- package/src/sql/visitors/column-qualifier.ts +393 -85
- package/src/sql/visitors/generate-series-alias.ts +291 -0
- package/src/sql/visitors/union-with-hoister.ts +106 -0
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ pnpm add @leonardovida-md/drizzle-neo-duckdb @duckdb/node-api
|
|
|
40
40
|
```typescript
|
|
41
41
|
import { DuckDBInstance } from '@duckdb/node-api';
|
|
42
42
|
import { drizzle } from '@leonardovida-md/drizzle-neo-duckdb';
|
|
43
|
+
import { sql } from 'drizzle-orm';
|
|
43
44
|
import { integer, text, pgTable } from 'drizzle-orm/pg-core';
|
|
44
45
|
|
|
45
46
|
// Connect to DuckDB
|
|
@@ -149,7 +150,7 @@ const db = drizzle(pool);
|
|
|
149
150
|
## Schema & Types
|
|
150
151
|
|
|
151
152
|
- Use `drizzle-orm/pg-core` for schemas; DuckDB SQL is largely Postgres-compatible.
|
|
152
|
-
- DuckDB-specific helpers: `duckDbList`, `duckDbArray`, `duckDbStruct`, `duckDbMap`, `duckDbJson`, `duckDbTimestamp`, `duckDbDate`, `duckDbTime`.
|
|
153
|
+
- DuckDB-specific helpers: `duckDbList`, `duckDbArray`, `duckDbStruct`, `duckDbMap`, `duckDbJson`, `duckDbBlob`, `duckDbInet`, `duckDbInterval`, `duckDbTimestamp`, `duckDbDate`, `duckDbTime`.
|
|
153
154
|
- Browser-safe imports live under `@leonardovida-md/drizzle-neo-duckdb/helpers` (introspection emits this path).
|
|
154
155
|
|
|
155
156
|
See the [column types](https://leonardovida.github.io/drizzle-neo-duckdb/api/columns) docs for full API.
|