kysely
Version:
Type safe SQL query builder
19 lines (18 loc) • 455 B
JavaScript
/// <reference types="./binary-operation-node.d.ts" />
import { freeze } from '../util/object-utils.js';
/**
* @internal
*/
export const BinaryOperationNode = freeze({
is(node) {
return node.kind === 'BinaryOperationNode';
},
create(leftOperand, operator, rightOperand) {
return freeze({
kind: 'BinaryOperationNode',
leftOperand,
operator,
rightOperand,
});
},
});