27 lines
628 B
Plaintext
27 lines
628 B
Plaintext
import { entityKind } from "../../entity.js";
|
|
import { PgColumn, PgColumnBuilder } from "./common.js";
|
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
static [entityKind] = "PgBooleanBuilder";
|
|
constructor(name) {
|
|
super(name, "boolean", "PgBoolean");
|
|
}
|
|
/** @internal */
|
|
build(table) {
|
|
return new PgBoolean(table, this.config);
|
|
}
|
|
}
|
|
class PgBoolean extends PgColumn {
|
|
static [entityKind] = "PgBoolean";
|
|
getSQLType() {
|
|
return "boolean";
|
|
}
|
|
}
|
|
function boolean(name) {
|
|
return new PgBooleanBuilder(name ?? "");
|
|
}
|
|
export {
|
|
PgBoolean,
|
|
PgBooleanBuilder,
|
|
boolean
|
|
};
|
|
//# sourceMappingURL=boolean.js.map |