Initial commit
This commit is contained in:
31
node_modules/drizzle-orm/sqlite-core/checks.js
generated
vendored
Normal file
31
node_modules/drizzle-orm/sqlite-core/checks.js
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
import { entityKind } from "../entity.js";
|
||||
class CheckBuilder {
|
||||
constructor(name, value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
static [entityKind] = "SQLiteCheckBuilder";
|
||||
brand;
|
||||
build(table) {
|
||||
return new Check(table, this);
|
||||
}
|
||||
}
|
||||
class Check {
|
||||
constructor(table, builder) {
|
||||
this.table = table;
|
||||
this.name = builder.name;
|
||||
this.value = builder.value;
|
||||
}
|
||||
static [entityKind] = "SQLiteCheck";
|
||||
name;
|
||||
value;
|
||||
}
|
||||
function check(name, value) {
|
||||
return new CheckBuilder(name, value);
|
||||
}
|
||||
export {
|
||||
Check,
|
||||
CheckBuilder,
|
||||
check
|
||||
};
|
||||
//# sourceMappingURL=checks.js.map
|
||||
Reference in New Issue
Block a user