brick.ts

@brickkit/core/pg

Postgres databases for Brick services, with Drizzle's table builders.

llms.txt

@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.

NameKindDescription
bigintfunction
bigserialfunction
booleanfunction
charfunction
checkfunction
datefunction
decimalvariable
doublePrecisionfunction
foreignKeyfunction
indexfunction
integerfunction
intervalfunction
jsonfunction
jsonbfunction
numericfunction
pgEnumfunction
pgSchemafunction
pgTablevariable
pgViewfunction
PostgresJsDatabaseclass
primaryKeyfunction
realfunction
relationsfunction
serialfunction
smallintfunction
sqlfunction
textfunction
timefunction
timestampfunction
uniqueIndexfunction
uuidfunction
varcharfunction

On this page

Generated from the JSDoc above each export. Edit the comment there.