Initial commit - Event Planner application
This commit is contained in:
30
node_modules/kysely/dist/esm/operation-node/primary-key-constraint-node.js
generated
vendored
Normal file
30
node_modules/kysely/dist/esm/operation-node/primary-key-constraint-node.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/// <reference types="./primary-key-constraint-node.d.ts" />
|
||||
import { freeze } from '../util/object-utils.js';
|
||||
import { ColumnNode } from './column-node.js';
|
||||
import { IdentifierNode } from './identifier-node.js';
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const PrimaryKeyConstraintNode = freeze({
|
||||
is(node) {
|
||||
return node.kind === 'PrimaryKeyConstraintNode';
|
||||
},
|
||||
create(columns, constraintName) {
|
||||
return freeze({
|
||||
kind: 'PrimaryKeyConstraintNode',
|
||||
columns: freeze(columns.map(ColumnNode.create)),
|
||||
name: constraintName
|
||||
? IdentifierNode.create(constraintName)
|
||||
: undefined,
|
||||
});
|
||||
},
|
||||
cloneWith(node, props) {
|
||||
return freeze({ ...node, ...props });
|
||||
},
|
||||
});
|
||||
/**
|
||||
* Backwards compatibility for a typo in the codebase.
|
||||
*
|
||||
* @deprecated Use {@link PrimaryKeyConstraintNode} instead.
|
||||
*/
|
||||
export const PrimaryConstraintNode = PrimaryKeyConstraintNode;
|
||||
Reference in New Issue
Block a user