Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.AlteredColumnBuilder

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
class kysely.AlteredColumnBuilder
import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { AlteredColumnBuilder } = kysely;

Allows us to force consumers to do exactly one alteration to a column.

Basically, deny the following:

db.schema.alterTable('person').alterColumn('age', (ac) => ac)
db.schema.alterTable('person').alterColumn('age', (ac) => ac.dropNotNull().setNotNull())

Which would now throw a compilation error, instead of a runtime error.

Constructors

new
AlteredColumnBuilder(alterColumnNode: AlterColumnNode)