API Reference
Complete API documentation for Drizzle DuckDB.
Main Exports
- drizzle(): create a database instance
- DuckDBDatabase: database class methods
- Column Types: all column type helpers
- Array Helpers: array query functions
- OLAP Helpers: aggregate helpers and MotherDuck table functions
- migrate(): run migrations
- introspect(): generate schema from an existing database
Other Exports
createDuckDBConnectionPool(): build a pool by hand. See Connection PoolingcreatePgDuckConnectionPool(): wrap apg.Poolfor pg_duckdb.drizzle()does this for you when you pass apg.PoolconfigureDuckLake(): attach a DuckLake catalog on a single connection. See DuckLakeDuckDBDialect: the dialect class.new DuckDBDialect().sqlToQuery(query)renders SQL the way the driver sends it, without a connectionDuckDBSelectBuilder: the type thatdb.select()returnsDuckDbMigrationConfig: the type of themigrate()config argument