Initial commit - Event Planner application
This commit is contained in:
30
node_modules/kysely/dist/esm/operation-node/alter-table-node.js
generated
vendored
Normal file
30
node_modules/kysely/dist/esm/operation-node/alter-table-node.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/// <reference types="./alter-table-node.d.ts" />
|
||||
import { freeze } from '../util/object-utils.js';
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const AlterTableNode = freeze({
|
||||
is(node) {
|
||||
return node.kind === 'AlterTableNode';
|
||||
},
|
||||
create(table) {
|
||||
return freeze({
|
||||
kind: 'AlterTableNode',
|
||||
table,
|
||||
});
|
||||
},
|
||||
cloneWithTableProps(node, props) {
|
||||
return freeze({
|
||||
...node,
|
||||
...props,
|
||||
});
|
||||
},
|
||||
cloneWithColumnAlteration(node, columnAlteration) {
|
||||
return freeze({
|
||||
...node,
|
||||
columnAlterations: node.columnAlterations
|
||||
? [...node.columnAlterations, columnAlteration]
|
||||
: [columnAlteration],
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user