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

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

Constructors

new
AlterTableColumnAlteringBuilder(props: AlterTableColumnAlteringBuilderProps)

Methods

addColumn(
columnName: string,
dataType: DataTypeExpression,
): AlterTableColumnAlteringBuilder

See CreateTableBuilder.addColumn

execute(): Promise<void>
modifyColumn(
columnName: string,
dataType: DataTypeExpression,
): AlterTableColumnAlteringBuilder

Creates an alter table modify column query. The modify column statement is only implemeted by MySQL and oracle AFAIK. On other databases you should use the alterColumn method.

renameColumn(column: string, newColumn: string): AlterTableColumnAlteringBuilder