Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.ColumnMetadata

Kysely dialect for PostgreSQL using the Postgres.js client.
interface kysely.ColumnMetadata
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ColumnMetadata } = kysely;

Properties

readonly
name: string
readonly
dataType: string

The data type of the column as reported by the database.

NOTE: This value is whatever the database engine returns and it will be different on different dialects even if you run the same migrations. For example integer datatype in a migration will produce int4 on PostgreSQL, INTEGER on SQLite and int on MySQL.

readonly
optional
dataTypeSchema: string

The schema this column's data type was created in.

readonly
isAutoIncrementing: boolean
readonly
isNullable: boolean
readonly
hasDefaultValue: boolean
readonly
optional
comment: string