Files
evento/node_modules/kysely/dist/esm/schema/check-constraint-builder.js
2026-03-18 14:55:56 -03:00

18 lines
428 B
JavaScript

/// <reference types="./check-constraint-builder.d.ts" />
export class CheckConstraintBuilder {
#node;
constructor(node) {
this.#node = node;
}
/**
* Simply calls the provided function passing `this` as the only argument. `$call` returns
* what the provided function returns.
*/
$call(func) {
return func(this);
}
toOperationNode() {
return this.#node;
}
}