fix: Final restoration with port 80
✅ COMPLETED: 1. Dockerfile uses port 80 (astro preview) 2. BaseLayout imports globals.css 3. globals.css with Tailwind v4 @theme syntax 4. index.astro has Header, Footer, FixedContact 5. All image references fixed to existing files 6. Hero uses hdpe_pipe_main.jpg 7. Product cards use hdpe001.jpg 8. pt-20 on main for fixed header ✅ TESTED LOCALLY: - Build: 15 pages in 1.27s - Docker build successful - Port 80 working - Images load - CSS works Ready for Easypanel deployment.
This commit is contained in:
32
node_modules/drizzle-orm/gel-core/alias.cjs
generated
vendored
Normal file
32
node_modules/drizzle-orm/gel-core/alias.cjs
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var alias_exports = {};
|
||||
__export(alias_exports, {
|
||||
alias: () => alias
|
||||
});
|
||||
module.exports = __toCommonJS(alias_exports);
|
||||
var import_alias = require("../alias.cjs");
|
||||
function alias(table, alias2) {
|
||||
return new Proxy(table, new import_alias.TableAliasProxyHandler(alias2, false));
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
alias
|
||||
});
|
||||
//# sourceMappingURL=alias.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/alias.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/alias.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/gel-core/alias.ts"],"sourcesContent":["import { TableAliasProxyHandler } from '~/alias.ts';\nimport type { BuildAliasTable } from './query-builders/select.types.ts';\n\nimport type { GelTable } from './table.ts';\nimport type { GelViewBase } from './view-base.ts';\n\nexport function alias<TTable extends GelTable | GelViewBase, TAlias extends string>(\n\ttable: TTable,\n\talias: TAlias,\n): BuildAliasTable<TTable, TAlias> {\n\treturn new Proxy(table, new TableAliasProxyHandler(alias, false)) as any;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAuC;AAMhC,SAAS,MACf,OACAA,QACkC;AAClC,SAAO,IAAI,MAAM,OAAO,IAAI,oCAAuBA,QAAO,KAAK,CAAC;AACjE;","names":["alias"]}
|
||||
4
node_modules/drizzle-orm/gel-core/alias.d.cts
generated
vendored
Normal file
4
node_modules/drizzle-orm/gel-core/alias.d.cts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import type { BuildAliasTable } from "./query-builders/select.types.cjs";
|
||||
import type { GelTable } from "./table.cjs";
|
||||
import type { GelViewBase } from "./view-base.cjs";
|
||||
export declare function alias<TTable extends GelTable | GelViewBase, TAlias extends string>(table: TTable, alias: TAlias): BuildAliasTable<TTable, TAlias>;
|
||||
4
node_modules/drizzle-orm/gel-core/alias.d.ts
generated
vendored
Normal file
4
node_modules/drizzle-orm/gel-core/alias.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import type { BuildAliasTable } from "./query-builders/select.types.js";
|
||||
import type { GelTable } from "./table.js";
|
||||
import type { GelViewBase } from "./view-base.js";
|
||||
export declare function alias<TTable extends GelTable | GelViewBase, TAlias extends string>(table: TTable, alias: TAlias): BuildAliasTable<TTable, TAlias>;
|
||||
8
node_modules/drizzle-orm/gel-core/alias.js
generated
vendored
Normal file
8
node_modules/drizzle-orm/gel-core/alias.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { TableAliasProxyHandler } from "../alias.js";
|
||||
function alias(table, alias2) {
|
||||
return new Proxy(table, new TableAliasProxyHandler(alias2, false));
|
||||
}
|
||||
export {
|
||||
alias
|
||||
};
|
||||
//# sourceMappingURL=alias.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/alias.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/alias.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/gel-core/alias.ts"],"sourcesContent":["import { TableAliasProxyHandler } from '~/alias.ts';\nimport type { BuildAliasTable } from './query-builders/select.types.ts';\n\nimport type { GelTable } from './table.ts';\nimport type { GelViewBase } from './view-base.ts';\n\nexport function alias<TTable extends GelTable | GelViewBase, TAlias extends string>(\n\ttable: TTable,\n\talias: TAlias,\n): BuildAliasTable<TTable, TAlias> {\n\treturn new Proxy(table, new TableAliasProxyHandler(alias, false)) as any;\n}\n"],"mappings":"AAAA,SAAS,8BAA8B;AAMhC,SAAS,MACf,OACAA,QACkC;AAClC,SAAO,IAAI,MAAM,OAAO,IAAI,uBAAuBA,QAAO,KAAK,CAAC;AACjE;","names":["alias"]}
|
||||
58
node_modules/drizzle-orm/gel-core/checks.cjs
generated
vendored
Normal file
58
node_modules/drizzle-orm/gel-core/checks.cjs
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var checks_exports = {};
|
||||
__export(checks_exports, {
|
||||
Check: () => Check,
|
||||
CheckBuilder: () => CheckBuilder,
|
||||
check: () => check
|
||||
});
|
||||
module.exports = __toCommonJS(checks_exports);
|
||||
var import_entity = require("../entity.cjs");
|
||||
class CheckBuilder {
|
||||
constructor(name, value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
static [import_entity.entityKind] = "GelCheckBuilder";
|
||||
brand;
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new Check(table, this);
|
||||
}
|
||||
}
|
||||
class Check {
|
||||
constructor(table, builder) {
|
||||
this.table = table;
|
||||
this.name = builder.name;
|
||||
this.value = builder.value;
|
||||
}
|
||||
static [import_entity.entityKind] = "GelCheck";
|
||||
name;
|
||||
value;
|
||||
}
|
||||
function check(name, value) {
|
||||
return new CheckBuilder(name, value);
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
Check,
|
||||
CheckBuilder,
|
||||
check
|
||||
});
|
||||
//# sourceMappingURL=checks.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/checks.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/checks.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/gel-core/checks.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport type { SQL } from '~/sql/index.ts';\nimport type { GelTable } from './table.ts';\n\nexport class CheckBuilder {\n\tstatic readonly [entityKind]: string = 'GelCheckBuilder';\n\n\tprotected brand!: 'GelConstraintBuilder';\n\n\tconstructor(public name: string, public value: SQL) {}\n\n\t/** @internal */\n\tbuild(table: GelTable): Check {\n\t\treturn new Check(table, this);\n\t}\n}\n\nexport class Check {\n\tstatic readonly [entityKind]: string = 'GelCheck';\n\n\treadonly name: string;\n\treadonly value: SQL;\n\n\tconstructor(public table: GelTable, builder: CheckBuilder) {\n\t\tthis.name = builder.name;\n\t\tthis.value = builder.value;\n\t}\n}\n\nexport function check(name: string, value: SQL): CheckBuilder {\n\treturn new CheckBuilder(name, value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAIpB,MAAM,aAAa;AAAA,EAKzB,YAAmB,MAAqB,OAAY;AAAjC;AAAqB;AAAA,EAAa;AAAA,EAJrD,QAAiB,wBAAU,IAAY;AAAA,EAE7B;AAAA;AAAA,EAKV,MAAM,OAAwB;AAC7B,WAAO,IAAI,MAAM,OAAO,IAAI;AAAA,EAC7B;AACD;AAEO,MAAM,MAAM;AAAA,EAMlB,YAAmB,OAAiB,SAAuB;AAAxC;AAClB,SAAK,OAAO,QAAQ;AACpB,SAAK,QAAQ,QAAQ;AAAA,EACtB;AAAA,EARA,QAAiB,wBAAU,IAAY;AAAA,EAE9B;AAAA,EACA;AAMV;AAEO,SAAS,MAAM,MAAc,OAA0B;AAC7D,SAAO,IAAI,aAAa,MAAM,KAAK;AACpC;","names":[]}
|
||||
18
node_modules/drizzle-orm/gel-core/checks.d.cts
generated
vendored
Normal file
18
node_modules/drizzle-orm/gel-core/checks.d.cts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { entityKind } from "../entity.cjs";
|
||||
import type { SQL } from "../sql/index.cjs";
|
||||
import type { GelTable } from "./table.cjs";
|
||||
export declare class CheckBuilder {
|
||||
name: string;
|
||||
value: SQL;
|
||||
static readonly [entityKind]: string;
|
||||
protected brand: 'GelConstraintBuilder';
|
||||
constructor(name: string, value: SQL);
|
||||
}
|
||||
export declare class Check {
|
||||
table: GelTable;
|
||||
static readonly [entityKind]: string;
|
||||
readonly name: string;
|
||||
readonly value: SQL;
|
||||
constructor(table: GelTable, builder: CheckBuilder);
|
||||
}
|
||||
export declare function check(name: string, value: SQL): CheckBuilder;
|
||||
18
node_modules/drizzle-orm/gel-core/checks.d.ts
generated
vendored
Normal file
18
node_modules/drizzle-orm/gel-core/checks.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { entityKind } from "../entity.js";
|
||||
import type { SQL } from "../sql/index.js";
|
||||
import type { GelTable } from "./table.js";
|
||||
export declare class CheckBuilder {
|
||||
name: string;
|
||||
value: SQL;
|
||||
static readonly [entityKind]: string;
|
||||
protected brand: 'GelConstraintBuilder';
|
||||
constructor(name: string, value: SQL);
|
||||
}
|
||||
export declare class Check {
|
||||
table: GelTable;
|
||||
static readonly [entityKind]: string;
|
||||
readonly name: string;
|
||||
readonly value: SQL;
|
||||
constructor(table: GelTable, builder: CheckBuilder);
|
||||
}
|
||||
export declare function check(name: string, value: SQL): CheckBuilder;
|
||||
32
node_modules/drizzle-orm/gel-core/checks.js
generated
vendored
Normal file
32
node_modules/drizzle-orm/gel-core/checks.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { entityKind } from "../entity.js";
|
||||
class CheckBuilder {
|
||||
constructor(name, value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
static [entityKind] = "GelCheckBuilder";
|
||||
brand;
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new Check(table, this);
|
||||
}
|
||||
}
|
||||
class Check {
|
||||
constructor(table, builder) {
|
||||
this.table = table;
|
||||
this.name = builder.name;
|
||||
this.value = builder.value;
|
||||
}
|
||||
static [entityKind] = "GelCheck";
|
||||
name;
|
||||
value;
|
||||
}
|
||||
function check(name, value) {
|
||||
return new CheckBuilder(name, value);
|
||||
}
|
||||
export {
|
||||
Check,
|
||||
CheckBuilder,
|
||||
check
|
||||
};
|
||||
//# sourceMappingURL=checks.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/checks.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/checks.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/gel-core/checks.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport type { SQL } from '~/sql/index.ts';\nimport type { GelTable } from './table.ts';\n\nexport class CheckBuilder {\n\tstatic readonly [entityKind]: string = 'GelCheckBuilder';\n\n\tprotected brand!: 'GelConstraintBuilder';\n\n\tconstructor(public name: string, public value: SQL) {}\n\n\t/** @internal */\n\tbuild(table: GelTable): Check {\n\t\treturn new Check(table, this);\n\t}\n}\n\nexport class Check {\n\tstatic readonly [entityKind]: string = 'GelCheck';\n\n\treadonly name: string;\n\treadonly value: SQL;\n\n\tconstructor(public table: GelTable, builder: CheckBuilder) {\n\t\tthis.name = builder.name;\n\t\tthis.value = builder.value;\n\t}\n}\n\nexport function check(name: string, value: SQL): CheckBuilder {\n\treturn new CheckBuilder(name, value);\n}\n"],"mappings":"AAAA,SAAS,kBAAkB;AAIpB,MAAM,aAAa;AAAA,EAKzB,YAAmB,MAAqB,OAAY;AAAjC;AAAqB;AAAA,EAAa;AAAA,EAJrD,QAAiB,UAAU,IAAY;AAAA,EAE7B;AAAA;AAAA,EAKV,MAAM,OAAwB;AAC7B,WAAO,IAAI,MAAM,OAAO,IAAI;AAAA,EAC7B;AACD;AAEO,MAAM,MAAM;AAAA,EAMlB,YAAmB,OAAiB,SAAuB;AAAxC;AAClB,SAAK,OAAO,QAAQ;AACpB,SAAK,QAAQ,QAAQ;AAAA,EACtB;AAAA,EARA,QAAiB,UAAU,IAAY;AAAA,EAE9B;AAAA,EACA;AAMV;AAEO,SAAS,MAAM,MAAc,OAA0B;AAC7D,SAAO,IAAI,aAAa,MAAM,KAAK;AACpC;","names":[]}
|
||||
72
node_modules/drizzle-orm/gel-core/columns/all.cjs
generated
vendored
Normal file
72
node_modules/drizzle-orm/gel-core/columns/all.cjs
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var all_exports = {};
|
||||
__export(all_exports, {
|
||||
getGelColumnBuilders: () => getGelColumnBuilders
|
||||
});
|
||||
module.exports = __toCommonJS(all_exports);
|
||||
var import_bigint = require("./bigint.cjs");
|
||||
var import_bigintT = require("./bigintT.cjs");
|
||||
var import_boolean = require("./boolean.cjs");
|
||||
var import_bytes = require("./bytes.cjs");
|
||||
var import_custom = require("./custom.cjs");
|
||||
var import_date_duration = require("./date-duration.cjs");
|
||||
var import_decimal = require("./decimal.cjs");
|
||||
var import_double_precision = require("./double-precision.cjs");
|
||||
var import_duration = require("./duration.cjs");
|
||||
var import_integer = require("./integer.cjs");
|
||||
var import_json = require("./json.cjs");
|
||||
var import_localdate = require("./localdate.cjs");
|
||||
var import_localtime = require("./localtime.cjs");
|
||||
var import_real = require("./real.cjs");
|
||||
var import_relative_duration = require("./relative-duration.cjs");
|
||||
var import_smallint = require("./smallint.cjs");
|
||||
var import_text = require("./text.cjs");
|
||||
var import_timestamp = require("./timestamp.cjs");
|
||||
var import_timestamptz = require("./timestamptz.cjs");
|
||||
var import_uuid = require("./uuid.cjs");
|
||||
function getGelColumnBuilders() {
|
||||
return {
|
||||
localDate: import_localdate.localDate,
|
||||
localTime: import_localtime.localTime,
|
||||
decimal: import_decimal.decimal,
|
||||
dateDuration: import_date_duration.dateDuration,
|
||||
bigintT: import_bigintT.bigintT,
|
||||
duration: import_duration.duration,
|
||||
relDuration: import_relative_duration.relDuration,
|
||||
bytes: import_bytes.bytes,
|
||||
customType: import_custom.customType,
|
||||
bigint: import_bigint.bigint,
|
||||
boolean: import_boolean.boolean,
|
||||
doublePrecision: import_double_precision.doublePrecision,
|
||||
integer: import_integer.integer,
|
||||
json: import_json.json,
|
||||
real: import_real.real,
|
||||
smallint: import_smallint.smallint,
|
||||
text: import_text.text,
|
||||
timestamptz: import_timestamptz.timestamptz,
|
||||
uuid: import_uuid.uuid,
|
||||
timestamp: import_timestamp.timestamp
|
||||
};
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
getGelColumnBuilders
|
||||
});
|
||||
//# sourceMappingURL=all.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/all.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/all.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/all.ts"],"sourcesContent":["import { bigint } from './bigint.ts';\nimport { bigintT } from './bigintT.ts';\nimport { boolean } from './boolean.ts';\nimport { bytes } from './bytes.ts';\nimport { customType } from './custom.ts';\nimport { dateDuration } from './date-duration.ts';\nimport { decimal } from './decimal.ts';\nimport { doublePrecision } from './double-precision.ts';\nimport { duration } from './duration.ts';\nimport { integer } from './integer.ts';\nimport { json } from './json.ts';\nimport { localDate } from './localdate.ts';\nimport { localTime } from './localtime.ts';\nimport { real } from './real.ts';\nimport { relDuration } from './relative-duration.ts';\nimport { smallint } from './smallint.ts';\nimport { text } from './text.ts';\nimport { timestamp } from './timestamp.ts';\nimport { timestamptz } from './timestamptz.ts';\nimport { uuid } from './uuid.ts';\n\n// TODO add\nexport function getGelColumnBuilders() {\n\treturn {\n\t\tlocalDate,\n\t\tlocalTime,\n\t\tdecimal,\n\t\tdateDuration,\n\t\tbigintT,\n\t\tduration,\n\t\trelDuration,\n\t\tbytes,\n\t\tcustomType,\n\t\tbigint,\n\t\tboolean,\n\t\tdoublePrecision,\n\t\tinteger,\n\t\tjson,\n\t\treal,\n\t\tsmallint,\n\t\ttext,\n\t\ttimestamptz,\n\t\tuuid,\n\t\ttimestamp,\n\t};\n}\n\nexport type GelColumnsBuilders = ReturnType<typeof getGelColumnBuilders>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;AACvB,qBAAwB;AACxB,qBAAwB;AACxB,mBAAsB;AACtB,oBAA2B;AAC3B,2BAA6B;AAC7B,qBAAwB;AACxB,8BAAgC;AAChC,sBAAyB;AACzB,qBAAwB;AACxB,kBAAqB;AACrB,uBAA0B;AAC1B,uBAA0B;AAC1B,kBAAqB;AACrB,+BAA4B;AAC5B,sBAAyB;AACzB,kBAAqB;AACrB,uBAA0B;AAC1B,yBAA4B;AAC5B,kBAAqB;AAGd,SAAS,uBAAuB;AACtC,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
|
||||
43
node_modules/drizzle-orm/gel-core/columns/all.d.cts
generated
vendored
Normal file
43
node_modules/drizzle-orm/gel-core/columns/all.d.cts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { bigint } from "./bigint.cjs";
|
||||
import { bigintT } from "./bigintT.cjs";
|
||||
import { boolean } from "./boolean.cjs";
|
||||
import { bytes } from "./bytes.cjs";
|
||||
import { customType } from "./custom.cjs";
|
||||
import { dateDuration } from "./date-duration.cjs";
|
||||
import { decimal } from "./decimal.cjs";
|
||||
import { doublePrecision } from "./double-precision.cjs";
|
||||
import { duration } from "./duration.cjs";
|
||||
import { integer } from "./integer.cjs";
|
||||
import { json } from "./json.cjs";
|
||||
import { localDate } from "./localdate.cjs";
|
||||
import { localTime } from "./localtime.cjs";
|
||||
import { real } from "./real.cjs";
|
||||
import { relDuration } from "./relative-duration.cjs";
|
||||
import { smallint } from "./smallint.cjs";
|
||||
import { text } from "./text.cjs";
|
||||
import { timestamp } from "./timestamp.cjs";
|
||||
import { timestamptz } from "./timestamptz.cjs";
|
||||
import { uuid } from "./uuid.cjs";
|
||||
export declare function getGelColumnBuilders(): {
|
||||
localDate: typeof localDate;
|
||||
localTime: typeof localTime;
|
||||
decimal: typeof decimal;
|
||||
dateDuration: typeof dateDuration;
|
||||
bigintT: typeof bigintT;
|
||||
duration: typeof duration;
|
||||
relDuration: typeof relDuration;
|
||||
bytes: typeof bytes;
|
||||
customType: typeof customType;
|
||||
bigint: typeof bigint;
|
||||
boolean: typeof boolean;
|
||||
doublePrecision: typeof doublePrecision;
|
||||
integer: typeof integer;
|
||||
json: typeof json;
|
||||
real: typeof real;
|
||||
smallint: typeof smallint;
|
||||
text: typeof text;
|
||||
timestamptz: typeof timestamptz;
|
||||
uuid: typeof uuid;
|
||||
timestamp: typeof timestamp;
|
||||
};
|
||||
export type GelColumnsBuilders = ReturnType<typeof getGelColumnBuilders>;
|
||||
43
node_modules/drizzle-orm/gel-core/columns/all.d.ts
generated
vendored
Normal file
43
node_modules/drizzle-orm/gel-core/columns/all.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { bigint } from "./bigint.js";
|
||||
import { bigintT } from "./bigintT.js";
|
||||
import { boolean } from "./boolean.js";
|
||||
import { bytes } from "./bytes.js";
|
||||
import { customType } from "./custom.js";
|
||||
import { dateDuration } from "./date-duration.js";
|
||||
import { decimal } from "./decimal.js";
|
||||
import { doublePrecision } from "./double-precision.js";
|
||||
import { duration } from "./duration.js";
|
||||
import { integer } from "./integer.js";
|
||||
import { json } from "./json.js";
|
||||
import { localDate } from "./localdate.js";
|
||||
import { localTime } from "./localtime.js";
|
||||
import { real } from "./real.js";
|
||||
import { relDuration } from "./relative-duration.js";
|
||||
import { smallint } from "./smallint.js";
|
||||
import { text } from "./text.js";
|
||||
import { timestamp } from "./timestamp.js";
|
||||
import { timestamptz } from "./timestamptz.js";
|
||||
import { uuid } from "./uuid.js";
|
||||
export declare function getGelColumnBuilders(): {
|
||||
localDate: typeof localDate;
|
||||
localTime: typeof localTime;
|
||||
decimal: typeof decimal;
|
||||
dateDuration: typeof dateDuration;
|
||||
bigintT: typeof bigintT;
|
||||
duration: typeof duration;
|
||||
relDuration: typeof relDuration;
|
||||
bytes: typeof bytes;
|
||||
customType: typeof customType;
|
||||
bigint: typeof bigint;
|
||||
boolean: typeof boolean;
|
||||
doublePrecision: typeof doublePrecision;
|
||||
integer: typeof integer;
|
||||
json: typeof json;
|
||||
real: typeof real;
|
||||
smallint: typeof smallint;
|
||||
text: typeof text;
|
||||
timestamptz: typeof timestamptz;
|
||||
uuid: typeof uuid;
|
||||
timestamp: typeof timestamp;
|
||||
};
|
||||
export type GelColumnsBuilders = ReturnType<typeof getGelColumnBuilders>;
|
||||
48
node_modules/drizzle-orm/gel-core/columns/all.js
generated
vendored
Normal file
48
node_modules/drizzle-orm/gel-core/columns/all.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import { bigint } from "./bigint.js";
|
||||
import { bigintT } from "./bigintT.js";
|
||||
import { boolean } from "./boolean.js";
|
||||
import { bytes } from "./bytes.js";
|
||||
import { customType } from "./custom.js";
|
||||
import { dateDuration } from "./date-duration.js";
|
||||
import { decimal } from "./decimal.js";
|
||||
import { doublePrecision } from "./double-precision.js";
|
||||
import { duration } from "./duration.js";
|
||||
import { integer } from "./integer.js";
|
||||
import { json } from "./json.js";
|
||||
import { localDate } from "./localdate.js";
|
||||
import { localTime } from "./localtime.js";
|
||||
import { real } from "./real.js";
|
||||
import { relDuration } from "./relative-duration.js";
|
||||
import { smallint } from "./smallint.js";
|
||||
import { text } from "./text.js";
|
||||
import { timestamp } from "./timestamp.js";
|
||||
import { timestamptz } from "./timestamptz.js";
|
||||
import { uuid } from "./uuid.js";
|
||||
function getGelColumnBuilders() {
|
||||
return {
|
||||
localDate,
|
||||
localTime,
|
||||
decimal,
|
||||
dateDuration,
|
||||
bigintT,
|
||||
duration,
|
||||
relDuration,
|
||||
bytes,
|
||||
customType,
|
||||
bigint,
|
||||
boolean,
|
||||
doublePrecision,
|
||||
integer,
|
||||
json,
|
||||
real,
|
||||
smallint,
|
||||
text,
|
||||
timestamptz,
|
||||
uuid,
|
||||
timestamp
|
||||
};
|
||||
}
|
||||
export {
|
||||
getGelColumnBuilders
|
||||
};
|
||||
//# sourceMappingURL=all.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/all.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/all.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/all.ts"],"sourcesContent":["import { bigint } from './bigint.ts';\nimport { bigintT } from './bigintT.ts';\nimport { boolean } from './boolean.ts';\nimport { bytes } from './bytes.ts';\nimport { customType } from './custom.ts';\nimport { dateDuration } from './date-duration.ts';\nimport { decimal } from './decimal.ts';\nimport { doublePrecision } from './double-precision.ts';\nimport { duration } from './duration.ts';\nimport { integer } from './integer.ts';\nimport { json } from './json.ts';\nimport { localDate } from './localdate.ts';\nimport { localTime } from './localtime.ts';\nimport { real } from './real.ts';\nimport { relDuration } from './relative-duration.ts';\nimport { smallint } from './smallint.ts';\nimport { text } from './text.ts';\nimport { timestamp } from './timestamp.ts';\nimport { timestamptz } from './timestamptz.ts';\nimport { uuid } from './uuid.ts';\n\n// TODO add\nexport function getGelColumnBuilders() {\n\treturn {\n\t\tlocalDate,\n\t\tlocalTime,\n\t\tdecimal,\n\t\tdateDuration,\n\t\tbigintT,\n\t\tduration,\n\t\trelDuration,\n\t\tbytes,\n\t\tcustomType,\n\t\tbigint,\n\t\tboolean,\n\t\tdoublePrecision,\n\t\tinteger,\n\t\tjson,\n\t\treal,\n\t\tsmallint,\n\t\ttext,\n\t\ttimestamptz,\n\t\tuuid,\n\t\ttimestamp,\n\t};\n}\n\nexport type GelColumnsBuilders = ReturnType<typeof getGelColumnBuilders>;\n"],"mappings":"AAAA,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAGd,SAAS,uBAAuB;AACtC,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
|
||||
54
node_modules/drizzle-orm/gel-core/columns/bigint.cjs
generated
vendored
Normal file
54
node_modules/drizzle-orm/gel-core/columns/bigint.cjs
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var bigint_exports = {};
|
||||
__export(bigint_exports, {
|
||||
GelInt53: () => GelInt53,
|
||||
GelInt53Builder: () => GelInt53Builder,
|
||||
bigint: () => bigint
|
||||
});
|
||||
module.exports = __toCommonJS(bigint_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
var import_int_common = require("./int.common.cjs");
|
||||
class GelInt53Builder extends import_int_common.GelIntColumnBaseBuilder {
|
||||
static [import_entity.entityKind] = "GelInt53Builder";
|
||||
constructor(name) {
|
||||
super(name, "number", "GelInt53");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelInt53(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelInt53 extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelInt53";
|
||||
getSQLType() {
|
||||
return "bigint";
|
||||
}
|
||||
}
|
||||
function bigint(name) {
|
||||
return new GelInt53Builder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelInt53,
|
||||
GelInt53Builder,
|
||||
bigint
|
||||
});
|
||||
//# sourceMappingURL=bigint.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bigint.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bigint.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bigint.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn } from './common.ts';\nimport { GelIntColumnBaseBuilder } from './int.common.ts';\n\nexport type GelInt53BuilderInitial<TName extends string> = GelInt53Builder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'GelInt53';\n\tdata: number;\n\tdriverParam: number;\n\tenumValues: undefined;\n}>;\n\nexport class GelInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'GelInt53'>>\n\textends GelIntColumnBaseBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelInt53Builder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'number', 'GelInt53');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelInt53<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelInt53<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelInt53<T extends ColumnBaseConfig<'number', 'GelInt53'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelInt53';\n\n\tgetSQLType(): string {\n\t\treturn 'bigint';\n\t}\n}\n\nexport function bigint(): GelInt53BuilderInitial<''>;\nexport function bigint<TName extends string>(name: TName): GelInt53BuilderInitial<TName>;\nexport function bigint(name?: string) {\n\treturn new GelInt53Builder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA0B;AAC1B,wBAAwC;AAWjC,MAAM,wBACJ,0CACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,UAAU;AAAA,EACjC;AAAA;AAAA,EAGS,MACR,OAC4C;AAC5C,WAAO,IAAI,SAA0C,OAAO,KAAK,MAA8C;AAAA,EAChH;AACD;AAEO,MAAM,iBAAmE,wBAAa;AAAA,EAC5F,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,OAAO,MAAe;AACrC,SAAO,IAAI,gBAAgB,QAAQ,EAAE;AACtC;","names":[]}
|
||||
23
node_modules/drizzle-orm/gel-core/columns/bigint.d.cts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/bigint.d.cts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn } from "./common.cjs";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.cjs";
|
||||
export type GelInt53BuilderInitial<TName extends string> = GelInt53Builder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelInt53';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'GelInt53'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelInt53<T extends ColumnBaseConfig<'number', 'GelInt53'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function bigint(): GelInt53BuilderInitial<''>;
|
||||
export declare function bigint<TName extends string>(name: TName): GelInt53BuilderInitial<TName>;
|
||||
23
node_modules/drizzle-orm/gel-core/columns/bigint.d.ts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/bigint.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn } from "./common.js";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.js";
|
||||
export type GelInt53BuilderInitial<TName extends string> = GelInt53Builder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelInt53';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'GelInt53'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelInt53<T extends ColumnBaseConfig<'number', 'GelInt53'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function bigint(): GelInt53BuilderInitial<''>;
|
||||
export declare function bigint<TName extends string>(name: TName): GelInt53BuilderInitial<TName>;
|
||||
28
node_modules/drizzle-orm/gel-core/columns/bigint.js
generated
vendored
Normal file
28
node_modules/drizzle-orm/gel-core/columns/bigint.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn } from "./common.js";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.js";
|
||||
class GelInt53Builder extends GelIntColumnBaseBuilder {
|
||||
static [entityKind] = "GelInt53Builder";
|
||||
constructor(name) {
|
||||
super(name, "number", "GelInt53");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelInt53(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelInt53 extends GelColumn {
|
||||
static [entityKind] = "GelInt53";
|
||||
getSQLType() {
|
||||
return "bigint";
|
||||
}
|
||||
}
|
||||
function bigint(name) {
|
||||
return new GelInt53Builder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelInt53,
|
||||
GelInt53Builder,
|
||||
bigint
|
||||
};
|
||||
//# sourceMappingURL=bigint.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bigint.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bigint.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bigint.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn } from './common.ts';\nimport { GelIntColumnBaseBuilder } from './int.common.ts';\n\nexport type GelInt53BuilderInitial<TName extends string> = GelInt53Builder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'GelInt53';\n\tdata: number;\n\tdriverParam: number;\n\tenumValues: undefined;\n}>;\n\nexport class GelInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'GelInt53'>>\n\textends GelIntColumnBaseBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelInt53Builder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'number', 'GelInt53');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelInt53<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelInt53<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelInt53<T extends ColumnBaseConfig<'number', 'GelInt53'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelInt53';\n\n\tgetSQLType(): string {\n\t\treturn 'bigint';\n\t}\n}\n\nexport function bigint(): GelInt53BuilderInitial<''>;\nexport function bigint<TName extends string>(name: TName): GelInt53BuilderInitial<TName>;\nexport function bigint(name?: string) {\n\treturn new GelInt53Builder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,iBAAiB;AAC1B,SAAS,+BAA+B;AAWjC,MAAM,wBACJ,wBACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,UAAU;AAAA,EACjC;AAAA;AAAA,EAGS,MACR,OAC4C;AAC5C,WAAO,IAAI,SAA0C,OAAO,KAAK,MAA8C;AAAA,EAChH;AACD;AAEO,MAAM,iBAAmE,UAAa;AAAA,EAC5F,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,OAAO,MAAe;AACrC,SAAO,IAAI,gBAAgB,QAAQ,EAAE;AACtC;","names":[]}
|
||||
60
node_modules/drizzle-orm/gel-core/columns/bigintT.cjs
generated
vendored
Normal file
60
node_modules/drizzle-orm/gel-core/columns/bigintT.cjs
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var bigintT_exports = {};
|
||||
__export(bigintT_exports, {
|
||||
GelBigInt64: () => GelBigInt64,
|
||||
GelBigInt64Builder: () => GelBigInt64Builder,
|
||||
bigintT: () => bigintT
|
||||
});
|
||||
module.exports = __toCommonJS(bigintT_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
var import_int_common = require("./int.common.cjs");
|
||||
class GelBigInt64Builder extends import_int_common.GelIntColumnBaseBuilder {
|
||||
static [import_entity.entityKind] = "GelBigInt64Builder";
|
||||
constructor(name) {
|
||||
super(name, "bigint", "GelBigInt64");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBigInt64(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelBigInt64 extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelBigInt64";
|
||||
getSQLType() {
|
||||
return "edgedbt.bigint_t";
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
return BigInt(value);
|
||||
}
|
||||
}
|
||||
function bigintT(name) {
|
||||
return new GelBigInt64Builder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelBigInt64,
|
||||
GelBigInt64Builder,
|
||||
bigintT
|
||||
});
|
||||
//# sourceMappingURL=bigintT.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bigintT.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bigintT.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bigintT.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn } from './common.ts';\nimport { GelIntColumnBaseBuilder } from './int.common.ts';\n\nexport type GelBigInt64BuilderInitial<TName extends string> = GelBigInt64Builder<{\n\tname: TName;\n\tdataType: 'bigint';\n\tcolumnType: 'GelBigInt64';\n\tdata: bigint;\n\tdriverParam: bigint;\n\tenumValues: undefined;\n}>;\n\nexport class GelBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'GelBigInt64'>>\n\textends GelIntColumnBaseBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelBigInt64Builder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'bigint', 'GelBigInt64');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBigInt64<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBigInt64<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelBigInt64<T extends ColumnBaseConfig<'bigint', 'GelBigInt64'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBigInt64';\n\n\tgetSQLType(): string {\n\t\treturn 'edgedbt.bigint_t';\n\t}\n\n\toverride mapFromDriverValue(value: string): bigint {\n\t\treturn BigInt(value as string); // TODO ts error if remove 'as string'\n\t}\n}\n\nexport function bigintT(): GelBigInt64BuilderInitial<''>;\nexport function bigintT<TName extends string>(name: TName): GelBigInt64BuilderInitial<TName>;\nexport function bigintT(name?: string) {\n\treturn new GelBigInt64Builder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA0B;AAC1B,wBAAwC;AAWjC,MAAM,2BACJ,0CACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,aAAa;AAAA,EACpC;AAAA;AAAA,EAGS,MACR,OAC+C;AAC/C,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,oBAAyE,wBAAa;AAAA,EAClG,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AAAA,EAES,mBAAmB,OAAuB;AAClD,WAAO,OAAO,KAAe;AAAA,EAC9B;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,mBAAmB,QAAQ,EAAE;AACzC;","names":[]}
|
||||
24
node_modules/drizzle-orm/gel-core/columns/bigintT.d.cts
generated
vendored
Normal file
24
node_modules/drizzle-orm/gel-core/columns/bigintT.d.cts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn } from "./common.cjs";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.cjs";
|
||||
export type GelBigInt64BuilderInitial<TName extends string> = GelBigInt64Builder<{
|
||||
name: TName;
|
||||
dataType: 'bigint';
|
||||
columnType: 'GelBigInt64';
|
||||
data: bigint;
|
||||
driverParam: bigint;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'GelBigInt64'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBigInt64<T extends ColumnBaseConfig<'bigint', 'GelBigInt64'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: string): bigint;
|
||||
}
|
||||
export declare function bigintT(): GelBigInt64BuilderInitial<''>;
|
||||
export declare function bigintT<TName extends string>(name: TName): GelBigInt64BuilderInitial<TName>;
|
||||
24
node_modules/drizzle-orm/gel-core/columns/bigintT.d.ts
generated
vendored
Normal file
24
node_modules/drizzle-orm/gel-core/columns/bigintT.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn } from "./common.js";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.js";
|
||||
export type GelBigInt64BuilderInitial<TName extends string> = GelBigInt64Builder<{
|
||||
name: TName;
|
||||
dataType: 'bigint';
|
||||
columnType: 'GelBigInt64';
|
||||
data: bigint;
|
||||
driverParam: bigint;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'GelBigInt64'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBigInt64<T extends ColumnBaseConfig<'bigint', 'GelBigInt64'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: string): bigint;
|
||||
}
|
||||
export declare function bigintT(): GelBigInt64BuilderInitial<''>;
|
||||
export declare function bigintT<TName extends string>(name: TName): GelBigInt64BuilderInitial<TName>;
|
||||
34
node_modules/drizzle-orm/gel-core/columns/bigintT.js
generated
vendored
Normal file
34
node_modules/drizzle-orm/gel-core/columns/bigintT.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn } from "./common.js";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.js";
|
||||
class GelBigInt64Builder extends GelIntColumnBaseBuilder {
|
||||
static [entityKind] = "GelBigInt64Builder";
|
||||
constructor(name) {
|
||||
super(name, "bigint", "GelBigInt64");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBigInt64(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelBigInt64 extends GelColumn {
|
||||
static [entityKind] = "GelBigInt64";
|
||||
getSQLType() {
|
||||
return "edgedbt.bigint_t";
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
return BigInt(value);
|
||||
}
|
||||
}
|
||||
function bigintT(name) {
|
||||
return new GelBigInt64Builder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelBigInt64,
|
||||
GelBigInt64Builder,
|
||||
bigintT
|
||||
};
|
||||
//# sourceMappingURL=bigintT.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bigintT.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bigintT.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bigintT.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn } from './common.ts';\nimport { GelIntColumnBaseBuilder } from './int.common.ts';\n\nexport type GelBigInt64BuilderInitial<TName extends string> = GelBigInt64Builder<{\n\tname: TName;\n\tdataType: 'bigint';\n\tcolumnType: 'GelBigInt64';\n\tdata: bigint;\n\tdriverParam: bigint;\n\tenumValues: undefined;\n}>;\n\nexport class GelBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'GelBigInt64'>>\n\textends GelIntColumnBaseBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelBigInt64Builder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'bigint', 'GelBigInt64');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBigInt64<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBigInt64<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelBigInt64<T extends ColumnBaseConfig<'bigint', 'GelBigInt64'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBigInt64';\n\n\tgetSQLType(): string {\n\t\treturn 'edgedbt.bigint_t';\n\t}\n\n\toverride mapFromDriverValue(value: string): bigint {\n\t\treturn BigInt(value as string); // TODO ts error if remove 'as string'\n\t}\n}\n\nexport function bigintT(): GelBigInt64BuilderInitial<''>;\nexport function bigintT<TName extends string>(name: TName): GelBigInt64BuilderInitial<TName>;\nexport function bigintT(name?: string) {\n\treturn new GelBigInt64Builder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,iBAAiB;AAC1B,SAAS,+BAA+B;AAWjC,MAAM,2BACJ,wBACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,aAAa;AAAA,EACpC;AAAA;AAAA,EAGS,MACR,OAC+C;AAC/C,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,oBAAyE,UAAa;AAAA,EAClG,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AAAA,EAES,mBAAmB,OAAuB;AAClD,WAAO,OAAO,KAAe;AAAA,EAC9B;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,mBAAmB,QAAQ,EAAE;AACzC;","names":[]}
|
||||
53
node_modules/drizzle-orm/gel-core/columns/boolean.cjs
generated
vendored
Normal file
53
node_modules/drizzle-orm/gel-core/columns/boolean.cjs
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var boolean_exports = {};
|
||||
__export(boolean_exports, {
|
||||
GelBoolean: () => GelBoolean,
|
||||
GelBooleanBuilder: () => GelBooleanBuilder,
|
||||
boolean: () => boolean
|
||||
});
|
||||
module.exports = __toCommonJS(boolean_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelBooleanBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelBooleanBuilder";
|
||||
constructor(name) {
|
||||
super(name, "boolean", "GelBoolean");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBoolean(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelBoolean extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelBoolean";
|
||||
getSQLType() {
|
||||
return "boolean";
|
||||
}
|
||||
}
|
||||
function boolean(name) {
|
||||
return new GelBooleanBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelBoolean,
|
||||
GelBooleanBuilder,
|
||||
boolean
|
||||
});
|
||||
//# sourceMappingURL=boolean.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/boolean.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/boolean.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/boolean.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelBooleanBuilderInitial<TName extends string> = GelBooleanBuilder<{\n\tname: TName;\n\tdataType: 'boolean';\n\tcolumnType: 'GelBoolean';\n\tdata: boolean;\n\tdriverParam: boolean;\n\tenumValues: undefined;\n}>;\n\nexport class GelBooleanBuilder<T extends ColumnBuilderBaseConfig<'boolean', 'GelBoolean'>> extends GelColumnBuilder<T> {\n\tstatic override readonly [entityKind]: string = 'GelBooleanBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'boolean', 'GelBoolean');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBoolean<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBoolean<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelBoolean<T extends ColumnBaseConfig<'boolean', 'GelBoolean'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBoolean';\n\n\tgetSQLType(): string {\n\t\treturn 'boolean';\n\t}\n}\n\nexport function boolean(): GelBooleanBuilderInitial<''>;\nexport function boolean<TName extends string>(name: TName): GelBooleanBuilderInitial<TName>;\nexport function boolean(name?: string) {\n\treturn new GelBooleanBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,0BAAsF,+BAAoB;AAAA,EACtH,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,WAAW,YAAY;AAAA,EACpC;AAAA;AAAA,EAGS,MACR,OAC8C;AAC9C,WAAO,IAAI,WAA4C,OAAO,KAAK,MAA8C;AAAA,EAClH;AACD;AAEO,MAAM,mBAAwE,wBAAa;AAAA,EACjG,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,kBAAkB,QAAQ,EAAE;AACxC;","names":[]}
|
||||
22
node_modules/drizzle-orm/gel-core/columns/boolean.d.cts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/boolean.d.cts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelBooleanBuilderInitial<TName extends string> = GelBooleanBuilder<{
|
||||
name: TName;
|
||||
dataType: 'boolean';
|
||||
columnType: 'GelBoolean';
|
||||
data: boolean;
|
||||
driverParam: boolean;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBooleanBuilder<T extends ColumnBuilderBaseConfig<'boolean', 'GelBoolean'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBoolean<T extends ColumnBaseConfig<'boolean', 'GelBoolean'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function boolean(): GelBooleanBuilderInitial<''>;
|
||||
export declare function boolean<TName extends string>(name: TName): GelBooleanBuilderInitial<TName>;
|
||||
22
node_modules/drizzle-orm/gel-core/columns/boolean.d.ts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/boolean.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelBooleanBuilderInitial<TName extends string> = GelBooleanBuilder<{
|
||||
name: TName;
|
||||
dataType: 'boolean';
|
||||
columnType: 'GelBoolean';
|
||||
data: boolean;
|
||||
driverParam: boolean;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBooleanBuilder<T extends ColumnBuilderBaseConfig<'boolean', 'GelBoolean'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBoolean<T extends ColumnBaseConfig<'boolean', 'GelBoolean'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function boolean(): GelBooleanBuilderInitial<''>;
|
||||
export declare function boolean<TName extends string>(name: TName): GelBooleanBuilderInitial<TName>;
|
||||
27
node_modules/drizzle-orm/gel-core/columns/boolean.js
generated
vendored
Normal file
27
node_modules/drizzle-orm/gel-core/columns/boolean.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelBooleanBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelBooleanBuilder";
|
||||
constructor(name) {
|
||||
super(name, "boolean", "GelBoolean");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBoolean(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelBoolean extends GelColumn {
|
||||
static [entityKind] = "GelBoolean";
|
||||
getSQLType() {
|
||||
return "boolean";
|
||||
}
|
||||
}
|
||||
function boolean(name) {
|
||||
return new GelBooleanBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelBoolean,
|
||||
GelBooleanBuilder,
|
||||
boolean
|
||||
};
|
||||
//# sourceMappingURL=boolean.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/boolean.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/boolean.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/boolean.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelBooleanBuilderInitial<TName extends string> = GelBooleanBuilder<{\n\tname: TName;\n\tdataType: 'boolean';\n\tcolumnType: 'GelBoolean';\n\tdata: boolean;\n\tdriverParam: boolean;\n\tenumValues: undefined;\n}>;\n\nexport class GelBooleanBuilder<T extends ColumnBuilderBaseConfig<'boolean', 'GelBoolean'>> extends GelColumnBuilder<T> {\n\tstatic override readonly [entityKind]: string = 'GelBooleanBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'boolean', 'GelBoolean');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBoolean<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBoolean<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelBoolean<T extends ColumnBaseConfig<'boolean', 'GelBoolean'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBoolean';\n\n\tgetSQLType(): string {\n\t\treturn 'boolean';\n\t}\n}\n\nexport function boolean(): GelBooleanBuilderInitial<''>;\nexport function boolean<TName extends string>(name: TName): GelBooleanBuilderInitial<TName>;\nexport function boolean(name?: string) {\n\treturn new GelBooleanBuilder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,0BAAsF,iBAAoB;AAAA,EACtH,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,WAAW,YAAY;AAAA,EACpC;AAAA;AAAA,EAGS,MACR,OAC8C;AAC9C,WAAO,IAAI,WAA4C,OAAO,KAAK,MAA8C;AAAA,EAClH;AACD;AAEO,MAAM,mBAAwE,UAAa;AAAA,EACjG,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,kBAAkB,QAAQ,EAAE;AACxC;","names":[]}
|
||||
56
node_modules/drizzle-orm/gel-core/columns/bytes.cjs
generated
vendored
Normal file
56
node_modules/drizzle-orm/gel-core/columns/bytes.cjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var bytes_exports = {};
|
||||
__export(bytes_exports, {
|
||||
GelBytes: () => GelBytes,
|
||||
GelBytesBuilder: () => GelBytesBuilder,
|
||||
bytes: () => bytes
|
||||
});
|
||||
module.exports = __toCommonJS(bytes_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelBytesBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelBytesBuilder";
|
||||
constructor(name) {
|
||||
super(name, "buffer", "GelBytes");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBytes(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelBytes extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelBytes";
|
||||
getSQLType() {
|
||||
return "bytea";
|
||||
}
|
||||
}
|
||||
function bytes(name) {
|
||||
return new GelBytesBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelBytes,
|
||||
GelBytesBuilder,
|
||||
bytes
|
||||
});
|
||||
//# sourceMappingURL=bytes.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bytes.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bytes.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bytes.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelBytesBuilderInitial<TName extends string> = GelBytesBuilder<{\n\tname: TName;\n\tdataType: 'buffer';\n\tcolumnType: 'GelBytes';\n\tdata: Uint8Array;\n\tdriverParam: Uint8Array | Buffer;\n\tenumValues: undefined;\n}>;\n\nexport class GelBytesBuilder<T extends ColumnBuilderBaseConfig<'buffer', 'GelBytes'>> extends GelColumnBuilder<T> {\n\tstatic override readonly [entityKind]: string = 'GelBytesBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'buffer', 'GelBytes');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBytes<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBytes<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelBytes<T extends ColumnBaseConfig<'buffer', 'GelBytes'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBytes';\n\n\tgetSQLType(): string {\n\t\treturn 'bytea';\n\t}\n}\n\nexport function bytes(): GelBytesBuilderInitial<''>;\nexport function bytes<TName extends string>(name: TName): GelBytesBuilderInitial<TName>;\nexport function bytes(name?: string) {\n\treturn new GelBytesBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,wBAAiF,+BAAoB;AAAA,EACjH,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,UAAU;AAAA,EACjC;AAAA;AAAA,EAGS,MACR,OAC4C;AAC5C,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,iBAAmE,wBAAa;AAAA,EAC5F,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,MAAM,MAAe;AACpC,SAAO,IAAI,gBAAgB,QAAQ,EAAE;AACtC;","names":[]}
|
||||
22
node_modules/drizzle-orm/gel-core/columns/bytes.d.cts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/bytes.d.cts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelBytesBuilderInitial<TName extends string> = GelBytesBuilder<{
|
||||
name: TName;
|
||||
dataType: 'buffer';
|
||||
columnType: 'GelBytes';
|
||||
data: Uint8Array;
|
||||
driverParam: Uint8Array | Buffer;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBytesBuilder<T extends ColumnBuilderBaseConfig<'buffer', 'GelBytes'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBytes<T extends ColumnBaseConfig<'buffer', 'GelBytes'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function bytes(): GelBytesBuilderInitial<''>;
|
||||
export declare function bytes<TName extends string>(name: TName): GelBytesBuilderInitial<TName>;
|
||||
22
node_modules/drizzle-orm/gel-core/columns/bytes.d.ts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/bytes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelBytesBuilderInitial<TName extends string> = GelBytesBuilder<{
|
||||
name: TName;
|
||||
dataType: 'buffer';
|
||||
columnType: 'GelBytes';
|
||||
data: Uint8Array;
|
||||
driverParam: Uint8Array | Buffer;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelBytesBuilder<T extends ColumnBuilderBaseConfig<'buffer', 'GelBytes'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelBytes<T extends ColumnBaseConfig<'buffer', 'GelBytes'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function bytes(): GelBytesBuilderInitial<''>;
|
||||
export declare function bytes<TName extends string>(name: TName): GelBytesBuilderInitial<TName>;
|
||||
30
node_modules/drizzle-orm/gel-core/columns/bytes.js
generated
vendored
Normal file
30
node_modules/drizzle-orm/gel-core/columns/bytes.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelBytesBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelBytesBuilder";
|
||||
constructor(name) {
|
||||
super(name, "buffer", "GelBytes");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelBytes(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelBytes extends GelColumn {
|
||||
static [entityKind] = "GelBytes";
|
||||
getSQLType() {
|
||||
return "bytea";
|
||||
}
|
||||
}
|
||||
function bytes(name) {
|
||||
return new GelBytesBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelBytes,
|
||||
GelBytesBuilder,
|
||||
bytes
|
||||
};
|
||||
//# sourceMappingURL=bytes.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/bytes.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/bytes.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/bytes.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelBytesBuilderInitial<TName extends string> = GelBytesBuilder<{\n\tname: TName;\n\tdataType: 'buffer';\n\tcolumnType: 'GelBytes';\n\tdata: Uint8Array;\n\tdriverParam: Uint8Array | Buffer;\n\tenumValues: undefined;\n}>;\n\nexport class GelBytesBuilder<T extends ColumnBuilderBaseConfig<'buffer', 'GelBytes'>> extends GelColumnBuilder<T> {\n\tstatic override readonly [entityKind]: string = 'GelBytesBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'buffer', 'GelBytes');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelBytes<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelBytes<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelBytes<T extends ColumnBaseConfig<'buffer', 'GelBytes'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelBytes';\n\n\tgetSQLType(): string {\n\t\treturn 'bytea';\n\t}\n}\n\nexport function bytes(): GelBytesBuilderInitial<''>;\nexport function bytes<TName extends string>(name: TName): GelBytesBuilderInitial<TName>;\nexport function bytes(name?: string) {\n\treturn new GelBytesBuilder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,wBAAiF,iBAAoB;AAAA,EACjH,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,UAAU;AAAA,EACjC;AAAA;AAAA,EAGS,MACR,OAC4C;AAC5C,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,iBAAmE,UAAa;AAAA,EAC5F,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,MAAM,MAAe;AACpC,SAAO,IAAI,gBAAgB,QAAQ,EAAE;AACtC;","names":[]}
|
||||
213
node_modules/drizzle-orm/gel-core/columns/common.cjs
generated
vendored
Normal file
213
node_modules/drizzle-orm/gel-core/columns/common.cjs
generated
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var common_exports = {};
|
||||
__export(common_exports, {
|
||||
GelArray: () => GelArray,
|
||||
GelArrayBuilder: () => GelArrayBuilder,
|
||||
GelColumn: () => GelColumn,
|
||||
GelColumnBuilder: () => GelColumnBuilder,
|
||||
GelExtraConfigColumn: () => GelExtraConfigColumn,
|
||||
IndexedColumn: () => IndexedColumn
|
||||
});
|
||||
module.exports = __toCommonJS(common_exports);
|
||||
var import_column_builder = require("../../column-builder.cjs");
|
||||
var import_column = require("../../column.cjs");
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_foreign_keys = require("../foreign-keys.cjs");
|
||||
var import_tracing_utils = require("../../tracing-utils.cjs");
|
||||
var import_unique_constraint = require("../unique-constraint.cjs");
|
||||
class GelColumnBuilder extends import_column_builder.ColumnBuilder {
|
||||
foreignKeyConfigs = [];
|
||||
static [import_entity.entityKind] = "GelColumnBuilder";
|
||||
array(size) {
|
||||
return new GelArrayBuilder(this.config.name, this, size);
|
||||
}
|
||||
references(ref, actions = {}) {
|
||||
this.foreignKeyConfigs.push({ ref, actions });
|
||||
return this;
|
||||
}
|
||||
unique(name, config) {
|
||||
this.config.isUnique = true;
|
||||
this.config.uniqueName = name;
|
||||
this.config.uniqueType = config?.nulls;
|
||||
return this;
|
||||
}
|
||||
generatedAlwaysAs(as) {
|
||||
this.config.generated = {
|
||||
as,
|
||||
type: "always",
|
||||
mode: "stored"
|
||||
};
|
||||
return this;
|
||||
}
|
||||
/** @internal */
|
||||
buildForeignKeys(column, table) {
|
||||
return this.foreignKeyConfigs.map(({ ref, actions }) => {
|
||||
return (0, import_tracing_utils.iife)(
|
||||
(ref2, actions2) => {
|
||||
const builder = new import_foreign_keys.ForeignKeyBuilder(() => {
|
||||
const foreignColumn = ref2();
|
||||
return { columns: [column], foreignColumns: [foreignColumn] };
|
||||
});
|
||||
if (actions2.onUpdate) {
|
||||
builder.onUpdate(actions2.onUpdate);
|
||||
}
|
||||
if (actions2.onDelete) {
|
||||
builder.onDelete(actions2.onDelete);
|
||||
}
|
||||
return builder.build(table);
|
||||
},
|
||||
ref,
|
||||
actions
|
||||
);
|
||||
});
|
||||
}
|
||||
/** @internal */
|
||||
buildExtraConfigColumn(table) {
|
||||
return new GelExtraConfigColumn(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelColumn extends import_column.Column {
|
||||
constructor(table, config) {
|
||||
if (!config.uniqueName) {
|
||||
config.uniqueName = (0, import_unique_constraint.uniqueKeyName)(table, [config.name]);
|
||||
}
|
||||
super(table, config);
|
||||
this.table = table;
|
||||
}
|
||||
static [import_entity.entityKind] = "GelColumn";
|
||||
}
|
||||
class GelExtraConfigColumn extends GelColumn {
|
||||
static [import_entity.entityKind] = "GelExtraConfigColumn";
|
||||
getSQLType() {
|
||||
return this.getSQLType();
|
||||
}
|
||||
indexConfig = {
|
||||
order: this.config.order ?? "asc",
|
||||
nulls: this.config.nulls ?? "last",
|
||||
opClass: this.config.opClass
|
||||
};
|
||||
defaultConfig = {
|
||||
order: "asc",
|
||||
nulls: "last",
|
||||
opClass: void 0
|
||||
};
|
||||
asc() {
|
||||
this.indexConfig.order = "asc";
|
||||
return this;
|
||||
}
|
||||
desc() {
|
||||
this.indexConfig.order = "desc";
|
||||
return this;
|
||||
}
|
||||
nullsFirst() {
|
||||
this.indexConfig.nulls = "first";
|
||||
return this;
|
||||
}
|
||||
nullsLast() {
|
||||
this.indexConfig.nulls = "last";
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* ### PostgreSQL documentation quote
|
||||
*
|
||||
* > An operator class with optional parameters can be specified for each column of an index.
|
||||
* The operator class identifies the operators to be used by the index for that column.
|
||||
* For example, a B-tree index on four-byte integers would use the int4_ops class;
|
||||
* this operator class includes comparison functions for four-byte integers.
|
||||
* In practice the default operator class for the column's data type is usually sufficient.
|
||||
* The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
|
||||
* For example, we might want to sort a complex-number data type either by absolute value or by real part.
|
||||
* We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
|
||||
* More information about operator classes check:
|
||||
*
|
||||
* ### Useful links
|
||||
* https://www.postgresql.org/docs/current/sql-createindex.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/indexes-opclass.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/xindex.html
|
||||
*
|
||||
* ### Additional types
|
||||
* If you have the `Gel_vector` extension installed in your database, you can use the
|
||||
* `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
|
||||
*
|
||||
* **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
|
||||
*
|
||||
* @param opClass
|
||||
* @returns
|
||||
*/
|
||||
op(opClass) {
|
||||
this.indexConfig.opClass = opClass;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
class IndexedColumn {
|
||||
static [import_entity.entityKind] = "IndexedColumn";
|
||||
constructor(name, keyAsName, type, indexConfig) {
|
||||
this.name = name;
|
||||
this.keyAsName = keyAsName;
|
||||
this.type = type;
|
||||
this.indexConfig = indexConfig;
|
||||
}
|
||||
name;
|
||||
keyAsName;
|
||||
type;
|
||||
indexConfig;
|
||||
}
|
||||
class GelArrayBuilder extends GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelArrayBuilder";
|
||||
constructor(name, baseBuilder, size) {
|
||||
super(name, "array", "GelArray");
|
||||
this.config.baseBuilder = baseBuilder;
|
||||
this.config.size = size;
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
const baseColumn = this.config.baseBuilder.build(table);
|
||||
return new GelArray(
|
||||
table,
|
||||
this.config,
|
||||
baseColumn
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelArray extends GelColumn {
|
||||
constructor(table, config, baseColumn, range) {
|
||||
super(table, config);
|
||||
this.baseColumn = baseColumn;
|
||||
this.range = range;
|
||||
this.size = config.size;
|
||||
}
|
||||
size;
|
||||
static [import_entity.entityKind] = "GelArray";
|
||||
getSQLType() {
|
||||
return `${this.baseColumn.getSQLType()}[${typeof this.size === "number" ? this.size : ""}]`;
|
||||
}
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelArray,
|
||||
GelArrayBuilder,
|
||||
GelColumn,
|
||||
GelColumnBuilder,
|
||||
GelExtraConfigColumn,
|
||||
IndexedColumn
|
||||
});
|
||||
//# sourceMappingURL=common.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/common.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/common.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
147
node_modules/drizzle-orm/gel-core/columns/common.d.cts
generated
vendored
Normal file
147
node_modules/drizzle-orm/gel-core/columns/common.d.cts
generated
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import type { ColumnBuilderBase, ColumnBuilderBaseConfig, ColumnBuilderExtraConfig, ColumnBuilderRuntimeConfig, ColumnDataType, HasGenerated } from "../../column-builder.cjs";
|
||||
import { ColumnBuilder } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { Column } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import type { Simplify, Update } from "../../utils.cjs";
|
||||
import type { UpdateDeleteAction } from "../foreign-keys.cjs";
|
||||
import type { AnyGelTable, GelTable } from "../table.cjs";
|
||||
import type { SQL } from "../../sql/sql.cjs";
|
||||
import type { GelIndexOpClass } from "../indexes.cjs";
|
||||
export interface ReferenceConfig {
|
||||
ref: () => GelColumn;
|
||||
actions: {
|
||||
onUpdate?: UpdateDeleteAction;
|
||||
onDelete?: UpdateDeleteAction;
|
||||
};
|
||||
}
|
||||
export interface GelColumnBuilderBase<T extends ColumnBuilderBaseConfig<ColumnDataType, string> = ColumnBuilderBaseConfig<ColumnDataType, string>, TTypeConfig extends object = object> extends ColumnBuilderBase<T, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}> {
|
||||
}
|
||||
export declare abstract class GelColumnBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string> = ColumnBuilderBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = object, TTypeConfig extends object = object, TExtraConfig extends ColumnBuilderExtraConfig = ColumnBuilderExtraConfig> extends ColumnBuilder<T, TRuntimeConfig, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}, TExtraConfig> implements GelColumnBuilderBase<T, TTypeConfig> {
|
||||
private foreignKeyConfigs;
|
||||
static readonly [entityKind]: string;
|
||||
array<TSize extends number | undefined = undefined>(size?: TSize): GelArrayBuilder<{
|
||||
name: T['name'];
|
||||
dataType: 'array';
|
||||
columnType: 'GelArray';
|
||||
data: T['data'][];
|
||||
driverParam: T['driverParam'][] | string;
|
||||
enumValues: T['enumValues'];
|
||||
size: TSize;
|
||||
baseBuilder: T;
|
||||
} & (T extends {
|
||||
notNull: true;
|
||||
} ? {
|
||||
notNull: true;
|
||||
} : {}) & (T extends {
|
||||
hasDefault: true;
|
||||
} ? {
|
||||
hasDefault: true;
|
||||
} : {}), T>;
|
||||
references(ref: ReferenceConfig['ref'], actions?: ReferenceConfig['actions']): this;
|
||||
unique(name?: string, config?: {
|
||||
nulls: 'distinct' | 'not distinct';
|
||||
}): this;
|
||||
generatedAlwaysAs(as: SQL | T['data'] | (() => SQL)): HasGenerated<this, {
|
||||
type: 'always';
|
||||
}>;
|
||||
}
|
||||
export declare abstract class GelColumn<T extends ColumnBaseConfig<ColumnDataType, string> = ColumnBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = {}, TTypeConfig extends object = {}> extends Column<T, TRuntimeConfig, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}> {
|
||||
readonly table: GelTable;
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: GelTable, config: ColumnBuilderRuntimeConfig<T['data'], TRuntimeConfig>);
|
||||
}
|
||||
export type IndexedExtraConfigType = {
|
||||
order?: 'asc' | 'desc';
|
||||
nulls?: 'first' | 'last';
|
||||
opClass?: string;
|
||||
};
|
||||
export declare class GelExtraConfigColumn<T extends ColumnBaseConfig<ColumnDataType, string> = ColumnBaseConfig<ColumnDataType, string>> extends GelColumn<T, IndexedExtraConfigType> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
indexConfig: IndexedExtraConfigType;
|
||||
defaultConfig: IndexedExtraConfigType;
|
||||
asc(): Omit<this, 'asc' | 'desc'>;
|
||||
desc(): Omit<this, 'asc' | 'desc'>;
|
||||
nullsFirst(): Omit<this, 'nullsFirst' | 'nullsLast'>;
|
||||
nullsLast(): Omit<this, 'nullsFirst' | 'nullsLast'>;
|
||||
/**
|
||||
* ### PostgreSQL documentation quote
|
||||
*
|
||||
* > An operator class with optional parameters can be specified for each column of an index.
|
||||
* The operator class identifies the operators to be used by the index for that column.
|
||||
* For example, a B-tree index on four-byte integers would use the int4_ops class;
|
||||
* this operator class includes comparison functions for four-byte integers.
|
||||
* In practice the default operator class for the column's data type is usually sufficient.
|
||||
* The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
|
||||
* For example, we might want to sort a complex-number data type either by absolute value or by real part.
|
||||
* We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
|
||||
* More information about operator classes check:
|
||||
*
|
||||
* ### Useful links
|
||||
* https://www.postgresql.org/docs/current/sql-createindex.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/indexes-opclass.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/xindex.html
|
||||
*
|
||||
* ### Additional types
|
||||
* If you have the `Gel_vector` extension installed in your database, you can use the
|
||||
* `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
|
||||
*
|
||||
* **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
|
||||
*
|
||||
* @param opClass
|
||||
* @returns
|
||||
*/
|
||||
op(opClass: GelIndexOpClass): Omit<this, 'op'>;
|
||||
}
|
||||
export declare class IndexedColumn {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: string | undefined, keyAsName: boolean, type: string, indexConfig: IndexedExtraConfigType);
|
||||
name: string | undefined;
|
||||
keyAsName: boolean;
|
||||
type: string;
|
||||
indexConfig: IndexedExtraConfigType;
|
||||
}
|
||||
export type AnyGelColumn<TPartial extends Partial<ColumnBaseConfig<ColumnDataType, string>> = {}> = GelColumn<Required<Update<ColumnBaseConfig<ColumnDataType, string>, TPartial>>>;
|
||||
export type GelArrayColumnBuilderBaseConfig = ColumnBuilderBaseConfig<'array', 'GelArray'> & {
|
||||
size: number | undefined;
|
||||
baseBuilder: ColumnBuilderBaseConfig<ColumnDataType, string>;
|
||||
};
|
||||
export declare class GelArrayBuilder<T extends GelArrayColumnBuilderBaseConfig, TBase extends ColumnBuilderBaseConfig<ColumnDataType, string> | GelArrayColumnBuilderBaseConfig> extends GelColumnBuilder<T, {
|
||||
baseBuilder: TBase extends GelArrayColumnBuilderBaseConfig ? GelArrayBuilder<TBase, TBase extends {
|
||||
baseBuilder: infer TBaseBuilder extends ColumnBuilderBaseConfig<any, any>;
|
||||
} ? TBaseBuilder : never> : GelColumnBuilder<TBase, {}, Simplify<Omit<TBase, keyof ColumnBuilderBaseConfig<any, any>>>>;
|
||||
size: T['size'];
|
||||
}, {
|
||||
baseBuilder: TBase extends GelArrayColumnBuilderBaseConfig ? GelArrayBuilder<TBase, TBase extends {
|
||||
baseBuilder: infer TBaseBuilder extends ColumnBuilderBaseConfig<any, any>;
|
||||
} ? TBaseBuilder : never> : GelColumnBuilder<TBase, {}, Simplify<Omit<TBase, keyof ColumnBuilderBaseConfig<any, any>>>>;
|
||||
size: T['size'];
|
||||
}> {
|
||||
static readonly [entityKind] = "GelArrayBuilder";
|
||||
constructor(name: string, baseBuilder: GelArrayBuilder<T, TBase>['config']['baseBuilder'], size: T['size']);
|
||||
}
|
||||
export declare class GelArray<T extends ColumnBaseConfig<'array', 'GelArray'> & {
|
||||
size: number | undefined;
|
||||
baseBuilder: ColumnBuilderBaseConfig<ColumnDataType, string>;
|
||||
}, TBase extends ColumnBuilderBaseConfig<ColumnDataType, string>> extends GelColumn<T, {}, {
|
||||
size: T['size'];
|
||||
baseBuilder: T['baseBuilder'];
|
||||
}> {
|
||||
readonly baseColumn: GelColumn;
|
||||
readonly range?: [number | undefined, number | undefined] | undefined;
|
||||
readonly size: T['size'];
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelArrayBuilder<T, TBase>['config'], baseColumn: GelColumn, range?: [number | undefined, number | undefined] | undefined);
|
||||
getSQLType(): string;
|
||||
}
|
||||
147
node_modules/drizzle-orm/gel-core/columns/common.d.ts
generated
vendored
Normal file
147
node_modules/drizzle-orm/gel-core/columns/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import type { ColumnBuilderBase, ColumnBuilderBaseConfig, ColumnBuilderExtraConfig, ColumnBuilderRuntimeConfig, ColumnDataType, HasGenerated } from "../../column-builder.js";
|
||||
import { ColumnBuilder } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { Column } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import type { Simplify, Update } from "../../utils.js";
|
||||
import type { UpdateDeleteAction } from "../foreign-keys.js";
|
||||
import type { AnyGelTable, GelTable } from "../table.js";
|
||||
import type { SQL } from "../../sql/sql.js";
|
||||
import type { GelIndexOpClass } from "../indexes.js";
|
||||
export interface ReferenceConfig {
|
||||
ref: () => GelColumn;
|
||||
actions: {
|
||||
onUpdate?: UpdateDeleteAction;
|
||||
onDelete?: UpdateDeleteAction;
|
||||
};
|
||||
}
|
||||
export interface GelColumnBuilderBase<T extends ColumnBuilderBaseConfig<ColumnDataType, string> = ColumnBuilderBaseConfig<ColumnDataType, string>, TTypeConfig extends object = object> extends ColumnBuilderBase<T, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}> {
|
||||
}
|
||||
export declare abstract class GelColumnBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string> = ColumnBuilderBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = object, TTypeConfig extends object = object, TExtraConfig extends ColumnBuilderExtraConfig = ColumnBuilderExtraConfig> extends ColumnBuilder<T, TRuntimeConfig, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}, TExtraConfig> implements GelColumnBuilderBase<T, TTypeConfig> {
|
||||
private foreignKeyConfigs;
|
||||
static readonly [entityKind]: string;
|
||||
array<TSize extends number | undefined = undefined>(size?: TSize): GelArrayBuilder<{
|
||||
name: T['name'];
|
||||
dataType: 'array';
|
||||
columnType: 'GelArray';
|
||||
data: T['data'][];
|
||||
driverParam: T['driverParam'][] | string;
|
||||
enumValues: T['enumValues'];
|
||||
size: TSize;
|
||||
baseBuilder: T;
|
||||
} & (T extends {
|
||||
notNull: true;
|
||||
} ? {
|
||||
notNull: true;
|
||||
} : {}) & (T extends {
|
||||
hasDefault: true;
|
||||
} ? {
|
||||
hasDefault: true;
|
||||
} : {}), T>;
|
||||
references(ref: ReferenceConfig['ref'], actions?: ReferenceConfig['actions']): this;
|
||||
unique(name?: string, config?: {
|
||||
nulls: 'distinct' | 'not distinct';
|
||||
}): this;
|
||||
generatedAlwaysAs(as: SQL | T['data'] | (() => SQL)): HasGenerated<this, {
|
||||
type: 'always';
|
||||
}>;
|
||||
}
|
||||
export declare abstract class GelColumn<T extends ColumnBaseConfig<ColumnDataType, string> = ColumnBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = {}, TTypeConfig extends object = {}> extends Column<T, TRuntimeConfig, TTypeConfig & {
|
||||
dialect: 'gel';
|
||||
}> {
|
||||
readonly table: GelTable;
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: GelTable, config: ColumnBuilderRuntimeConfig<T['data'], TRuntimeConfig>);
|
||||
}
|
||||
export type IndexedExtraConfigType = {
|
||||
order?: 'asc' | 'desc';
|
||||
nulls?: 'first' | 'last';
|
||||
opClass?: string;
|
||||
};
|
||||
export declare class GelExtraConfigColumn<T extends ColumnBaseConfig<ColumnDataType, string> = ColumnBaseConfig<ColumnDataType, string>> extends GelColumn<T, IndexedExtraConfigType> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
indexConfig: IndexedExtraConfigType;
|
||||
defaultConfig: IndexedExtraConfigType;
|
||||
asc(): Omit<this, 'asc' | 'desc'>;
|
||||
desc(): Omit<this, 'asc' | 'desc'>;
|
||||
nullsFirst(): Omit<this, 'nullsFirst' | 'nullsLast'>;
|
||||
nullsLast(): Omit<this, 'nullsFirst' | 'nullsLast'>;
|
||||
/**
|
||||
* ### PostgreSQL documentation quote
|
||||
*
|
||||
* > An operator class with optional parameters can be specified for each column of an index.
|
||||
* The operator class identifies the operators to be used by the index for that column.
|
||||
* For example, a B-tree index on four-byte integers would use the int4_ops class;
|
||||
* this operator class includes comparison functions for four-byte integers.
|
||||
* In practice the default operator class for the column's data type is usually sufficient.
|
||||
* The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
|
||||
* For example, we might want to sort a complex-number data type either by absolute value or by real part.
|
||||
* We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
|
||||
* More information about operator classes check:
|
||||
*
|
||||
* ### Useful links
|
||||
* https://www.postgresql.org/docs/current/sql-createindex.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/indexes-opclass.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/xindex.html
|
||||
*
|
||||
* ### Additional types
|
||||
* If you have the `Gel_vector` extension installed in your database, you can use the
|
||||
* `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
|
||||
*
|
||||
* **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
|
||||
*
|
||||
* @param opClass
|
||||
* @returns
|
||||
*/
|
||||
op(opClass: GelIndexOpClass): Omit<this, 'op'>;
|
||||
}
|
||||
export declare class IndexedColumn {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: string | undefined, keyAsName: boolean, type: string, indexConfig: IndexedExtraConfigType);
|
||||
name: string | undefined;
|
||||
keyAsName: boolean;
|
||||
type: string;
|
||||
indexConfig: IndexedExtraConfigType;
|
||||
}
|
||||
export type AnyGelColumn<TPartial extends Partial<ColumnBaseConfig<ColumnDataType, string>> = {}> = GelColumn<Required<Update<ColumnBaseConfig<ColumnDataType, string>, TPartial>>>;
|
||||
export type GelArrayColumnBuilderBaseConfig = ColumnBuilderBaseConfig<'array', 'GelArray'> & {
|
||||
size: number | undefined;
|
||||
baseBuilder: ColumnBuilderBaseConfig<ColumnDataType, string>;
|
||||
};
|
||||
export declare class GelArrayBuilder<T extends GelArrayColumnBuilderBaseConfig, TBase extends ColumnBuilderBaseConfig<ColumnDataType, string> | GelArrayColumnBuilderBaseConfig> extends GelColumnBuilder<T, {
|
||||
baseBuilder: TBase extends GelArrayColumnBuilderBaseConfig ? GelArrayBuilder<TBase, TBase extends {
|
||||
baseBuilder: infer TBaseBuilder extends ColumnBuilderBaseConfig<any, any>;
|
||||
} ? TBaseBuilder : never> : GelColumnBuilder<TBase, {}, Simplify<Omit<TBase, keyof ColumnBuilderBaseConfig<any, any>>>>;
|
||||
size: T['size'];
|
||||
}, {
|
||||
baseBuilder: TBase extends GelArrayColumnBuilderBaseConfig ? GelArrayBuilder<TBase, TBase extends {
|
||||
baseBuilder: infer TBaseBuilder extends ColumnBuilderBaseConfig<any, any>;
|
||||
} ? TBaseBuilder : never> : GelColumnBuilder<TBase, {}, Simplify<Omit<TBase, keyof ColumnBuilderBaseConfig<any, any>>>>;
|
||||
size: T['size'];
|
||||
}> {
|
||||
static readonly [entityKind] = "GelArrayBuilder";
|
||||
constructor(name: string, baseBuilder: GelArrayBuilder<T, TBase>['config']['baseBuilder'], size: T['size']);
|
||||
}
|
||||
export declare class GelArray<T extends ColumnBaseConfig<'array', 'GelArray'> & {
|
||||
size: number | undefined;
|
||||
baseBuilder: ColumnBuilderBaseConfig<ColumnDataType, string>;
|
||||
}, TBase extends ColumnBuilderBaseConfig<ColumnDataType, string>> extends GelColumn<T, {}, {
|
||||
size: T['size'];
|
||||
baseBuilder: T['baseBuilder'];
|
||||
}> {
|
||||
readonly baseColumn: GelColumn;
|
||||
readonly range?: [number | undefined, number | undefined] | undefined;
|
||||
readonly size: T['size'];
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelArrayBuilder<T, TBase>['config'], baseColumn: GelColumn, range?: [number | undefined, number | undefined] | undefined);
|
||||
getSQLType(): string;
|
||||
}
|
||||
184
node_modules/drizzle-orm/gel-core/columns/common.js
generated
vendored
Normal file
184
node_modules/drizzle-orm/gel-core/columns/common.js
generated
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
import { ColumnBuilder } from "../../column-builder.js";
|
||||
import { Column } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { ForeignKeyBuilder } from "../foreign-keys.js";
|
||||
import { iife } from "../../tracing-utils.js";
|
||||
import { uniqueKeyName } from "../unique-constraint.js";
|
||||
class GelColumnBuilder extends ColumnBuilder {
|
||||
foreignKeyConfigs = [];
|
||||
static [entityKind] = "GelColumnBuilder";
|
||||
array(size) {
|
||||
return new GelArrayBuilder(this.config.name, this, size);
|
||||
}
|
||||
references(ref, actions = {}) {
|
||||
this.foreignKeyConfigs.push({ ref, actions });
|
||||
return this;
|
||||
}
|
||||
unique(name, config) {
|
||||
this.config.isUnique = true;
|
||||
this.config.uniqueName = name;
|
||||
this.config.uniqueType = config?.nulls;
|
||||
return this;
|
||||
}
|
||||
generatedAlwaysAs(as) {
|
||||
this.config.generated = {
|
||||
as,
|
||||
type: "always",
|
||||
mode: "stored"
|
||||
};
|
||||
return this;
|
||||
}
|
||||
/** @internal */
|
||||
buildForeignKeys(column, table) {
|
||||
return this.foreignKeyConfigs.map(({ ref, actions }) => {
|
||||
return iife(
|
||||
(ref2, actions2) => {
|
||||
const builder = new ForeignKeyBuilder(() => {
|
||||
const foreignColumn = ref2();
|
||||
return { columns: [column], foreignColumns: [foreignColumn] };
|
||||
});
|
||||
if (actions2.onUpdate) {
|
||||
builder.onUpdate(actions2.onUpdate);
|
||||
}
|
||||
if (actions2.onDelete) {
|
||||
builder.onDelete(actions2.onDelete);
|
||||
}
|
||||
return builder.build(table);
|
||||
},
|
||||
ref,
|
||||
actions
|
||||
);
|
||||
});
|
||||
}
|
||||
/** @internal */
|
||||
buildExtraConfigColumn(table) {
|
||||
return new GelExtraConfigColumn(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelColumn extends Column {
|
||||
constructor(table, config) {
|
||||
if (!config.uniqueName) {
|
||||
config.uniqueName = uniqueKeyName(table, [config.name]);
|
||||
}
|
||||
super(table, config);
|
||||
this.table = table;
|
||||
}
|
||||
static [entityKind] = "GelColumn";
|
||||
}
|
||||
class GelExtraConfigColumn extends GelColumn {
|
||||
static [entityKind] = "GelExtraConfigColumn";
|
||||
getSQLType() {
|
||||
return this.getSQLType();
|
||||
}
|
||||
indexConfig = {
|
||||
order: this.config.order ?? "asc",
|
||||
nulls: this.config.nulls ?? "last",
|
||||
opClass: this.config.opClass
|
||||
};
|
||||
defaultConfig = {
|
||||
order: "asc",
|
||||
nulls: "last",
|
||||
opClass: void 0
|
||||
};
|
||||
asc() {
|
||||
this.indexConfig.order = "asc";
|
||||
return this;
|
||||
}
|
||||
desc() {
|
||||
this.indexConfig.order = "desc";
|
||||
return this;
|
||||
}
|
||||
nullsFirst() {
|
||||
this.indexConfig.nulls = "first";
|
||||
return this;
|
||||
}
|
||||
nullsLast() {
|
||||
this.indexConfig.nulls = "last";
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* ### PostgreSQL documentation quote
|
||||
*
|
||||
* > An operator class with optional parameters can be specified for each column of an index.
|
||||
* The operator class identifies the operators to be used by the index for that column.
|
||||
* For example, a B-tree index on four-byte integers would use the int4_ops class;
|
||||
* this operator class includes comparison functions for four-byte integers.
|
||||
* In practice the default operator class for the column's data type is usually sufficient.
|
||||
* The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
|
||||
* For example, we might want to sort a complex-number data type either by absolute value or by real part.
|
||||
* We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
|
||||
* More information about operator classes check:
|
||||
*
|
||||
* ### Useful links
|
||||
* https://www.postgresql.org/docs/current/sql-createindex.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/indexes-opclass.html
|
||||
*
|
||||
* https://www.postgresql.org/docs/current/xindex.html
|
||||
*
|
||||
* ### Additional types
|
||||
* If you have the `Gel_vector` extension installed in your database, you can use the
|
||||
* `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
|
||||
*
|
||||
* **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
|
||||
*
|
||||
* @param opClass
|
||||
* @returns
|
||||
*/
|
||||
op(opClass) {
|
||||
this.indexConfig.opClass = opClass;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
class IndexedColumn {
|
||||
static [entityKind] = "IndexedColumn";
|
||||
constructor(name, keyAsName, type, indexConfig) {
|
||||
this.name = name;
|
||||
this.keyAsName = keyAsName;
|
||||
this.type = type;
|
||||
this.indexConfig = indexConfig;
|
||||
}
|
||||
name;
|
||||
keyAsName;
|
||||
type;
|
||||
indexConfig;
|
||||
}
|
||||
class GelArrayBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelArrayBuilder";
|
||||
constructor(name, baseBuilder, size) {
|
||||
super(name, "array", "GelArray");
|
||||
this.config.baseBuilder = baseBuilder;
|
||||
this.config.size = size;
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
const baseColumn = this.config.baseBuilder.build(table);
|
||||
return new GelArray(
|
||||
table,
|
||||
this.config,
|
||||
baseColumn
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelArray extends GelColumn {
|
||||
constructor(table, config, baseColumn, range) {
|
||||
super(table, config);
|
||||
this.baseColumn = baseColumn;
|
||||
this.range = range;
|
||||
this.size = config.size;
|
||||
}
|
||||
size;
|
||||
static [entityKind] = "GelArray";
|
||||
getSQLType() {
|
||||
return `${this.baseColumn.getSQLType()}[${typeof this.size === "number" ? this.size : ""}]`;
|
||||
}
|
||||
}
|
||||
export {
|
||||
GelArray,
|
||||
GelArrayBuilder,
|
||||
GelColumn,
|
||||
GelColumnBuilder,
|
||||
GelExtraConfigColumn,
|
||||
IndexedColumn
|
||||
};
|
||||
//# sourceMappingURL=common.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/common.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/common.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
77
node_modules/drizzle-orm/gel-core/columns/custom.cjs
generated
vendored
Normal file
77
node_modules/drizzle-orm/gel-core/columns/custom.cjs
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var custom_exports = {};
|
||||
__export(custom_exports, {
|
||||
GelCustomColumn: () => GelCustomColumn,
|
||||
GelCustomColumnBuilder: () => GelCustomColumnBuilder,
|
||||
customType: () => customType
|
||||
});
|
||||
module.exports = __toCommonJS(custom_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_utils = require("../../utils.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelCustomColumnBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelCustomColumnBuilder";
|
||||
constructor(name, fieldConfig, customTypeParams) {
|
||||
super(name, "custom", "GelCustomColumn");
|
||||
this.config.fieldConfig = fieldConfig;
|
||||
this.config.customTypeParams = customTypeParams;
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelCustomColumn(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelCustomColumn extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelCustomColumn";
|
||||
sqlName;
|
||||
mapTo;
|
||||
mapFrom;
|
||||
constructor(table, config) {
|
||||
super(table, config);
|
||||
this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
|
||||
this.mapTo = config.customTypeParams.toDriver;
|
||||
this.mapFrom = config.customTypeParams.fromDriver;
|
||||
}
|
||||
getSQLType() {
|
||||
return this.sqlName;
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
return typeof this.mapFrom === "function" ? this.mapFrom(value) : value;
|
||||
}
|
||||
mapToDriverValue(value) {
|
||||
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
||||
}
|
||||
}
|
||||
function customType(customTypeParams) {
|
||||
return (a, b) => {
|
||||
const { name, config } = (0, import_utils.getColumnNameAndConfig)(a, b);
|
||||
return new GelCustomColumnBuilder(name, config, customTypeParams);
|
||||
};
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelCustomColumn,
|
||||
GelCustomColumnBuilder,
|
||||
customType
|
||||
});
|
||||
//# sourceMappingURL=custom.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/custom.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/custom.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
155
node_modules/drizzle-orm/gel-core/columns/custom.d.cts
generated
vendored
Normal file
155
node_modules/drizzle-orm/gel-core/columns/custom.d.cts
generated
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import type { AnyGelTable } from "../table.cjs";
|
||||
import type { SQL } from "../../sql/sql.cjs";
|
||||
import { type Equal } from "../../utils.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type ConvertCustomConfig<TName extends string, T extends Partial<CustomTypeValues>> = {
|
||||
name: TName;
|
||||
dataType: 'custom';
|
||||
columnType: 'GelCustomColumn';
|
||||
data: T['data'];
|
||||
driverParam: T['driverData'];
|
||||
enumValues: undefined;
|
||||
} & (T['notNull'] extends true ? {
|
||||
notNull: true;
|
||||
} : {}) & (T['default'] extends true ? {
|
||||
hasDefault: true;
|
||||
} : {});
|
||||
export interface GelCustomColumnInnerConfig {
|
||||
customTypeValues: CustomTypeValues;
|
||||
}
|
||||
export declare class GelCustomColumnBuilder<T extends ColumnBuilderBaseConfig<'custom', 'GelCustomColumn'>> extends GelColumnBuilder<T, {
|
||||
fieldConfig: CustomTypeValues['config'];
|
||||
customTypeParams: CustomTypeParams<any>;
|
||||
}, {
|
||||
gelColumnBuilderBrand: 'GelCustomColumnBuilderBrand';
|
||||
}> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name'], fieldConfig: CustomTypeValues['config'], customTypeParams: CustomTypeParams<any>);
|
||||
}
|
||||
export declare class GelCustomColumn<T extends ColumnBaseConfig<'custom', 'GelCustomColumn'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
private sqlName;
|
||||
private mapTo?;
|
||||
private mapFrom?;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelCustomColumnBuilder<T>['config']);
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: T['driverParam']): T['data'];
|
||||
mapToDriverValue(value: T['data']): T['driverParam'];
|
||||
}
|
||||
export type CustomTypeValues = {
|
||||
/**
|
||||
* Required type for custom column, that will infer proper type model
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* If you want your column to be `string` type after selecting/or on inserting - use `data: string`. Like `text`, `varchar`
|
||||
*
|
||||
* If you want your column to be `number` type after selecting/or on inserting - use `data: number`. Like `integer`
|
||||
*/
|
||||
data: unknown;
|
||||
/**
|
||||
* Type helper, that represents what type database driver is accepting for specific database data type
|
||||
*/
|
||||
driverData?: unknown;
|
||||
/**
|
||||
* What config type should be used for {@link CustomTypeParams} `dataType` generation
|
||||
*/
|
||||
config?: Record<string, any>;
|
||||
/**
|
||||
* Whether the config argument should be required or not
|
||||
* @default false
|
||||
*/
|
||||
configRequired?: boolean;
|
||||
/**
|
||||
* If your custom data type should be notNull by default you can use `notNull: true`
|
||||
*
|
||||
* @example
|
||||
* const customSerial = customType<{ data: number, notNull: true, default: true }>({
|
||||
* dataType() {
|
||||
* return 'serial';
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
notNull?: boolean;
|
||||
/**
|
||||
* If your custom data type has default you can use `default: true`
|
||||
*
|
||||
* @example
|
||||
* const customSerial = customType<{ data: number, notNull: true, default: true }>({
|
||||
* dataType() {
|
||||
* return 'serial';
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
default?: boolean;
|
||||
};
|
||||
export interface CustomTypeParams<T extends CustomTypeValues> {
|
||||
/**
|
||||
* Database data type string representation, that is used for migrations
|
||||
* @example
|
||||
* ```
|
||||
* `jsonb`, `text`
|
||||
* ```
|
||||
*
|
||||
* If database data type needs additional params you can use them from `config` param
|
||||
* @example
|
||||
* ```
|
||||
* `varchar(256)`, `numeric(2,3)`
|
||||
* ```
|
||||
*
|
||||
* To make `config` be of specific type please use config generic in {@link CustomTypeValues}
|
||||
*
|
||||
* @example
|
||||
* Usage example
|
||||
* ```
|
||||
* dataType() {
|
||||
* return 'boolean';
|
||||
* },
|
||||
* ```
|
||||
* Or
|
||||
* ```
|
||||
* dataType(config) {
|
||||
* return typeof config.length !== 'undefined' ? `varchar(${config.length})` : `varchar`;
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
dataType: (config: T['config'] | (Equal<T['configRequired'], true> extends true ? never : undefined)) => string;
|
||||
/**
|
||||
* Optional mapping function, between user input and driver
|
||||
* @example
|
||||
* For example, when using jsonb we need to map JS/TS object to string before writing to database
|
||||
* ```
|
||||
* toDriver(value: TData): string {
|
||||
* return JSON.stringify(value);
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
toDriver?: (value: T['data']) => T['driverData'] | SQL;
|
||||
/**
|
||||
* Optional mapping function, that is responsible for data mapping from database to JS/TS code
|
||||
* @example
|
||||
* For example, when using timestamp we need to map string Date representation to JS Date
|
||||
* ```
|
||||
* fromDriver(value: string): Date {
|
||||
* return new Date(value);
|
||||
* },
|
||||
* ```
|
||||
*/
|
||||
fromDriver?: (value: T['driverData']) => T['data'];
|
||||
}
|
||||
/**
|
||||
* Custom gel database data type generator
|
||||
*/
|
||||
export declare function customType<T extends CustomTypeValues = CustomTypeValues>(customTypeParams: CustomTypeParams<T>): Equal<T['configRequired'], true> extends true ? {
|
||||
<TConfig extends Record<string, any> & T['config']>(fieldConfig: TConfig): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TName extends string>(dbName: TName, fieldConfig: T['config']): GelCustomColumnBuilder<ConvertCustomConfig<TName, T>>;
|
||||
} : {
|
||||
(): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TConfig extends Record<string, any> & T['config']>(fieldConfig?: TConfig): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TName extends string>(dbName: TName, fieldConfig?: T['config']): GelCustomColumnBuilder<ConvertCustomConfig<TName, T>>;
|
||||
};
|
||||
155
node_modules/drizzle-orm/gel-core/columns/custom.d.ts
generated
vendored
Normal file
155
node_modules/drizzle-orm/gel-core/columns/custom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import type { AnyGelTable } from "../table.js";
|
||||
import type { SQL } from "../../sql/sql.js";
|
||||
import { type Equal } from "../../utils.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type ConvertCustomConfig<TName extends string, T extends Partial<CustomTypeValues>> = {
|
||||
name: TName;
|
||||
dataType: 'custom';
|
||||
columnType: 'GelCustomColumn';
|
||||
data: T['data'];
|
||||
driverParam: T['driverData'];
|
||||
enumValues: undefined;
|
||||
} & (T['notNull'] extends true ? {
|
||||
notNull: true;
|
||||
} : {}) & (T['default'] extends true ? {
|
||||
hasDefault: true;
|
||||
} : {});
|
||||
export interface GelCustomColumnInnerConfig {
|
||||
customTypeValues: CustomTypeValues;
|
||||
}
|
||||
export declare class GelCustomColumnBuilder<T extends ColumnBuilderBaseConfig<'custom', 'GelCustomColumn'>> extends GelColumnBuilder<T, {
|
||||
fieldConfig: CustomTypeValues['config'];
|
||||
customTypeParams: CustomTypeParams<any>;
|
||||
}, {
|
||||
gelColumnBuilderBrand: 'GelCustomColumnBuilderBrand';
|
||||
}> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name'], fieldConfig: CustomTypeValues['config'], customTypeParams: CustomTypeParams<any>);
|
||||
}
|
||||
export declare class GelCustomColumn<T extends ColumnBaseConfig<'custom', 'GelCustomColumn'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
private sqlName;
|
||||
private mapTo?;
|
||||
private mapFrom?;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelCustomColumnBuilder<T>['config']);
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: T['driverParam']): T['data'];
|
||||
mapToDriverValue(value: T['data']): T['driverParam'];
|
||||
}
|
||||
export type CustomTypeValues = {
|
||||
/**
|
||||
* Required type for custom column, that will infer proper type model
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* If you want your column to be `string` type after selecting/or on inserting - use `data: string`. Like `text`, `varchar`
|
||||
*
|
||||
* If you want your column to be `number` type after selecting/or on inserting - use `data: number`. Like `integer`
|
||||
*/
|
||||
data: unknown;
|
||||
/**
|
||||
* Type helper, that represents what type database driver is accepting for specific database data type
|
||||
*/
|
||||
driverData?: unknown;
|
||||
/**
|
||||
* What config type should be used for {@link CustomTypeParams} `dataType` generation
|
||||
*/
|
||||
config?: Record<string, any>;
|
||||
/**
|
||||
* Whether the config argument should be required or not
|
||||
* @default false
|
||||
*/
|
||||
configRequired?: boolean;
|
||||
/**
|
||||
* If your custom data type should be notNull by default you can use `notNull: true`
|
||||
*
|
||||
* @example
|
||||
* const customSerial = customType<{ data: number, notNull: true, default: true }>({
|
||||
* dataType() {
|
||||
* return 'serial';
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
notNull?: boolean;
|
||||
/**
|
||||
* If your custom data type has default you can use `default: true`
|
||||
*
|
||||
* @example
|
||||
* const customSerial = customType<{ data: number, notNull: true, default: true }>({
|
||||
* dataType() {
|
||||
* return 'serial';
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
default?: boolean;
|
||||
};
|
||||
export interface CustomTypeParams<T extends CustomTypeValues> {
|
||||
/**
|
||||
* Database data type string representation, that is used for migrations
|
||||
* @example
|
||||
* ```
|
||||
* `jsonb`, `text`
|
||||
* ```
|
||||
*
|
||||
* If database data type needs additional params you can use them from `config` param
|
||||
* @example
|
||||
* ```
|
||||
* `varchar(256)`, `numeric(2,3)`
|
||||
* ```
|
||||
*
|
||||
* To make `config` be of specific type please use config generic in {@link CustomTypeValues}
|
||||
*
|
||||
* @example
|
||||
* Usage example
|
||||
* ```
|
||||
* dataType() {
|
||||
* return 'boolean';
|
||||
* },
|
||||
* ```
|
||||
* Or
|
||||
* ```
|
||||
* dataType(config) {
|
||||
* return typeof config.length !== 'undefined' ? `varchar(${config.length})` : `varchar`;
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
dataType: (config: T['config'] | (Equal<T['configRequired'], true> extends true ? never : undefined)) => string;
|
||||
/**
|
||||
* Optional mapping function, between user input and driver
|
||||
* @example
|
||||
* For example, when using jsonb we need to map JS/TS object to string before writing to database
|
||||
* ```
|
||||
* toDriver(value: TData): string {
|
||||
* return JSON.stringify(value);
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
toDriver?: (value: T['data']) => T['driverData'] | SQL;
|
||||
/**
|
||||
* Optional mapping function, that is responsible for data mapping from database to JS/TS code
|
||||
* @example
|
||||
* For example, when using timestamp we need to map string Date representation to JS Date
|
||||
* ```
|
||||
* fromDriver(value: string): Date {
|
||||
* return new Date(value);
|
||||
* },
|
||||
* ```
|
||||
*/
|
||||
fromDriver?: (value: T['driverData']) => T['data'];
|
||||
}
|
||||
/**
|
||||
* Custom gel database data type generator
|
||||
*/
|
||||
export declare function customType<T extends CustomTypeValues = CustomTypeValues>(customTypeParams: CustomTypeParams<T>): Equal<T['configRequired'], true> extends true ? {
|
||||
<TConfig extends Record<string, any> & T['config']>(fieldConfig: TConfig): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TName extends string>(dbName: TName, fieldConfig: T['config']): GelCustomColumnBuilder<ConvertCustomConfig<TName, T>>;
|
||||
} : {
|
||||
(): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TConfig extends Record<string, any> & T['config']>(fieldConfig?: TConfig): GelCustomColumnBuilder<ConvertCustomConfig<'', T>>;
|
||||
<TName extends string>(dbName: TName, fieldConfig?: T['config']): GelCustomColumnBuilder<ConvertCustomConfig<TName, T>>;
|
||||
};
|
||||
51
node_modules/drizzle-orm/gel-core/columns/custom.js
generated
vendored
Normal file
51
node_modules/drizzle-orm/gel-core/columns/custom.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { getColumnNameAndConfig } from "../../utils.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelCustomColumnBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelCustomColumnBuilder";
|
||||
constructor(name, fieldConfig, customTypeParams) {
|
||||
super(name, "custom", "GelCustomColumn");
|
||||
this.config.fieldConfig = fieldConfig;
|
||||
this.config.customTypeParams = customTypeParams;
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelCustomColumn(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelCustomColumn extends GelColumn {
|
||||
static [entityKind] = "GelCustomColumn";
|
||||
sqlName;
|
||||
mapTo;
|
||||
mapFrom;
|
||||
constructor(table, config) {
|
||||
super(table, config);
|
||||
this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
|
||||
this.mapTo = config.customTypeParams.toDriver;
|
||||
this.mapFrom = config.customTypeParams.fromDriver;
|
||||
}
|
||||
getSQLType() {
|
||||
return this.sqlName;
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
return typeof this.mapFrom === "function" ? this.mapFrom(value) : value;
|
||||
}
|
||||
mapToDriverValue(value) {
|
||||
return typeof this.mapTo === "function" ? this.mapTo(value) : value;
|
||||
}
|
||||
}
|
||||
function customType(customTypeParams) {
|
||||
return (a, b) => {
|
||||
const { name, config } = getColumnNameAndConfig(a, b);
|
||||
return new GelCustomColumnBuilder(name, config, customTypeParams);
|
||||
};
|
||||
}
|
||||
export {
|
||||
GelCustomColumn,
|
||||
GelCustomColumnBuilder,
|
||||
customType
|
||||
};
|
||||
//# sourceMappingURL=custom.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/custom.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/custom.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
56
node_modules/drizzle-orm/gel-core/columns/date-duration.cjs
generated
vendored
Normal file
56
node_modules/drizzle-orm/gel-core/columns/date-duration.cjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var date_duration_exports = {};
|
||||
__export(date_duration_exports, {
|
||||
GelDateDuration: () => GelDateDuration,
|
||||
GelDateDurationBuilder: () => GelDateDurationBuilder,
|
||||
dateDuration: () => dateDuration
|
||||
});
|
||||
module.exports = __toCommonJS(date_duration_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelDateDurationBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelDateDurationBuilder";
|
||||
constructor(name) {
|
||||
super(name, "dateDuration", "GelDateDuration");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDateDuration(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelDateDuration extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelDateDuration";
|
||||
getSQLType() {
|
||||
return `dateDuration`;
|
||||
}
|
||||
}
|
||||
function dateDuration(name) {
|
||||
return new GelDateDurationBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelDateDuration,
|
||||
GelDateDurationBuilder,
|
||||
dateDuration
|
||||
});
|
||||
//# sourceMappingURL=date-duration.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/date-duration.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/date-duration.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/date-duration.ts"],"sourcesContent":["import type { DateDuration } from 'gel';\nimport type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDateDurationBuilderInitial<TName extends string> = GelDateDurationBuilder<{\n\tname: TName;\n\tdataType: 'dateDuration';\n\tcolumnType: 'GelDateDuration';\n\tdata: DateDuration;\n\tdriverParam: DateDuration;\n\tenumValues: undefined;\n}>;\n\nexport class GelDateDurationBuilder<T extends ColumnBuilderBaseConfig<'dateDuration', 'GelDateDuration'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDateDurationBuilder';\n\n\tconstructor(\n\t\tname: T['name'],\n\t) {\n\t\tsuper(name, 'dateDuration', 'GelDateDuration');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDateDuration<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDateDuration<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelDateDuration<T extends ColumnBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDateDuration';\n\n\tgetSQLType(): string {\n\t\treturn `dateDuration`;\n\t}\n}\n\nexport function dateDuration(): GelDateDurationBuilderInitial<''>;\nexport function dateDuration<TName extends string>(name: TName): GelDateDurationBuilderInitial<TName>;\nexport function dateDuration(name?: string) {\n\treturn new GelDateDurationBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,+BACJ,+BACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YACC,MACC;AACD,UAAM,MAAM,gBAAgB,iBAAiB;AAAA,EAC9C;AAAA;AAAA,EAGS,MACR,OACmD;AACnD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,wBAAuF,wBAAa;AAAA,EAChH,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,aAAa,MAAe;AAC3C,SAAO,IAAI,uBAAuB,QAAQ,EAAE;AAC7C;","names":[]}
|
||||
23
node_modules/drizzle-orm/gel-core/columns/date-duration.d.cts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/date-duration.d.cts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { DateDuration } from 'gel';
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelDateDurationBuilderInitial<TName extends string> = GelDateDurationBuilder<{
|
||||
name: TName;
|
||||
dataType: 'dateDuration';
|
||||
columnType: 'GelDateDuration';
|
||||
data: DateDuration;
|
||||
driverParam: DateDuration;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDateDurationBuilder<T extends ColumnBuilderBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDateDuration<T extends ColumnBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function dateDuration(): GelDateDurationBuilderInitial<''>;
|
||||
export declare function dateDuration<TName extends string>(name: TName): GelDateDurationBuilderInitial<TName>;
|
||||
23
node_modules/drizzle-orm/gel-core/columns/date-duration.d.ts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/date-duration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { DateDuration } from 'gel';
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelDateDurationBuilderInitial<TName extends string> = GelDateDurationBuilder<{
|
||||
name: TName;
|
||||
dataType: 'dateDuration';
|
||||
columnType: 'GelDateDuration';
|
||||
data: DateDuration;
|
||||
driverParam: DateDuration;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDateDurationBuilder<T extends ColumnBuilderBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDateDuration<T extends ColumnBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function dateDuration(): GelDateDurationBuilderInitial<''>;
|
||||
export declare function dateDuration<TName extends string>(name: TName): GelDateDurationBuilderInitial<TName>;
|
||||
30
node_modules/drizzle-orm/gel-core/columns/date-duration.js
generated
vendored
Normal file
30
node_modules/drizzle-orm/gel-core/columns/date-duration.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelDateDurationBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelDateDurationBuilder";
|
||||
constructor(name) {
|
||||
super(name, "dateDuration", "GelDateDuration");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDateDuration(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelDateDuration extends GelColumn {
|
||||
static [entityKind] = "GelDateDuration";
|
||||
getSQLType() {
|
||||
return `dateDuration`;
|
||||
}
|
||||
}
|
||||
function dateDuration(name) {
|
||||
return new GelDateDurationBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelDateDuration,
|
||||
GelDateDurationBuilder,
|
||||
dateDuration
|
||||
};
|
||||
//# sourceMappingURL=date-duration.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/date-duration.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/date-duration.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/date-duration.ts"],"sourcesContent":["import type { DateDuration } from 'gel';\nimport type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDateDurationBuilderInitial<TName extends string> = GelDateDurationBuilder<{\n\tname: TName;\n\tdataType: 'dateDuration';\n\tcolumnType: 'GelDateDuration';\n\tdata: DateDuration;\n\tdriverParam: DateDuration;\n\tenumValues: undefined;\n}>;\n\nexport class GelDateDurationBuilder<T extends ColumnBuilderBaseConfig<'dateDuration', 'GelDateDuration'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDateDurationBuilder';\n\n\tconstructor(\n\t\tname: T['name'],\n\t) {\n\t\tsuper(name, 'dateDuration', 'GelDateDuration');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDateDuration<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDateDuration<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelDateDuration<T extends ColumnBaseConfig<'dateDuration', 'GelDateDuration'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDateDuration';\n\n\tgetSQLType(): string {\n\t\treturn `dateDuration`;\n\t}\n}\n\nexport function dateDuration(): GelDateDurationBuilderInitial<''>;\nexport function dateDuration<TName extends string>(name: TName): GelDateDurationBuilderInitial<TName>;\nexport function dateDuration(name?: string) {\n\treturn new GelDateDurationBuilder(name ?? '');\n}\n"],"mappings":"AAGA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,+BACJ,iBACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YACC,MACC;AACD,UAAM,MAAM,gBAAgB,iBAAiB;AAAA,EAC9C;AAAA;AAAA,EAGS,MACR,OACmD;AACnD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,wBAAuF,UAAa;AAAA,EAChH,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,aAAa,MAAe;AAC3C,SAAO,IAAI,uBAAuB,QAAQ,EAAE;AAC7C;","names":[]}
|
||||
37
node_modules/drizzle-orm/gel-core/columns/date.common.cjs
generated
vendored
Normal file
37
node_modules/drizzle-orm/gel-core/columns/date.common.cjs
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var date_common_exports = {};
|
||||
__export(date_common_exports, {
|
||||
GelLocalDateColumnBaseBuilder: () => GelLocalDateColumnBaseBuilder
|
||||
});
|
||||
module.exports = __toCommonJS(date_common_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_sql = require("../../sql/sql.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelLocalDateColumnBaseBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelLocalDateColumnBaseBuilder";
|
||||
defaultNow() {
|
||||
return this.default(import_sql.sql`now()`);
|
||||
}
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelLocalDateColumnBaseBuilder
|
||||
});
|
||||
//# sourceMappingURL=date.common.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/date.common.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/date.common.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/date.common.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnDataType } from '~/column-builder.ts';\nimport { entityKind } from '~/entity.ts';\nimport { sql } from '~/sql/sql.ts';\nimport { GelColumnBuilder } from './common.ts';\n\nexport abstract class GelLocalDateColumnBaseBuilder<\n\tT extends ColumnBuilderBaseConfig<ColumnDataType, string>,\n\tTRuntimeConfig extends object = object,\n> extends GelColumnBuilder<T, TRuntimeConfig> {\n\tstatic override readonly [entityKind]: string = 'GelLocalDateColumnBaseBuilder';\n\n\tdefaultNow() {\n\t\treturn this.default(sql`now()`);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA2B;AAC3B,iBAAoB;AACpB,oBAAiC;AAE1B,MAAe,sCAGZ,+BAAoC;AAAA,EAC7C,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAa;AACZ,WAAO,KAAK,QAAQ,qBAAU;AAAA,EAC/B;AACD;","names":[]}
|
||||
7
node_modules/drizzle-orm/gel-core/columns/date.common.d.cts
generated
vendored
Normal file
7
node_modules/drizzle-orm/gel-core/columns/date.common.d.cts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { ColumnBuilderBaseConfig, ColumnDataType } from "../../column-builder.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumnBuilder } from "./common.cjs";
|
||||
export declare abstract class GelLocalDateColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = object> extends GelColumnBuilder<T, TRuntimeConfig> {
|
||||
static readonly [entityKind]: string;
|
||||
defaultNow(): import("../../column-builder.ts").HasDefault<this>;
|
||||
}
|
||||
7
node_modules/drizzle-orm/gel-core/columns/date.common.d.ts
generated
vendored
Normal file
7
node_modules/drizzle-orm/gel-core/columns/date.common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { ColumnBuilderBaseConfig, ColumnDataType } from "../../column-builder.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumnBuilder } from "./common.js";
|
||||
export declare abstract class GelLocalDateColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = object> extends GelColumnBuilder<T, TRuntimeConfig> {
|
||||
static readonly [entityKind]: string;
|
||||
defaultNow(): import("../../column-builder.js").HasDefault<this>;
|
||||
}
|
||||
13
node_modules/drizzle-orm/gel-core/columns/date.common.js
generated
vendored
Normal file
13
node_modules/drizzle-orm/gel-core/columns/date.common.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { sql } from "../../sql/sql.js";
|
||||
import { GelColumnBuilder } from "./common.js";
|
||||
class GelLocalDateColumnBaseBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelLocalDateColumnBaseBuilder";
|
||||
defaultNow() {
|
||||
return this.default(sql`now()`);
|
||||
}
|
||||
}
|
||||
export {
|
||||
GelLocalDateColumnBaseBuilder
|
||||
};
|
||||
//# sourceMappingURL=date.common.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/date.common.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/date.common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/date.common.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnDataType } from '~/column-builder.ts';\nimport { entityKind } from '~/entity.ts';\nimport { sql } from '~/sql/sql.ts';\nimport { GelColumnBuilder } from './common.ts';\n\nexport abstract class GelLocalDateColumnBaseBuilder<\n\tT extends ColumnBuilderBaseConfig<ColumnDataType, string>,\n\tTRuntimeConfig extends object = object,\n> extends GelColumnBuilder<T, TRuntimeConfig> {\n\tstatic override readonly [entityKind]: string = 'GelLocalDateColumnBaseBuilder';\n\n\tdefaultNow() {\n\t\treturn this.default(sql`now()`);\n\t}\n}\n"],"mappings":"AACA,SAAS,kBAAkB;AAC3B,SAAS,WAAW;AACpB,SAAS,wBAAwB;AAE1B,MAAe,sCAGZ,iBAAoC;AAAA,EAC7C,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAa;AACZ,WAAO,KAAK,QAAQ,UAAU;AAAA,EAC/B;AACD;","names":[]}
|
||||
56
node_modules/drizzle-orm/gel-core/columns/decimal.cjs
generated
vendored
Normal file
56
node_modules/drizzle-orm/gel-core/columns/decimal.cjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var decimal_exports = {};
|
||||
__export(decimal_exports, {
|
||||
GelDecimal: () => GelDecimal,
|
||||
GelDecimalBuilder: () => GelDecimalBuilder,
|
||||
decimal: () => decimal
|
||||
});
|
||||
module.exports = __toCommonJS(decimal_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelDecimalBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelDecimalBuilder";
|
||||
constructor(name) {
|
||||
super(name, "string", "GelDecimal");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDecimal(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelDecimal extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelDecimal";
|
||||
constructor(table, config) {
|
||||
super(table, config);
|
||||
}
|
||||
getSQLType() {
|
||||
return "numeric";
|
||||
}
|
||||
}
|
||||
function decimal(name) {
|
||||
return new GelDecimalBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelDecimal,
|
||||
GelDecimalBuilder,
|
||||
decimal
|
||||
});
|
||||
//# sourceMappingURL=decimal.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/decimal.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/decimal.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/decimal.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDecimalBuilderInitial<TName extends string> = GelDecimalBuilder<{\n\tname: TName;\n\tdataType: 'string';\n\tcolumnType: 'GelDecimal';\n\tdata: string;\n\tdriverParam: string;\n\tenumValues: undefined;\n}>;\n\nexport class GelDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'GelDecimal'>> extends GelColumnBuilder<\n\tT\n> {\n\tstatic override readonly [entityKind]: string = 'GelDecimalBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'string', 'GelDecimal');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDecimal<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDecimal<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelDecimal<T extends ColumnBaseConfig<'string', 'GelDecimal'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDecimal';\n\n\tconstructor(table: AnyGelTable<{ name: T['tableName'] }>, config: GelDecimalBuilder<T>['config']) {\n\t\tsuper(table, config);\n\t}\n\n\tgetSQLType(): string {\n\t\treturn 'numeric';\n\t}\n}\n\nexport function decimal(): GelDecimalBuilderInitial<''>;\nexport function decimal<TName extends string>(name: TName): GelDecimalBuilderInitial<TName>;\nexport function decimal(name?: string) {\n\treturn new GelDecimalBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,0BAAqF,+BAEhG;AAAA,EACD,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,YAAY;AAAA,EACnC;AAAA;AAAA,EAGS,MACR,OAC8C;AAC9C,WAAO,IAAI,WAA4C,OAAO,KAAK,MAA8C;AAAA,EAClH;AACD;AAEO,MAAM,mBAAuE,wBAAa;AAAA,EAChG,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,OAA8C,QAAwC;AACjG,UAAM,OAAO,MAAM;AAAA,EACpB;AAAA,EAEA,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,kBAAkB,QAAQ,EAAE;AACxC;","names":[]}
|
||||
26
node_modules/drizzle-orm/gel-core/columns/decimal.d.cts
generated
vendored
Normal file
26
node_modules/drizzle-orm/gel-core/columns/decimal.d.cts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import type { AnyGelTable } from "../table.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelDecimalBuilderInitial<TName extends string> = GelDecimalBuilder<{
|
||||
name: TName;
|
||||
dataType: 'string';
|
||||
columnType: 'GelDecimal';
|
||||
data: string;
|
||||
driverParam: string;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'GelDecimal'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDecimal<T extends ColumnBaseConfig<'string', 'GelDecimal'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelDecimalBuilder<T>['config']);
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function decimal(): GelDecimalBuilderInitial<''>;
|
||||
export declare function decimal<TName extends string>(name: TName): GelDecimalBuilderInitial<TName>;
|
||||
26
node_modules/drizzle-orm/gel-core/columns/decimal.d.ts
generated
vendored
Normal file
26
node_modules/drizzle-orm/gel-core/columns/decimal.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import type { AnyGelTable } from "../table.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelDecimalBuilderInitial<TName extends string> = GelDecimalBuilder<{
|
||||
name: TName;
|
||||
dataType: 'string';
|
||||
columnType: 'GelDecimal';
|
||||
data: string;
|
||||
driverParam: string;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'GelDecimal'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDecimal<T extends ColumnBaseConfig<'string', 'GelDecimal'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(table: AnyGelTable<{
|
||||
name: T['tableName'];
|
||||
}>, config: GelDecimalBuilder<T>['config']);
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function decimal(): GelDecimalBuilderInitial<''>;
|
||||
export declare function decimal<TName extends string>(name: TName): GelDecimalBuilderInitial<TName>;
|
||||
30
node_modules/drizzle-orm/gel-core/columns/decimal.js
generated
vendored
Normal file
30
node_modules/drizzle-orm/gel-core/columns/decimal.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelDecimalBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelDecimalBuilder";
|
||||
constructor(name) {
|
||||
super(name, "string", "GelDecimal");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDecimal(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelDecimal extends GelColumn {
|
||||
static [entityKind] = "GelDecimal";
|
||||
constructor(table, config) {
|
||||
super(table, config);
|
||||
}
|
||||
getSQLType() {
|
||||
return "numeric";
|
||||
}
|
||||
}
|
||||
function decimal(name) {
|
||||
return new GelDecimalBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelDecimal,
|
||||
GelDecimalBuilder,
|
||||
decimal
|
||||
};
|
||||
//# sourceMappingURL=decimal.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/decimal.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/decimal.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/decimal.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDecimalBuilderInitial<TName extends string> = GelDecimalBuilder<{\n\tname: TName;\n\tdataType: 'string';\n\tcolumnType: 'GelDecimal';\n\tdata: string;\n\tdriverParam: string;\n\tenumValues: undefined;\n}>;\n\nexport class GelDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'GelDecimal'>> extends GelColumnBuilder<\n\tT\n> {\n\tstatic override readonly [entityKind]: string = 'GelDecimalBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'string', 'GelDecimal');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDecimal<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDecimal<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelDecimal<T extends ColumnBaseConfig<'string', 'GelDecimal'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDecimal';\n\n\tconstructor(table: AnyGelTable<{ name: T['tableName'] }>, config: GelDecimalBuilder<T>['config']) {\n\t\tsuper(table, config);\n\t}\n\n\tgetSQLType(): string {\n\t\treturn 'numeric';\n\t}\n}\n\nexport function decimal(): GelDecimalBuilderInitial<''>;\nexport function decimal<TName extends string>(name: TName): GelDecimalBuilderInitial<TName>;\nexport function decimal(name?: string) {\n\treturn new GelDecimalBuilder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,0BAAqF,iBAEhG;AAAA,EACD,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,YAAY;AAAA,EACnC;AAAA;AAAA,EAGS,MACR,OAC8C;AAC9C,WAAO,IAAI,WAA4C,OAAO,KAAK,MAA8C;AAAA,EAClH;AACD;AAEO,MAAM,mBAAuE,UAAa;AAAA,EAChG,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,OAA8C,QAAwC;AACjG,UAAM,OAAO,MAAM;AAAA,EACpB;AAAA,EAEA,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,kBAAkB,QAAQ,EAAE;AACxC;","names":[]}
|
||||
62
node_modules/drizzle-orm/gel-core/columns/double-precision.cjs
generated
vendored
Normal file
62
node_modules/drizzle-orm/gel-core/columns/double-precision.cjs
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var double_precision_exports = {};
|
||||
__export(double_precision_exports, {
|
||||
GelDoublePrecision: () => GelDoublePrecision,
|
||||
GelDoublePrecisionBuilder: () => GelDoublePrecisionBuilder,
|
||||
doublePrecision: () => doublePrecision
|
||||
});
|
||||
module.exports = __toCommonJS(double_precision_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelDoublePrecisionBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelDoublePrecisionBuilder";
|
||||
constructor(name) {
|
||||
super(name, "number", "GelDoublePrecision");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDoublePrecision(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelDoublePrecision extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelDoublePrecision";
|
||||
getSQLType() {
|
||||
return "double precision";
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
if (typeof value === "string") {
|
||||
return Number.parseFloat(value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
function doublePrecision(name) {
|
||||
return new GelDoublePrecisionBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelDoublePrecision,
|
||||
GelDoublePrecisionBuilder,
|
||||
doublePrecision
|
||||
});
|
||||
//# sourceMappingURL=double-precision.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/double-precision.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/double-precision.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/double-precision.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDoublePrecisionBuilderInitial<TName extends string> = GelDoublePrecisionBuilder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'GelDoublePrecision';\n\tdata: number;\n\tdriverParam: number;\n\tenumValues: undefined;\n}>;\n\nexport class GelDoublePrecisionBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelDoublePrecision'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDoublePrecisionBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'number', 'GelDoublePrecision');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDoublePrecision<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDoublePrecision<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelDoublePrecision<T extends ColumnBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDoublePrecision';\n\n\tgetSQLType(): string {\n\t\treturn 'double precision';\n\t}\n\n\toverride mapFromDriverValue(value: string | number): number {\n\t\tif (typeof value === 'string') {\n\t\t\treturn Number.parseFloat(value);\n\t\t}\n\t\treturn value;\n\t}\n}\n\nexport function doublePrecision(): GelDoublePrecisionBuilderInitial<''>;\nexport function doublePrecision<TName extends string>(name: TName): GelDoublePrecisionBuilderInitial<TName>;\nexport function doublePrecision(name?: string) {\n\treturn new GelDoublePrecisionBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,kCACJ,+BACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,oBAAoB;AAAA,EAC3C;AAAA;AAAA,EAGS,MACR,OACsD;AACtD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,2BAAuF,wBAAa;AAAA,EAChH,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AAAA,EAES,mBAAmB,OAAgC;AAC3D,QAAI,OAAO,UAAU,UAAU;AAC9B,aAAO,OAAO,WAAW,KAAK;AAAA,IAC/B;AACA,WAAO;AAAA,EACR;AACD;AAIO,SAAS,gBAAgB,MAAe;AAC9C,SAAO,IAAI,0BAA0B,QAAQ,EAAE;AAChD;","names":[]}
|
||||
23
node_modules/drizzle-orm/gel-core/columns/double-precision.d.cts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/double-precision.d.cts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelDoublePrecisionBuilderInitial<TName extends string> = GelDoublePrecisionBuilder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelDoublePrecision';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDoublePrecisionBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDoublePrecision<T extends ColumnBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: string | number): number;
|
||||
}
|
||||
export declare function doublePrecision(): GelDoublePrecisionBuilderInitial<''>;
|
||||
export declare function doublePrecision<TName extends string>(name: TName): GelDoublePrecisionBuilderInitial<TName>;
|
||||
23
node_modules/drizzle-orm/gel-core/columns/double-precision.d.ts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/double-precision.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelDoublePrecisionBuilderInitial<TName extends string> = GelDoublePrecisionBuilder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelDoublePrecision';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDoublePrecisionBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDoublePrecision<T extends ColumnBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
mapFromDriverValue(value: string | number): number;
|
||||
}
|
||||
export declare function doublePrecision(): GelDoublePrecisionBuilderInitial<''>;
|
||||
export declare function doublePrecision<TName extends string>(name: TName): GelDoublePrecisionBuilderInitial<TName>;
|
||||
36
node_modules/drizzle-orm/gel-core/columns/double-precision.js
generated
vendored
Normal file
36
node_modules/drizzle-orm/gel-core/columns/double-precision.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelDoublePrecisionBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelDoublePrecisionBuilder";
|
||||
constructor(name) {
|
||||
super(name, "number", "GelDoublePrecision");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDoublePrecision(
|
||||
table,
|
||||
this.config
|
||||
);
|
||||
}
|
||||
}
|
||||
class GelDoublePrecision extends GelColumn {
|
||||
static [entityKind] = "GelDoublePrecision";
|
||||
getSQLType() {
|
||||
return "double precision";
|
||||
}
|
||||
mapFromDriverValue(value) {
|
||||
if (typeof value === "string") {
|
||||
return Number.parseFloat(value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
function doublePrecision(name) {
|
||||
return new GelDoublePrecisionBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelDoublePrecision,
|
||||
GelDoublePrecisionBuilder,
|
||||
doublePrecision
|
||||
};
|
||||
//# sourceMappingURL=double-precision.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/double-precision.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/double-precision.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/double-precision.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDoublePrecisionBuilderInitial<TName extends string> = GelDoublePrecisionBuilder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'GelDoublePrecision';\n\tdata: number;\n\tdriverParam: number;\n\tenumValues: undefined;\n}>;\n\nexport class GelDoublePrecisionBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelDoublePrecision'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDoublePrecisionBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'number', 'GelDoublePrecision');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDoublePrecision<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDoublePrecision<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class GelDoublePrecision<T extends ColumnBaseConfig<'number', 'GelDoublePrecision'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDoublePrecision';\n\n\tgetSQLType(): string {\n\t\treturn 'double precision';\n\t}\n\n\toverride mapFromDriverValue(value: string | number): number {\n\t\tif (typeof value === 'string') {\n\t\t\treturn Number.parseFloat(value);\n\t\t}\n\t\treturn value;\n\t}\n}\n\nexport function doublePrecision(): GelDoublePrecisionBuilderInitial<''>;\nexport function doublePrecision<TName extends string>(name: TName): GelDoublePrecisionBuilderInitial<TName>;\nexport function doublePrecision(name?: string) {\n\treturn new GelDoublePrecisionBuilder(name ?? '');\n}\n"],"mappings":"AAEA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,kCACJ,iBACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,oBAAoB;AAAA,EAC3C;AAAA;AAAA,EAGS,MACR,OACsD;AACtD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,2BAAuF,UAAa;AAAA,EAChH,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AAAA,EAES,mBAAmB,OAAgC;AAC3D,QAAI,OAAO,UAAU,UAAU;AAC9B,aAAO,OAAO,WAAW,KAAK;AAAA,IAC/B;AACA,WAAO;AAAA,EACR;AACD;AAIO,SAAS,gBAAgB,MAAe;AAC9C,SAAO,IAAI,0BAA0B,QAAQ,EAAE;AAChD;","names":[]}
|
||||
53
node_modules/drizzle-orm/gel-core/columns/duration.cjs
generated
vendored
Normal file
53
node_modules/drizzle-orm/gel-core/columns/duration.cjs
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var duration_exports = {};
|
||||
__export(duration_exports, {
|
||||
GelDuration: () => GelDuration,
|
||||
GelDurationBuilder: () => GelDurationBuilder,
|
||||
duration: () => duration
|
||||
});
|
||||
module.exports = __toCommonJS(duration_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelDurationBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelDurationBuilder";
|
||||
constructor(name) {
|
||||
super(name, "duration", "GelDuration");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDuration(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelDuration extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelDuration";
|
||||
getSQLType() {
|
||||
return `duration`;
|
||||
}
|
||||
}
|
||||
function duration(name) {
|
||||
return new GelDurationBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelDuration,
|
||||
GelDurationBuilder,
|
||||
duration
|
||||
});
|
||||
//# sourceMappingURL=duration.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/duration.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/duration.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/duration.ts"],"sourcesContent":["import type { Duration } from 'gel';\nimport type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDurationBuilderInitial<TName extends string> = GelDurationBuilder<{\n\tname: TName;\n\tdataType: 'duration';\n\tcolumnType: 'GelDuration';\n\tdata: Duration;\n\tdriverParam: Duration;\n\tenumValues: undefined;\n}>;\n\nexport class GelDurationBuilder<T extends ColumnBuilderBaseConfig<'duration', 'GelDuration'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDurationBuilder';\n\n\tconstructor(\n\t\tname: T['name'],\n\t) {\n\t\tsuper(name, 'duration', 'GelDuration');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDuration<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDuration<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelDuration<T extends ColumnBaseConfig<'duration', 'GelDuration'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDuration';\n\n\tgetSQLType(): string {\n\t\treturn `duration`;\n\t}\n}\n\nexport function duration(): GelDurationBuilderInitial<''>;\nexport function duration<TName extends string>(name: TName): GelDurationBuilderInitial<TName>;\nexport function duration(name?: string) {\n\treturn new GelDurationBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAA2B;AAE3B,oBAA4C;AAWrC,MAAM,2BACJ,+BACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YACC,MACC;AACD,UAAM,MAAM,YAAY,aAAa;AAAA,EACtC;AAAA;AAAA,EAGS,MACR,OAC+C;AAC/C,WAAO,IAAI,YAA6C,OAAO,KAAK,MAA8C;AAAA,EACnH;AACD;AAEO,MAAM,oBAA2E,wBAAa;AAAA,EACpG,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,SAAS,MAAe;AACvC,SAAO,IAAI,mBAAmB,QAAQ,EAAE;AACzC;","names":[]}
|
||||
23
node_modules/drizzle-orm/gel-core/columns/duration.d.cts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/duration.d.cts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { Duration } from 'gel';
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.cjs";
|
||||
export type GelDurationBuilderInitial<TName extends string> = GelDurationBuilder<{
|
||||
name: TName;
|
||||
dataType: 'duration';
|
||||
columnType: 'GelDuration';
|
||||
data: Duration;
|
||||
driverParam: Duration;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDurationBuilder<T extends ColumnBuilderBaseConfig<'duration', 'GelDuration'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDuration<T extends ColumnBaseConfig<'duration', 'GelDuration'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function duration(): GelDurationBuilderInitial<''>;
|
||||
export declare function duration<TName extends string>(name: TName): GelDurationBuilderInitial<TName>;
|
||||
23
node_modules/drizzle-orm/gel-core/columns/duration.d.ts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/duration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { Duration } from 'gel';
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
export type GelDurationBuilderInitial<TName extends string> = GelDurationBuilder<{
|
||||
name: TName;
|
||||
dataType: 'duration';
|
||||
columnType: 'GelDuration';
|
||||
data: Duration;
|
||||
driverParam: Duration;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelDurationBuilder<T extends ColumnBuilderBaseConfig<'duration', 'GelDuration'>> extends GelColumnBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelDuration<T extends ColumnBaseConfig<'duration', 'GelDuration'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function duration(): GelDurationBuilderInitial<''>;
|
||||
export declare function duration<TName extends string>(name: TName): GelDurationBuilderInitial<TName>;
|
||||
27
node_modules/drizzle-orm/gel-core/columns/duration.js
generated
vendored
Normal file
27
node_modules/drizzle-orm/gel-core/columns/duration.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn, GelColumnBuilder } from "./common.js";
|
||||
class GelDurationBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelDurationBuilder";
|
||||
constructor(name) {
|
||||
super(name, "duration", "GelDuration");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelDuration(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelDuration extends GelColumn {
|
||||
static [entityKind] = "GelDuration";
|
||||
getSQLType() {
|
||||
return `duration`;
|
||||
}
|
||||
}
|
||||
function duration(name) {
|
||||
return new GelDurationBuilder(name ?? "");
|
||||
}
|
||||
export {
|
||||
GelDuration,
|
||||
GelDurationBuilder,
|
||||
duration
|
||||
};
|
||||
//# sourceMappingURL=duration.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/duration.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/duration.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/duration.ts"],"sourcesContent":["import type { Duration } from 'gel';\nimport type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '~/gel-core/table.ts';\nimport { GelColumn, GelColumnBuilder } from './common.ts';\n\nexport type GelDurationBuilderInitial<TName extends string> = GelDurationBuilder<{\n\tname: TName;\n\tdataType: 'duration';\n\tcolumnType: 'GelDuration';\n\tdata: Duration;\n\tdriverParam: Duration;\n\tenumValues: undefined;\n}>;\n\nexport class GelDurationBuilder<T extends ColumnBuilderBaseConfig<'duration', 'GelDuration'>>\n\textends GelColumnBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelDurationBuilder';\n\n\tconstructor(\n\t\tname: T['name'],\n\t) {\n\t\tsuper(name, 'duration', 'GelDuration');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelDuration<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelDuration<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelDuration<T extends ColumnBaseConfig<'duration', 'GelDuration'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelDuration';\n\n\tgetSQLType(): string {\n\t\treturn `duration`;\n\t}\n}\n\nexport function duration(): GelDurationBuilderInitial<''>;\nexport function duration<TName extends string>(name: TName): GelDurationBuilderInitial<TName>;\nexport function duration(name?: string) {\n\treturn new GelDurationBuilder(name ?? '');\n}\n"],"mappings":"AAGA,SAAS,kBAAkB;AAE3B,SAAS,WAAW,wBAAwB;AAWrC,MAAM,2BACJ,iBACT;AAAA,EACC,QAA0B,UAAU,IAAY;AAAA,EAEhD,YACC,MACC;AACD,UAAM,MAAM,YAAY,aAAa;AAAA,EACtC;AAAA;AAAA,EAGS,MACR,OAC+C;AAC/C,WAAO,IAAI,YAA6C,OAAO,KAAK,MAA8C;AAAA,EACnH;AACD;AAEO,MAAM,oBAA2E,UAAa;AAAA,EACpG,QAA0B,UAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,SAAS,MAAe;AACvC,SAAO,IAAI,mBAAmB,QAAQ,EAAE;AACzC;","names":[]}
|
||||
65
node_modules/drizzle-orm/gel-core/columns/index.cjs
generated
vendored
Normal file
65
node_modules/drizzle-orm/gel-core/columns/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var columns_exports = {};
|
||||
module.exports = __toCommonJS(columns_exports);
|
||||
__reExport(columns_exports, require("./bigint.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./bigintT.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./boolean.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./bytes.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./common.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./custom.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./date-duration.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./decimal.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./double-precision.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./duration.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./int.common.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./integer.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./json.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./localdate.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./localtime.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./real.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./relative-duration.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./smallint.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./text.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./timestamp.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./timestamptz.cjs"), module.exports);
|
||||
__reExport(columns_exports, require("./uuid.cjs"), module.exports);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
...require("./bigint.cjs"),
|
||||
...require("./bigintT.cjs"),
|
||||
...require("./boolean.cjs"),
|
||||
...require("./bytes.cjs"),
|
||||
...require("./common.cjs"),
|
||||
...require("./custom.cjs"),
|
||||
...require("./date-duration.cjs"),
|
||||
...require("./decimal.cjs"),
|
||||
...require("./double-precision.cjs"),
|
||||
...require("./duration.cjs"),
|
||||
...require("./int.common.cjs"),
|
||||
...require("./integer.cjs"),
|
||||
...require("./json.cjs"),
|
||||
...require("./localdate.cjs"),
|
||||
...require("./localtime.cjs"),
|
||||
...require("./real.cjs"),
|
||||
...require("./relative-duration.cjs"),
|
||||
...require("./smallint.cjs"),
|
||||
...require("./text.cjs"),
|
||||
...require("./timestamp.cjs"),
|
||||
...require("./timestamptz.cjs"),
|
||||
...require("./uuid.cjs")
|
||||
});
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/index.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/index.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/index.ts"],"sourcesContent":["export * from './bigint.ts';\nexport * from './bigintT.ts';\nexport * from './boolean.ts';\nexport * from './bytes.ts';\nexport * from './common.ts';\nexport * from './custom.ts';\nexport * from './date-duration.ts';\nexport * from './decimal.ts';\nexport * from './double-precision.ts';\nexport * from './duration.ts';\nexport * from './int.common.ts';\nexport * from './integer.ts';\nexport * from './json.ts';\nexport * from './localdate.ts';\nexport * from './localtime.ts';\nexport * from './real.ts';\nexport * from './relative-duration.ts';\nexport * from './smallint.ts';\nexport * from './text.ts';\nexport * from './timestamp.ts';\nexport * from './timestamptz.ts';\nexport * from './uuid.ts';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,wBAAd;AACA,4BAAc,yBADd;AAEA,4BAAc,yBAFd;AAGA,4BAAc,uBAHd;AAIA,4BAAc,wBAJd;AAKA,4BAAc,wBALd;AAMA,4BAAc,+BANd;AAOA,4BAAc,yBAPd;AAQA,4BAAc,kCARd;AASA,4BAAc,0BATd;AAUA,4BAAc,4BAVd;AAWA,4BAAc,yBAXd;AAYA,4BAAc,sBAZd;AAaA,4BAAc,2BAbd;AAcA,4BAAc,2BAdd;AAeA,4BAAc,sBAfd;AAgBA,4BAAc,mCAhBd;AAiBA,4BAAc,0BAjBd;AAkBA,4BAAc,sBAlBd;AAmBA,4BAAc,2BAnBd;AAoBA,4BAAc,6BApBd;AAqBA,4BAAc,sBArBd;","names":[]}
|
||||
22
node_modules/drizzle-orm/gel-core/columns/index.d.cts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export * from "./bigint.cjs";
|
||||
export * from "./bigintT.cjs";
|
||||
export * from "./boolean.cjs";
|
||||
export * from "./bytes.cjs";
|
||||
export * from "./common.cjs";
|
||||
export * from "./custom.cjs";
|
||||
export * from "./date-duration.cjs";
|
||||
export * from "./decimal.cjs";
|
||||
export * from "./double-precision.cjs";
|
||||
export * from "./duration.cjs";
|
||||
export * from "./int.common.cjs";
|
||||
export * from "./integer.cjs";
|
||||
export * from "./json.cjs";
|
||||
export * from "./localdate.cjs";
|
||||
export * from "./localtime.cjs";
|
||||
export * from "./real.cjs";
|
||||
export * from "./relative-duration.cjs";
|
||||
export * from "./smallint.cjs";
|
||||
export * from "./text.cjs";
|
||||
export * from "./timestamp.cjs";
|
||||
export * from "./timestamptz.cjs";
|
||||
export * from "./uuid.cjs";
|
||||
22
node_modules/drizzle-orm/gel-core/columns/index.d.ts
generated
vendored
Normal file
22
node_modules/drizzle-orm/gel-core/columns/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export * from "./bigint.js";
|
||||
export * from "./bigintT.js";
|
||||
export * from "./boolean.js";
|
||||
export * from "./bytes.js";
|
||||
export * from "./common.js";
|
||||
export * from "./custom.js";
|
||||
export * from "./date-duration.js";
|
||||
export * from "./decimal.js";
|
||||
export * from "./double-precision.js";
|
||||
export * from "./duration.js";
|
||||
export * from "./int.common.js";
|
||||
export * from "./integer.js";
|
||||
export * from "./json.js";
|
||||
export * from "./localdate.js";
|
||||
export * from "./localtime.js";
|
||||
export * from "./real.js";
|
||||
export * from "./relative-duration.js";
|
||||
export * from "./smallint.js";
|
||||
export * from "./text.js";
|
||||
export * from "./timestamp.js";
|
||||
export * from "./timestamptz.js";
|
||||
export * from "./uuid.js";
|
||||
23
node_modules/drizzle-orm/gel-core/columns/index.js
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/index.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
export * from "./bigint.js";
|
||||
export * from "./bigintT.js";
|
||||
export * from "./boolean.js";
|
||||
export * from "./bytes.js";
|
||||
export * from "./common.js";
|
||||
export * from "./custom.js";
|
||||
export * from "./date-duration.js";
|
||||
export * from "./decimal.js";
|
||||
export * from "./double-precision.js";
|
||||
export * from "./duration.js";
|
||||
export * from "./int.common.js";
|
||||
export * from "./integer.js";
|
||||
export * from "./json.js";
|
||||
export * from "./localdate.js";
|
||||
export * from "./localtime.js";
|
||||
export * from "./real.js";
|
||||
export * from "./relative-duration.js";
|
||||
export * from "./smallint.js";
|
||||
export * from "./text.js";
|
||||
export * from "./timestamp.js";
|
||||
export * from "./timestamptz.js";
|
||||
export * from "./uuid.js";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/index.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/index.ts"],"sourcesContent":["export * from './bigint.ts';\nexport * from './bigintT.ts';\nexport * from './boolean.ts';\nexport * from './bytes.ts';\nexport * from './common.ts';\nexport * from './custom.ts';\nexport * from './date-duration.ts';\nexport * from './decimal.ts';\nexport * from './double-precision.ts';\nexport * from './duration.ts';\nexport * from './int.common.ts';\nexport * from './integer.ts';\nexport * from './json.ts';\nexport * from './localdate.ts';\nexport * from './localtime.ts';\nexport * from './real.ts';\nexport * from './relative-duration.ts';\nexport * from './smallint.ts';\nexport * from './text.ts';\nexport * from './timestamp.ts';\nexport * from './timestamptz.ts';\nexport * from './uuid.ts';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
||||
67
node_modules/drizzle-orm/gel-core/columns/int.common.cjs
generated
vendored
Normal file
67
node_modules/drizzle-orm/gel-core/columns/int.common.cjs
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var int_common_exports = {};
|
||||
__export(int_common_exports, {
|
||||
GelIntColumnBaseBuilder: () => GelIntColumnBaseBuilder
|
||||
});
|
||||
module.exports = __toCommonJS(int_common_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
class GelIntColumnBaseBuilder extends import_common.GelColumnBuilder {
|
||||
static [import_entity.entityKind] = "GelIntColumnBaseBuilder";
|
||||
generatedAlwaysAsIdentity(sequence) {
|
||||
if (sequence) {
|
||||
const { name, ...options } = sequence;
|
||||
this.config.generatedIdentity = {
|
||||
type: "always",
|
||||
sequenceName: name,
|
||||
sequenceOptions: options
|
||||
};
|
||||
} else {
|
||||
this.config.generatedIdentity = {
|
||||
type: "always"
|
||||
};
|
||||
}
|
||||
this.config.hasDefault = true;
|
||||
this.config.notNull = true;
|
||||
return this;
|
||||
}
|
||||
generatedByDefaultAsIdentity(sequence) {
|
||||
if (sequence) {
|
||||
const { name, ...options } = sequence;
|
||||
this.config.generatedIdentity = {
|
||||
type: "byDefault",
|
||||
sequenceName: name,
|
||||
sequenceOptions: options
|
||||
};
|
||||
} else {
|
||||
this.config.generatedIdentity = {
|
||||
type: "byDefault"
|
||||
};
|
||||
}
|
||||
this.config.hasDefault = true;
|
||||
this.config.notNull = true;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelIntColumnBaseBuilder
|
||||
});
|
||||
//# sourceMappingURL=int.common.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/int.common.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/int.common.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/int.common.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnDataType, GeneratedIdentityConfig, IsIdentity } from '~/column-builder.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { GelSequenceOptions } from '../sequence.ts';\nimport { GelColumnBuilder } from './common.ts';\n\nexport abstract class GelIntColumnBaseBuilder<\n\tT extends ColumnBuilderBaseConfig<ColumnDataType, string>,\n> extends GelColumnBuilder<\n\tT,\n\t{ generatedIdentity: GeneratedIdentityConfig }\n> {\n\tstatic override readonly [entityKind]: string = 'GelIntColumnBaseBuilder';\n\n\tgeneratedAlwaysAsIdentity(\n\t\tsequence?: GelSequenceOptions & { name?: string },\n\t): IsIdentity<this, 'always'> {\n\t\tif (sequence) {\n\t\t\tconst { name, ...options } = sequence;\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'always',\n\t\t\t\tsequenceName: name,\n\t\t\t\tsequenceOptions: options,\n\t\t\t};\n\t\t} else {\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'always',\n\t\t\t};\n\t\t}\n\n\t\tthis.config.hasDefault = true;\n\t\tthis.config.notNull = true;\n\n\t\treturn this as IsIdentity<this, 'always'>;\n\t}\n\n\tgeneratedByDefaultAsIdentity(\n\t\tsequence?: GelSequenceOptions & { name?: string },\n\t): IsIdentity<this, 'byDefault'> {\n\t\tif (sequence) {\n\t\t\tconst { name, ...options } = sequence;\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'byDefault',\n\t\t\t\tsequenceName: name,\n\t\t\t\tsequenceOptions: options,\n\t\t\t};\n\t\t} else {\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'byDefault',\n\t\t\t};\n\t\t}\n\n\t\tthis.config.hasDefault = true;\n\t\tthis.config.notNull = true;\n\n\t\treturn this as IsIdentity<this, 'byDefault'>;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA2B;AAE3B,oBAAiC;AAE1B,MAAe,gCAEZ,+BAGR;AAAA,EACD,QAA0B,wBAAU,IAAY;AAAA,EAEhD,0BACC,UAC6B;AAC7B,QAAI,UAAU;AACb,YAAM,EAAE,MAAM,GAAG,QAAQ,IAAI;AAC7B,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,QACN,cAAc;AAAA,QACd,iBAAiB;AAAA,MAClB;AAAA,IACD,OAAO;AACN,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,MACP;AAAA,IACD;AAEA,SAAK,OAAO,aAAa;AACzB,SAAK,OAAO,UAAU;AAEtB,WAAO;AAAA,EACR;AAAA,EAEA,6BACC,UACgC;AAChC,QAAI,UAAU;AACb,YAAM,EAAE,MAAM,GAAG,QAAQ,IAAI;AAC7B,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,QACN,cAAc;AAAA,QACd,iBAAiB;AAAA,MAClB;AAAA,IACD,OAAO;AACN,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,MACP;AAAA,IACD;AAEA,SAAK,OAAO,aAAa;AACzB,SAAK,OAAO,UAAU;AAEtB,WAAO;AAAA,EACR;AACD;","names":[]}
|
||||
15
node_modules/drizzle-orm/gel-core/columns/int.common.d.cts
generated
vendored
Normal file
15
node_modules/drizzle-orm/gel-core/columns/int.common.d.cts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { ColumnBuilderBaseConfig, ColumnDataType, GeneratedIdentityConfig, IsIdentity } from "../../column-builder.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import type { GelSequenceOptions } from "../sequence.cjs";
|
||||
import { GelColumnBuilder } from "./common.cjs";
|
||||
export declare abstract class GelIntColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string>> extends GelColumnBuilder<T, {
|
||||
generatedIdentity: GeneratedIdentityConfig;
|
||||
}> {
|
||||
static readonly [entityKind]: string;
|
||||
generatedAlwaysAsIdentity(sequence?: GelSequenceOptions & {
|
||||
name?: string;
|
||||
}): IsIdentity<this, 'always'>;
|
||||
generatedByDefaultAsIdentity(sequence?: GelSequenceOptions & {
|
||||
name?: string;
|
||||
}): IsIdentity<this, 'byDefault'>;
|
||||
}
|
||||
15
node_modules/drizzle-orm/gel-core/columns/int.common.d.ts
generated
vendored
Normal file
15
node_modules/drizzle-orm/gel-core/columns/int.common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { ColumnBuilderBaseConfig, ColumnDataType, GeneratedIdentityConfig, IsIdentity } from "../../column-builder.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import type { GelSequenceOptions } from "../sequence.js";
|
||||
import { GelColumnBuilder } from "./common.js";
|
||||
export declare abstract class GelIntColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnDataType, string>> extends GelColumnBuilder<T, {
|
||||
generatedIdentity: GeneratedIdentityConfig;
|
||||
}> {
|
||||
static readonly [entityKind]: string;
|
||||
generatedAlwaysAsIdentity(sequence?: GelSequenceOptions & {
|
||||
name?: string;
|
||||
}): IsIdentity<this, 'always'>;
|
||||
generatedByDefaultAsIdentity(sequence?: GelSequenceOptions & {
|
||||
name?: string;
|
||||
}): IsIdentity<this, 'byDefault'>;
|
||||
}
|
||||
43
node_modules/drizzle-orm/gel-core/columns/int.common.js
generated
vendored
Normal file
43
node_modules/drizzle-orm/gel-core/columns/int.common.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumnBuilder } from "./common.js";
|
||||
class GelIntColumnBaseBuilder extends GelColumnBuilder {
|
||||
static [entityKind] = "GelIntColumnBaseBuilder";
|
||||
generatedAlwaysAsIdentity(sequence) {
|
||||
if (sequence) {
|
||||
const { name, ...options } = sequence;
|
||||
this.config.generatedIdentity = {
|
||||
type: "always",
|
||||
sequenceName: name,
|
||||
sequenceOptions: options
|
||||
};
|
||||
} else {
|
||||
this.config.generatedIdentity = {
|
||||
type: "always"
|
||||
};
|
||||
}
|
||||
this.config.hasDefault = true;
|
||||
this.config.notNull = true;
|
||||
return this;
|
||||
}
|
||||
generatedByDefaultAsIdentity(sequence) {
|
||||
if (sequence) {
|
||||
const { name, ...options } = sequence;
|
||||
this.config.generatedIdentity = {
|
||||
type: "byDefault",
|
||||
sequenceName: name,
|
||||
sequenceOptions: options
|
||||
};
|
||||
} else {
|
||||
this.config.generatedIdentity = {
|
||||
type: "byDefault"
|
||||
};
|
||||
}
|
||||
this.config.hasDefault = true;
|
||||
this.config.notNull = true;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
export {
|
||||
GelIntColumnBaseBuilder
|
||||
};
|
||||
//# sourceMappingURL=int.common.js.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/int.common.js.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/int.common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/int.common.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnDataType, GeneratedIdentityConfig, IsIdentity } from '~/column-builder.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { GelSequenceOptions } from '../sequence.ts';\nimport { GelColumnBuilder } from './common.ts';\n\nexport abstract class GelIntColumnBaseBuilder<\n\tT extends ColumnBuilderBaseConfig<ColumnDataType, string>,\n> extends GelColumnBuilder<\n\tT,\n\t{ generatedIdentity: GeneratedIdentityConfig }\n> {\n\tstatic override readonly [entityKind]: string = 'GelIntColumnBaseBuilder';\n\n\tgeneratedAlwaysAsIdentity(\n\t\tsequence?: GelSequenceOptions & { name?: string },\n\t): IsIdentity<this, 'always'> {\n\t\tif (sequence) {\n\t\t\tconst { name, ...options } = sequence;\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'always',\n\t\t\t\tsequenceName: name,\n\t\t\t\tsequenceOptions: options,\n\t\t\t};\n\t\t} else {\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'always',\n\t\t\t};\n\t\t}\n\n\t\tthis.config.hasDefault = true;\n\t\tthis.config.notNull = true;\n\n\t\treturn this as IsIdentity<this, 'always'>;\n\t}\n\n\tgeneratedByDefaultAsIdentity(\n\t\tsequence?: GelSequenceOptions & { name?: string },\n\t): IsIdentity<this, 'byDefault'> {\n\t\tif (sequence) {\n\t\t\tconst { name, ...options } = sequence;\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'byDefault',\n\t\t\t\tsequenceName: name,\n\t\t\t\tsequenceOptions: options,\n\t\t\t};\n\t\t} else {\n\t\t\tthis.config.generatedIdentity = {\n\t\t\t\ttype: 'byDefault',\n\t\t\t};\n\t\t}\n\n\t\tthis.config.hasDefault = true;\n\t\tthis.config.notNull = true;\n\n\t\treturn this as IsIdentity<this, 'byDefault'>;\n\t}\n}\n"],"mappings":"AACA,SAAS,kBAAkB;AAE3B,SAAS,wBAAwB;AAE1B,MAAe,gCAEZ,iBAGR;AAAA,EACD,QAA0B,UAAU,IAAY;AAAA,EAEhD,0BACC,UAC6B;AAC7B,QAAI,UAAU;AACb,YAAM,EAAE,MAAM,GAAG,QAAQ,IAAI;AAC7B,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,QACN,cAAc;AAAA,QACd,iBAAiB;AAAA,MAClB;AAAA,IACD,OAAO;AACN,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,MACP;AAAA,IACD;AAEA,SAAK,OAAO,aAAa;AACzB,SAAK,OAAO,UAAU;AAEtB,WAAO;AAAA,EACR;AAAA,EAEA,6BACC,UACgC;AAChC,QAAI,UAAU;AACb,YAAM,EAAE,MAAM,GAAG,QAAQ,IAAI;AAC7B,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,QACN,cAAc;AAAA,QACd,iBAAiB;AAAA,MAClB;AAAA,IACD,OAAO;AACN,WAAK,OAAO,oBAAoB;AAAA,QAC/B,MAAM;AAAA,MACP;AAAA,IACD;AAEA,SAAK,OAAO,aAAa;AACzB,SAAK,OAAO,UAAU;AAEtB,WAAO;AAAA,EACR;AACD;","names":[]}
|
||||
54
node_modules/drizzle-orm/gel-core/columns/integer.cjs
generated
vendored
Normal file
54
node_modules/drizzle-orm/gel-core/columns/integer.cjs
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var integer_exports = {};
|
||||
__export(integer_exports, {
|
||||
GelInteger: () => GelInteger,
|
||||
GelIntegerBuilder: () => GelIntegerBuilder,
|
||||
integer: () => integer
|
||||
});
|
||||
module.exports = __toCommonJS(integer_exports);
|
||||
var import_entity = require("../../entity.cjs");
|
||||
var import_common = require("./common.cjs");
|
||||
var import_int_common = require("./int.common.cjs");
|
||||
class GelIntegerBuilder extends import_int_common.GelIntColumnBaseBuilder {
|
||||
static [import_entity.entityKind] = "GelIntegerBuilder";
|
||||
constructor(name) {
|
||||
super(name, "number", "GelInteger");
|
||||
}
|
||||
/** @internal */
|
||||
build(table) {
|
||||
return new GelInteger(table, this.config);
|
||||
}
|
||||
}
|
||||
class GelInteger extends import_common.GelColumn {
|
||||
static [import_entity.entityKind] = "GelInteger";
|
||||
getSQLType() {
|
||||
return "integer";
|
||||
}
|
||||
}
|
||||
function integer(name) {
|
||||
return new GelIntegerBuilder(name ?? "");
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GelInteger,
|
||||
GelIntegerBuilder,
|
||||
integer
|
||||
});
|
||||
//# sourceMappingURL=integer.cjs.map
|
||||
1
node_modules/drizzle-orm/gel-core/columns/integer.cjs.map
generated
vendored
Normal file
1
node_modules/drizzle-orm/gel-core/columns/integer.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/gel-core/columns/integer.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyGelTable } from '../table.ts';\nimport { GelColumn } from './common.ts';\nimport { GelIntColumnBaseBuilder } from './int.common.ts';\n\nexport type GelIntegerBuilderInitial<TName extends string> = GelIntegerBuilder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'GelInteger';\n\tdata: number;\n\tdriverParam: number;\n\tenumValues: undefined;\n}>;\n\nexport class GelIntegerBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelInteger'>>\n\textends GelIntColumnBaseBuilder<T>\n{\n\tstatic override readonly [entityKind]: string = 'GelIntegerBuilder';\n\n\tconstructor(name: T['name']) {\n\t\tsuper(name, 'number', 'GelInteger');\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyGelTable<{ name: TTableName }>,\n\t): GelInteger<MakeColumnConfig<T, TTableName>> {\n\t\treturn new GelInteger<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);\n\t}\n}\n\nexport class GelInteger<T extends ColumnBaseConfig<'number', 'GelInteger'>> extends GelColumn<T> {\n\tstatic override readonly [entityKind]: string = 'GelInteger';\n\n\tgetSQLType(): string {\n\t\treturn 'integer';\n\t}\n}\n\nexport function integer(): GelIntegerBuilderInitial<''>;\nexport function integer<TName extends string>(name: TName): GelIntegerBuilderInitial<TName>;\nexport function integer(name?: string) {\n\treturn new GelIntegerBuilder(name ?? '');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,oBAA0B;AAC1B,wBAAwC;AAWjC,MAAM,0BACJ,0CACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB;AAC5B,UAAM,MAAM,UAAU,YAAY;AAAA,EACnC;AAAA;AAAA,EAGS,MACR,OAC8C;AAC9C,WAAO,IAAI,WAA4C,OAAO,KAAK,MAA8C;AAAA,EAClH;AACD;AAEO,MAAM,mBAAuE,wBAAa;AAAA,EAChG,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO;AAAA,EACR;AACD;AAIO,SAAS,QAAQ,MAAe;AACtC,SAAO,IAAI,kBAAkB,QAAQ,EAAE;AACxC;","names":[]}
|
||||
23
node_modules/drizzle-orm/gel-core/columns/integer.d.cts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/integer.d.cts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
|
||||
import type { ColumnBaseConfig } from "../../column.cjs";
|
||||
import { entityKind } from "../../entity.cjs";
|
||||
import { GelColumn } from "./common.cjs";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.cjs";
|
||||
export type GelIntegerBuilderInitial<TName extends string> = GelIntegerBuilder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelInteger';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelIntegerBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelInteger'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelInteger<T extends ColumnBaseConfig<'number', 'GelInteger'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function integer(): GelIntegerBuilderInitial<''>;
|
||||
export declare function integer<TName extends string>(name: TName): GelIntegerBuilderInitial<TName>;
|
||||
23
node_modules/drizzle-orm/gel-core/columns/integer.d.ts
generated
vendored
Normal file
23
node_modules/drizzle-orm/gel-core/columns/integer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
||||
import type { ColumnBaseConfig } from "../../column.js";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { GelColumn } from "./common.js";
|
||||
import { GelIntColumnBaseBuilder } from "./int.common.js";
|
||||
export type GelIntegerBuilderInitial<TName extends string> = GelIntegerBuilder<{
|
||||
name: TName;
|
||||
dataType: 'number';
|
||||
columnType: 'GelInteger';
|
||||
data: number;
|
||||
driverParam: number;
|
||||
enumValues: undefined;
|
||||
}>;
|
||||
export declare class GelIntegerBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelInteger'>> extends GelIntColumnBaseBuilder<T> {
|
||||
static readonly [entityKind]: string;
|
||||
constructor(name: T['name']);
|
||||
}
|
||||
export declare class GelInteger<T extends ColumnBaseConfig<'number', 'GelInteger'>> extends GelColumn<T> {
|
||||
static readonly [entityKind]: string;
|
||||
getSQLType(): string;
|
||||
}
|
||||
export declare function integer(): GelIntegerBuilderInitial<''>;
|
||||
export declare function integer<TName extends string>(name: TName): GelIntegerBuilderInitial<TName>;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user