@brickkit/core/pg
Postgres databases for Brick services, with Drizzle's table builders.
@brickkit/core/pg exports 1 name: 1 type. It also re-exports 32 from drizzle-orm.
import type { PgDatabase } from "@brickkit/core/pg";Types
PgDatabase
type PgDatabase<
TSchema extends Record<string, unknown> = Record<string, unknown>,
> = PostgresJsDatabase<TSchema>;Typed Postgres Drizzle instance, as held by defineDatabase({engine}).
Source: packages/core/src/db/pg.ts:49
Re-exported from drizzle-orm
These come from drizzle-orm, which documents them. They are exported here so one import covers them.
| Name | Kind | Description |
|---|---|---|
bigint | function | |
bigserial | function | |
boolean | function | |
char | function | |
check | function | |
date | function | |
decimal | variable | |
doublePrecision | function | |
foreignKey | function | |
index | function | |
integer | function | |
interval | function | |
json | function | |
jsonb | function | |
numeric | function | |
pgEnum | function | |
pgSchema | function | |
pgTable | variable | |
pgView | function | |
PostgresJsDatabase | class | |
primaryKey | function | |
real | function | |
relations | function | |
serial | function | |
smallint | function | |
sql | function | |
text | function | |
time | function | |
timestamp | function | |
uniqueIndex | function | |
uuid | function | |
varchar | function |