duration.cjs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. "use strict";
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __hasOwnProp = Object.prototype.hasOwnProperty;
  6. var __export = (target, all) => {
  7. for (var name in all)
  8. __defProp(target, name, { get: all[name], enumerable: true });
  9. };
  10. var __copyProps = (to, from, except, desc) => {
  11. if (from && typeof from === "object" || typeof from === "function") {
  12. for (let key of __getOwnPropNames(from))
  13. if (!__hasOwnProp.call(to, key) && key !== except)
  14. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  15. }
  16. return to;
  17. };
  18. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  19. var duration_exports = {};
  20. __export(duration_exports, {
  21. GelDuration: () => GelDuration,
  22. GelDurationBuilder: () => GelDurationBuilder,
  23. duration: () => duration
  24. });
  25. module.exports = __toCommonJS(duration_exports);
  26. var import_entity = require("../../entity.cjs");
  27. var import_common = require("./common.cjs");
  28. class GelDurationBuilder extends import_common.GelColumnBuilder {
  29. static [import_entity.entityKind] = "GelDurationBuilder";
  30. constructor(name) {
  31. super(name, "duration", "GelDuration");
  32. }
  33. /** @internal */
  34. build(table) {
  35. return new GelDuration(table, this.config);
  36. }
  37. }
  38. class GelDuration extends import_common.GelColumn {
  39. static [import_entity.entityKind] = "GelDuration";
  40. getSQLType() {
  41. return `duration`;
  42. }
  43. }
  44. function duration(name) {
  45. return new GelDurationBuilder(name ?? "");
  46. }
  47. // Annotate the CommonJS export names for ESM import in node:
  48. 0 && (module.exports = {
  49. GelDuration,
  50. GelDurationBuilder,
  51. duration
  52. });
  53. //# sourceMappingURL=duration.cjs.map