import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/mod.ts";
const { AlterTableColumnAlteringBuilder } = kysely;
Constructors
new
AlterTableColumnAlteringBuilder(props: AlterTableColumnAlteringBuilderProps)Methods
alterColumn(column: string, alteration: AlterColumnBuilderCallback): AlterTableColumnAlteringBuilder
dropColumn(column: string): AlterTableColumnAlteringBuilder
execute(): Promise<void>
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