localdate.js 808 B

12345678910111213141516171819202122232425262728293031
  1. import { entityKind } from "../../entity.js";
  2. import { GelColumn } from "./common.js";
  3. import { GelLocalDateColumnBaseBuilder } from "./date.common.js";
  4. class GelLocalDateStringBuilder extends GelLocalDateColumnBaseBuilder {
  5. static [entityKind] = "GelLocalDateStringBuilder";
  6. constructor(name) {
  7. super(name, "localDate", "GelLocalDateString");
  8. }
  9. /** @internal */
  10. build(table) {
  11. return new GelLocalDateString(
  12. table,
  13. this.config
  14. );
  15. }
  16. }
  17. class GelLocalDateString extends GelColumn {
  18. static [entityKind] = "GelLocalDateString";
  19. getSQLType() {
  20. return "cal::local_date";
  21. }
  22. }
  23. function localDate(name) {
  24. return new GelLocalDateStringBuilder(name ?? "");
  25. }
  26. export {
  27. GelLocalDateString,
  28. GelLocalDateStringBuilder,
  29. localDate
  30. };
  31. //# sourceMappingURL=localdate.js.map