Skip to main content

@idpass/data-collect-core / createDrizzle

Function: createDrizzle()

createDrizzle(connectionString): object

Defined in: db/connection.ts:42

Creates a Drizzle ORM instance from a connection string.

Parameters​

connectionString​

string

PostgreSQL connection string.

Returns​

object

An object containing the Drizzle database instance and the underlying Pool.

db​

db: DrizzleDatabase

pool​

pool: Pool