bigint.js 666 B

12345678910111213141516171819202122232425262728
  1. import { entityKind } from "../../entity.js";
  2. import { GelColumn } from "./common.js";
  3. import { GelIntColumnBaseBuilder } from "./int.common.js";
  4. class GelInt53Builder extends GelIntColumnBaseBuilder {
  5. static [entityKind] = "GelInt53Builder";
  6. constructor(name) {
  7. super(name, "number", "GelInt53");
  8. }
  9. /** @internal */
  10. build(table) {
  11. return new GelInt53(table, this.config);
  12. }
  13. }
  14. class GelInt53 extends GelColumn {
  15. static [entityKind] = "GelInt53";
  16. getSQLType() {
  17. return "bigint";
  18. }
  19. }
  20. function bigint(name) {
  21. return new GelInt53Builder(name ?? "");
  22. }
  23. export {
  24. GelInt53,
  25. GelInt53Builder,
  26. bigint
  27. };
  28. //# sourceMappingURL=bigint.js.map