import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { CreateTableBuilder } = kysely;
Adds a check constraint.
The constraint name can be anything you want, but it must be unique across the whole database.
Examples
import { sql } from 'kysely'
addCheckConstraint('check_legs', sql`number_of_legs < 5`)
Parameters
checkExpression: Expression<any>
Returns
CreateTableBuilder<TB, C>