| 1234567891011121314151617181920212223242526272829303132 |
- import { entityKind } from "../../entity.js";
- import { PgColumn, PgColumnBuilder } from "./common.js";
- class PgSmallSerialBuilder extends PgColumnBuilder {
- static [entityKind] = "PgSmallSerialBuilder";
- constructor(name) {
- super(name, "number", "PgSmallSerial");
- this.config.hasDefault = true;
- this.config.notNull = true;
- }
- /** @internal */
- build(table) {
- return new PgSmallSerial(
- table,
- this.config
- );
- }
- }
- class PgSmallSerial extends PgColumn {
- static [entityKind] = "PgSmallSerial";
- getSQLType() {
- return "smallserial";
- }
- }
- function smallserial(name) {
- return new PgSmallSerialBuilder(name ?? "");
- }
- export {
- PgSmallSerial,
- PgSmallSerialBuilder,
- smallserial
- };
- //# sourceMappingURL=smallserial.js.map
|