Files
evento/node_modules/kysely/dist/cjs/operation-node/drop-index-node.js
2026-03-18 14:55:56 -03:00

27 lines
788 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DropIndexNode = void 0;
const object_utils_js_1 = require("../util/object-utils.js");
const schemable_identifier_node_js_1 = require("./schemable-identifier-node.js");
/**
* @internal
*/
exports.DropIndexNode = (0, object_utils_js_1.freeze)({
is(node) {
return node.kind === 'DropIndexNode';
},
create(name, params) {
return (0, object_utils_js_1.freeze)({
kind: 'DropIndexNode',
name: schemable_identifier_node_js_1.SchemableIdentifierNode.create(name),
...params,
});
},
cloneWith(dropIndex, props) {
return (0, object_utils_js_1.freeze)({
...dropIndex,
...props,
});
},
});