Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.ColumnMetadata

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.ColumnMetadata
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.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