tempest.games 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/app/assets/index-C-n664zL.js +4299 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +3053 -1955
- package/bin/backend.worker.bug-rangers.bun.js +661 -945
- package/bin/frontend.bun.js +441 -363
- package/bin/setup-db.bun.js +108 -85
- package/package.json +16 -16
- package/app/assets/index-BXPTVkti.js +0 -4310
package/bin/setup-db.bun.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import * as os2 from "os";
|
|
6
6
|
import { resolve } from "path";
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
8
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/index.js
|
|
9
9
|
import os from "os";
|
|
10
10
|
import fs from "fs";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
12
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/query.js
|
|
13
13
|
var originCache = new Map;
|
|
14
14
|
var originStackCache = new Map;
|
|
15
15
|
var originError = Symbol("OriginError");
|
|
@@ -147,7 +147,7 @@ function cachedError(xs) {
|
|
|
147
147
|
return originCache.get(xs);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
150
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/errors.js
|
|
151
151
|
class PostgresError extends Error {
|
|
152
152
|
constructor(x) {
|
|
153
153
|
super(x.message);
|
|
@@ -190,7 +190,7 @@ function notSupported(x) {
|
|
|
190
190
|
return error;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
193
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/types.js
|
|
194
194
|
var types = {
|
|
195
195
|
string: {
|
|
196
196
|
to: 25,
|
|
@@ -471,14 +471,14 @@ fromKebab.column = { to: fromKebab };
|
|
|
471
471
|
var kebab = { ...toKebab };
|
|
472
472
|
kebab.column.to = fromKebab;
|
|
473
473
|
|
|
474
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
474
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/connection.js
|
|
475
475
|
import net from "net";
|
|
476
476
|
import tls from "tls";
|
|
477
477
|
import crypto2 from "crypto";
|
|
478
478
|
import Stream from "stream";
|
|
479
479
|
import { performance } from "perf_hooks";
|
|
480
480
|
|
|
481
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
481
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/result.js
|
|
482
482
|
class Result extends Array {
|
|
483
483
|
constructor() {
|
|
484
484
|
super();
|
|
@@ -495,7 +495,7 @@ class Result extends Array {
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
498
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/queue.js
|
|
499
499
|
var queue_default = Queue;
|
|
500
500
|
function Queue(initial = []) {
|
|
501
501
|
let xs = initial.slice();
|
|
@@ -522,7 +522,7 @@ function Queue(initial = []) {
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
525
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/bytes.js
|
|
526
526
|
var size = 256;
|
|
527
527
|
var buffer = Buffer.allocUnsafe(size);
|
|
528
528
|
var messages = "BCcDdEFfHPpQSX".split("").reduce((acc, x) => {
|
|
@@ -595,7 +595,7 @@ function reset() {
|
|
|
595
595
|
return b;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
598
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/connection.js
|
|
599
599
|
var connection_default = Connection;
|
|
600
600
|
var uid = 1;
|
|
601
601
|
var Sync = bytes_default().S().end();
|
|
@@ -631,6 +631,7 @@ var errorFields = {
|
|
|
631
631
|
};
|
|
632
632
|
function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose = noop } = {}) {
|
|
633
633
|
const {
|
|
634
|
+
sslnegotiation,
|
|
634
635
|
ssl,
|
|
635
636
|
max,
|
|
636
637
|
user,
|
|
@@ -648,7 +649,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
648
649
|
target_session_attrs
|
|
649
650
|
} = options;
|
|
650
651
|
const sent = queue_default(), id = uid++, backend = { pid: null, secret: null }, idleTimer = timer(end, options.idle_timeout), lifeTimer = timer(end, options.max_lifetime), connectTimer = timer(connectTimedOut, options.connect_timeout);
|
|
651
|
-
let socket = null, cancelMessage, result = new Result, incoming = Buffer.alloc(0), needsTypes = options.fetch_types, backendParameters = {}, statements = {}, statementId = Math.random().toString(36).slice(2), statementCount = 1,
|
|
652
|
+
let socket = null, cancelMessage, errorResponse = null, result = new Result, incoming = Buffer.alloc(0), needsTypes = options.fetch_types, backendParameters = {}, statements = {}, statementId = Math.random().toString(36).slice(2), statementCount = 1, closedTime = 0, remaining = 0, hostIndex = 0, retries = 0, length = 0, delay = 0, rows = 0, serverSignature = null, nextWriteTimer = null, terminated = false, incomings = null, results = null, initial = null, ending = null, stream = null, chunk = null, ended = null, nonce = null, query = null, final = null;
|
|
652
653
|
const connection2 = {
|
|
653
654
|
queue: queues.closed,
|
|
654
655
|
idleTimer,
|
|
@@ -691,6 +692,8 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
691
692
|
function execute(q) {
|
|
692
693
|
if (terminated)
|
|
693
694
|
return queryError(q, Errors.connection("CONNECTION_DESTROYED", options));
|
|
695
|
+
if (stream)
|
|
696
|
+
return queryError(q, Errors.generic("COPY_IN_PROGRESS", "You cannot execute queries during copy"));
|
|
694
697
|
if (q.cancelled)
|
|
695
698
|
return;
|
|
696
699
|
try {
|
|
@@ -760,16 +763,24 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
760
763
|
socket.destroy();
|
|
761
764
|
}
|
|
762
765
|
async function secure() {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
766
|
+
if (sslnegotiation !== "direct") {
|
|
767
|
+
write(SSLRequest);
|
|
768
|
+
const canSSL = await new Promise((r) => socket.once("data", (x) => r(x[0] === 83)));
|
|
769
|
+
if (!canSSL && ssl === "prefer")
|
|
770
|
+
return connected();
|
|
771
|
+
}
|
|
772
|
+
const options2 = {
|
|
769
773
|
socket,
|
|
770
|
-
servername: net.isIP(socket.host) ? undefined : socket.host
|
|
771
|
-
|
|
772
|
-
|
|
774
|
+
servername: net.isIP(socket.host) ? undefined : socket.host
|
|
775
|
+
};
|
|
776
|
+
if (sslnegotiation === "direct")
|
|
777
|
+
options2.ALPNProtocols = ["postgresql"];
|
|
778
|
+
if (ssl === "require" || ssl === "allow" || ssl === "prefer")
|
|
779
|
+
options2.rejectUnauthorized = false;
|
|
780
|
+
else if (typeof ssl === "object")
|
|
781
|
+
Object.assign(options2, ssl);
|
|
782
|
+
socket.removeAllListeners();
|
|
783
|
+
socket = tls.connect(options2);
|
|
773
784
|
socket.on("secureConnect", connected);
|
|
774
785
|
socket.on("error", error);
|
|
775
786
|
socket.on("close", closed);
|
|
@@ -823,7 +834,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
823
834
|
hostIndex = (hostIndex + 1) % port.length;
|
|
824
835
|
}
|
|
825
836
|
function reconnect() {
|
|
826
|
-
setTimeout(connect,
|
|
837
|
+
setTimeout(connect, closedTime ? Math.max(0, closedTime + delay - performance.now()) : 0);
|
|
827
838
|
}
|
|
828
839
|
function connected() {
|
|
829
840
|
try {
|
|
@@ -897,7 +908,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
897
908
|
if (initial)
|
|
898
909
|
return reconnect();
|
|
899
910
|
!hadError && (query || sent.length) && error(Errors.connection("CONNECTION_CLOSED", options, socket));
|
|
900
|
-
|
|
911
|
+
closedTime = performance.now();
|
|
901
912
|
hadError && options.shared.retries++;
|
|
902
913
|
delay = (typeof backoff === "function" ? backoff(options.shared.retries) : backoff) * 1000;
|
|
903
914
|
onclose(connection2, Errors.connection("CONNECTION_CLOSED", options, socket));
|
|
@@ -929,8 +940,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
929
940
|
}
|
|
930
941
|
}
|
|
931
942
|
function ReadyForQuery(x) {
|
|
932
|
-
|
|
933
|
-
|
|
943
|
+
if (query) {
|
|
944
|
+
if (errorResponse) {
|
|
945
|
+
query.retried ? errored(query.retried) : query.prepared && retryRoutines.has(errorResponse.routine) ? retry(query, errorResponse) : errored(errorResponse);
|
|
946
|
+
} else {
|
|
947
|
+
query.resolve(results || result);
|
|
948
|
+
}
|
|
949
|
+
} else if (errorResponse) {
|
|
950
|
+
errored(errorResponse);
|
|
951
|
+
}
|
|
952
|
+
query = results = errorResponse = null;
|
|
934
953
|
result = new Result;
|
|
935
954
|
connectTimer.cancel();
|
|
936
955
|
if (initial) {
|
|
@@ -975,7 +994,6 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
975
994
|
result.count && query.cursorFn(result);
|
|
976
995
|
write(Sync);
|
|
977
996
|
}
|
|
978
|
-
query.resolve(result);
|
|
979
997
|
}
|
|
980
998
|
function ParseComplete() {
|
|
981
999
|
query.parsing = false;
|
|
@@ -1106,9 +1124,12 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
1106
1124
|
query2.execute();
|
|
1107
1125
|
}
|
|
1108
1126
|
function ErrorResponse(x) {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1127
|
+
if (query) {
|
|
1128
|
+
(query.cursorFn || query.describeFirst) && write(Sync);
|
|
1129
|
+
errorResponse = Errors.postgres(parseError(x));
|
|
1130
|
+
} else {
|
|
1131
|
+
errored(Errors.postgres(parseError(x)));
|
|
1132
|
+
}
|
|
1112
1133
|
}
|
|
1113
1134
|
function retry(q, error2) {
|
|
1114
1135
|
delete statements[q.signature];
|
|
@@ -1151,6 +1172,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
1151
1172
|
final(callback) {
|
|
1152
1173
|
socket.write(bytes_default().c().end());
|
|
1153
1174
|
final = callback;
|
|
1175
|
+
stream = null;
|
|
1154
1176
|
}
|
|
1155
1177
|
});
|
|
1156
1178
|
query.resolve(stream);
|
|
@@ -1296,7 +1318,7 @@ function timer(fn, seconds) {
|
|
|
1296
1318
|
}
|
|
1297
1319
|
}
|
|
1298
1320
|
|
|
1299
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
1321
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/subscribe.js
|
|
1300
1322
|
var noop2 = () => {};
|
|
1301
1323
|
function Subscribe(postgres2, options) {
|
|
1302
1324
|
const subscribers = new Map, slot = "postgresjs_" + Math.random().toString(36).slice(2), state = {};
|
|
@@ -1492,7 +1514,7 @@ function parseEvent(x) {
|
|
|
1492
1514
|
return (command || "*") + (path ? ":" + (path.indexOf(".") === -1 ? "public." + path : path) : "") + (key ? "=" + key : "");
|
|
1493
1515
|
}
|
|
1494
1516
|
|
|
1495
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
1517
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/large.js
|
|
1496
1518
|
import Stream2 from "stream";
|
|
1497
1519
|
function largeObject(sql, oid, mode = 131072 | 262144) {
|
|
1498
1520
|
return new Promise(async (resolve, reject) => {
|
|
@@ -1558,7 +1580,7 @@ function largeObject(sql, oid, mode = 131072 | 262144) {
|
|
|
1558
1580
|
});
|
|
1559
1581
|
}
|
|
1560
1582
|
|
|
1561
|
-
// ../../node_modules/.pnpm/postgres@3.4.
|
|
1583
|
+
// ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/index.js
|
|
1562
1584
|
Object.assign(Postgres, {
|
|
1563
1585
|
PostgresError,
|
|
1564
1586
|
toPascal,
|
|
@@ -1851,8 +1873,9 @@ function parseOptions(a, b2) {
|
|
|
1851
1873
|
query.sslrootcert === "system" && (query.ssl = "verify-full");
|
|
1852
1874
|
const ints = ["idle_timeout", "connect_timeout", "max_lifetime", "max_pipeline", "backoff", "keep_alive"];
|
|
1853
1875
|
const defaults = {
|
|
1854
|
-
max: 10,
|
|
1876
|
+
max: globalThis.Cloudflare ? 3 : 10,
|
|
1855
1877
|
ssl: false,
|
|
1878
|
+
sslnegotiation: null,
|
|
1856
1879
|
idle_timeout: null,
|
|
1857
1880
|
connect_timeout: 30,
|
|
1858
1881
|
max_lifetime,
|
|
@@ -1952,7 +1975,7 @@ function osUsername() {
|
|
|
1952
1975
|
}
|
|
1953
1976
|
}
|
|
1954
1977
|
|
|
1955
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
1978
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/entity.js
|
|
1956
1979
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
1957
1980
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
1958
1981
|
function is(value, type) {
|
|
@@ -1977,7 +2000,7 @@ function is(value, type) {
|
|
|
1977
2000
|
return false;
|
|
1978
2001
|
}
|
|
1979
2002
|
|
|
1980
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2003
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/logger.js
|
|
1981
2004
|
class ConsoleLogWriter {
|
|
1982
2005
|
static [entityKind] = "ConsoleLogWriter";
|
|
1983
2006
|
write(message) {
|
|
@@ -2009,7 +2032,7 @@ class NoopLogger {
|
|
|
2009
2032
|
logQuery() {}
|
|
2010
2033
|
}
|
|
2011
2034
|
|
|
2012
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2035
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/query-promise.js
|
|
2013
2036
|
class QueryPromise {
|
|
2014
2037
|
static [entityKind] = "QueryPromise";
|
|
2015
2038
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2030,7 +2053,7 @@ class QueryPromise {
|
|
|
2030
2053
|
}
|
|
2031
2054
|
}
|
|
2032
2055
|
|
|
2033
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2056
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/column.js
|
|
2034
2057
|
class Column {
|
|
2035
2058
|
constructor(table, config) {
|
|
2036
2059
|
this.table = table;
|
|
@@ -2080,20 +2103,20 @@ class Column {
|
|
|
2080
2103
|
}
|
|
2081
2104
|
}
|
|
2082
2105
|
|
|
2083
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2106
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/table.utils.js
|
|
2084
2107
|
var TableName = Symbol.for("drizzle:Name");
|
|
2085
2108
|
|
|
2086
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2109
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/tracing-utils.js
|
|
2087
2110
|
function iife(fn, ...args) {
|
|
2088
2111
|
return fn(...args);
|
|
2089
2112
|
}
|
|
2090
2113
|
|
|
2091
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2114
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
2092
2115
|
function uniqueKeyName(table, columns) {
|
|
2093
2116
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
2094
2117
|
}
|
|
2095
2118
|
|
|
2096
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2119
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
2097
2120
|
class PgColumn extends Column {
|
|
2098
2121
|
constructor(table, config) {
|
|
2099
2122
|
if (!config.uniqueName) {
|
|
@@ -2142,7 +2165,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
2142
2165
|
}
|
|
2143
2166
|
}
|
|
2144
2167
|
|
|
2145
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2168
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
2146
2169
|
class PgEnumObjectColumn extends PgColumn {
|
|
2147
2170
|
static [entityKind] = "PgEnumObjectColumn";
|
|
2148
2171
|
enum;
|
|
@@ -2172,7 +2195,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
2172
2195
|
}
|
|
2173
2196
|
}
|
|
2174
2197
|
|
|
2175
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2198
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/subquery.js
|
|
2176
2199
|
class Subquery {
|
|
2177
2200
|
static [entityKind] = "Subquery";
|
|
2178
2201
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -2191,10 +2214,10 @@ class WithSubquery extends Subquery {
|
|
|
2191
2214
|
static [entityKind] = "WithSubquery";
|
|
2192
2215
|
}
|
|
2193
2216
|
|
|
2194
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2217
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/version.js
|
|
2195
2218
|
var version = "0.45.1";
|
|
2196
2219
|
|
|
2197
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2220
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/tracing.js
|
|
2198
2221
|
var otel;
|
|
2199
2222
|
var rawTracer;
|
|
2200
2223
|
var tracer = {
|
|
@@ -2221,10 +2244,10 @@ var tracer = {
|
|
|
2221
2244
|
}
|
|
2222
2245
|
};
|
|
2223
2246
|
|
|
2224
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2247
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/view-common.js
|
|
2225
2248
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
2226
2249
|
|
|
2227
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2250
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/table.js
|
|
2228
2251
|
var Schema = Symbol.for("drizzle:Schema");
|
|
2229
2252
|
var Columns = Symbol.for("drizzle:Columns");
|
|
2230
2253
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -2268,7 +2291,7 @@ function getTableUniqueName(table) {
|
|
|
2268
2291
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
2269
2292
|
}
|
|
2270
2293
|
|
|
2271
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2294
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/sql/sql.js
|
|
2272
2295
|
function isSQLWrapper(value) {
|
|
2273
2296
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
2274
2297
|
}
|
|
@@ -2648,7 +2671,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
2648
2671
|
return new SQL([this]);
|
|
2649
2672
|
};
|
|
2650
2673
|
|
|
2651
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2674
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/alias.js
|
|
2652
2675
|
class ColumnAliasProxyHandler {
|
|
2653
2676
|
constructor(table) {
|
|
2654
2677
|
this.table = table;
|
|
@@ -2727,7 +2750,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
2727
2750
|
}));
|
|
2728
2751
|
}
|
|
2729
2752
|
|
|
2730
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2753
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/selection-proxy.js
|
|
2731
2754
|
class SelectionProxyHandler {
|
|
2732
2755
|
static [entityKind] = "SelectionProxyHandler";
|
|
2733
2756
|
config;
|
|
@@ -2779,7 +2802,7 @@ class SelectionProxyHandler {
|
|
|
2779
2802
|
}
|
|
2780
2803
|
}
|
|
2781
2804
|
|
|
2782
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2805
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/utils.js
|
|
2783
2806
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
2784
2807
|
const nullifyMap = {};
|
|
2785
2808
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -2927,7 +2950,7 @@ function isConfig(data) {
|
|
|
2927
2950
|
}
|
|
2928
2951
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
2929
2952
|
|
|
2930
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2953
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
2931
2954
|
class PgDate extends PgColumn {
|
|
2932
2955
|
static [entityKind] = "PgDate";
|
|
2933
2956
|
getSQLType() {
|
|
@@ -2954,7 +2977,7 @@ class PgDateString extends PgColumn {
|
|
|
2954
2977
|
}
|
|
2955
2978
|
}
|
|
2956
2979
|
|
|
2957
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
2980
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
2958
2981
|
class PgJson extends PgColumn {
|
|
2959
2982
|
static [entityKind] = "PgJson";
|
|
2960
2983
|
constructor(table, config) {
|
|
@@ -2978,7 +3001,7 @@ class PgJson extends PgColumn {
|
|
|
2978
3001
|
}
|
|
2979
3002
|
}
|
|
2980
3003
|
|
|
2981
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3004
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
2982
3005
|
class PgJsonb extends PgColumn {
|
|
2983
3006
|
static [entityKind] = "PgJsonb";
|
|
2984
3007
|
constructor(table, config) {
|
|
@@ -3002,7 +3025,7 @@ class PgJsonb extends PgColumn {
|
|
|
3002
3025
|
}
|
|
3003
3026
|
}
|
|
3004
3027
|
|
|
3005
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3028
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
3006
3029
|
class PgNumeric extends PgColumn {
|
|
3007
3030
|
static [entityKind] = "PgNumeric";
|
|
3008
3031
|
precision;
|
|
@@ -3028,7 +3051,7 @@ class PgNumeric extends PgColumn {
|
|
|
3028
3051
|
}
|
|
3029
3052
|
}
|
|
3030
3053
|
|
|
3031
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3054
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
3032
3055
|
class PgTime extends PgColumn {
|
|
3033
3056
|
static [entityKind] = "PgTime";
|
|
3034
3057
|
withTimezone;
|
|
@@ -3044,7 +3067,7 @@ class PgTime extends PgColumn {
|
|
|
3044
3067
|
}
|
|
3045
3068
|
}
|
|
3046
3069
|
|
|
3047
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3070
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
3048
3071
|
class PgTimestamp extends PgColumn {
|
|
3049
3072
|
static [entityKind] = "PgTimestamp";
|
|
3050
3073
|
withTimezone;
|
|
@@ -3093,7 +3116,7 @@ class PgTimestampString extends PgColumn {
|
|
|
3093
3116
|
}
|
|
3094
3117
|
}
|
|
3095
3118
|
|
|
3096
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3119
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
3097
3120
|
class PgUUID extends PgColumn {
|
|
3098
3121
|
static [entityKind] = "PgUUID";
|
|
3099
3122
|
getSQLType() {
|
|
@@ -3101,7 +3124,7 @@ class PgUUID extends PgColumn {
|
|
|
3101
3124
|
}
|
|
3102
3125
|
}
|
|
3103
3126
|
|
|
3104
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3127
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/table.js
|
|
3105
3128
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
3106
3129
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
3107
3130
|
|
|
@@ -3117,7 +3140,7 @@ class PgTable extends Table {
|
|
|
3117
3140
|
[Table.Symbol.ExtraConfigColumns] = {};
|
|
3118
3141
|
}
|
|
3119
3142
|
|
|
3120
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3143
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
3121
3144
|
class PrimaryKeyBuilder {
|
|
3122
3145
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
3123
3146
|
columns;
|
|
@@ -3145,7 +3168,7 @@ class PrimaryKey {
|
|
|
3145
3168
|
}
|
|
3146
3169
|
}
|
|
3147
3170
|
|
|
3148
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3171
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/casing.js
|
|
3149
3172
|
function toSnakeCase(input) {
|
|
3150
3173
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
3151
3174
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -3198,7 +3221,7 @@ class CasingCache {
|
|
|
3198
3221
|
}
|
|
3199
3222
|
}
|
|
3200
3223
|
|
|
3201
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3224
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/errors.js
|
|
3202
3225
|
class DrizzleError extends Error {
|
|
3203
3226
|
static [entityKind] = "DrizzleError";
|
|
3204
3227
|
constructor({ message, cause }) {
|
|
@@ -3228,7 +3251,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
3228
3251
|
}
|
|
3229
3252
|
}
|
|
3230
3253
|
|
|
3231
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3254
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
3232
3255
|
function bindIfParam(value, column) {
|
|
3233
3256
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
3234
3257
|
return new Param(value, column);
|
|
@@ -3333,7 +3356,7 @@ function notIlike(column, value) {
|
|
|
3333
3356
|
return sql`${column} not ilike ${value}`;
|
|
3334
3357
|
}
|
|
3335
3358
|
|
|
3336
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3359
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/sql/expressions/select.js
|
|
3337
3360
|
function asc(column) {
|
|
3338
3361
|
return sql`${column} asc`;
|
|
3339
3362
|
}
|
|
@@ -3341,7 +3364,7 @@ function desc(column) {
|
|
|
3341
3364
|
return sql`${column} desc`;
|
|
3342
3365
|
}
|
|
3343
3366
|
|
|
3344
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3367
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/relations.js
|
|
3345
3368
|
class Relation {
|
|
3346
3369
|
constructor(sourceTable, referencedTable, relationName) {
|
|
3347
3370
|
this.sourceTable = sourceTable;
|
|
@@ -3561,12 +3584,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3561
3584
|
return result;
|
|
3562
3585
|
}
|
|
3563
3586
|
|
|
3564
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3587
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/view-base.js
|
|
3565
3588
|
class PgViewBase extends View {
|
|
3566
3589
|
static [entityKind] = "PgViewBase";
|
|
3567
3590
|
}
|
|
3568
3591
|
|
|
3569
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
3592
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/dialect.js
|
|
3570
3593
|
class PgDialect {
|
|
3571
3594
|
static [entityKind] = "PgDialect";
|
|
3572
3595
|
casing;
|
|
@@ -4135,7 +4158,7 @@ class PgDialect {
|
|
|
4135
4158
|
}
|
|
4136
4159
|
}
|
|
4137
4160
|
|
|
4138
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4161
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
4139
4162
|
class TypedQueryBuilder {
|
|
4140
4163
|
static [entityKind] = "TypedQueryBuilder";
|
|
4141
4164
|
getSelectedFields() {
|
|
@@ -4143,7 +4166,7 @@ class TypedQueryBuilder {
|
|
|
4143
4166
|
}
|
|
4144
4167
|
}
|
|
4145
4168
|
|
|
4146
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4169
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
4147
4170
|
class PgSelectBuilder {
|
|
4148
4171
|
static [entityKind] = "PgSelectBuilder";
|
|
4149
4172
|
fields;
|
|
@@ -4461,7 +4484,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
4461
4484
|
var except = createSetOperator("except", false);
|
|
4462
4485
|
var exceptAll = createSetOperator("except", true);
|
|
4463
4486
|
|
|
4464
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4487
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
4465
4488
|
class QueryBuilder {
|
|
4466
4489
|
static [entityKind] = "PgQueryBuilder";
|
|
4467
4490
|
dialect;
|
|
@@ -4539,7 +4562,7 @@ class QueryBuilder {
|
|
|
4539
4562
|
}
|
|
4540
4563
|
}
|
|
4541
4564
|
|
|
4542
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4565
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/utils.js
|
|
4543
4566
|
function extractUsedTable(table) {
|
|
4544
4567
|
if (is(table, PgTable)) {
|
|
4545
4568
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -4553,7 +4576,7 @@ function extractUsedTable(table) {
|
|
|
4553
4576
|
return [];
|
|
4554
4577
|
}
|
|
4555
4578
|
|
|
4556
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4579
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
4557
4580
|
class PgDeleteBase extends QueryPromise {
|
|
4558
4581
|
constructor(table, session, dialect, withList) {
|
|
4559
4582
|
super();
|
|
@@ -4613,7 +4636,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
4613
4636
|
}
|
|
4614
4637
|
}
|
|
4615
4638
|
|
|
4616
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4639
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
4617
4640
|
class PgInsertBuilder {
|
|
4618
4641
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
4619
4642
|
this.table = table;
|
|
@@ -4736,7 +4759,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
4736
4759
|
}
|
|
4737
4760
|
}
|
|
4738
4761
|
|
|
4739
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4762
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
4740
4763
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
4741
4764
|
constructor(view, session, dialect) {
|
|
4742
4765
|
super();
|
|
@@ -4787,7 +4810,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
4787
4810
|
};
|
|
4788
4811
|
}
|
|
4789
4812
|
|
|
4790
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4813
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
4791
4814
|
class PgUpdateBuilder {
|
|
4792
4815
|
constructor(table, session, dialect, withList) {
|
|
4793
4816
|
this.table = table;
|
|
@@ -4941,7 +4964,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
4941
4964
|
}
|
|
4942
4965
|
}
|
|
4943
4966
|
|
|
4944
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
4967
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
4945
4968
|
class PgCountBuilder extends SQL {
|
|
4946
4969
|
constructor(params) {
|
|
4947
4970
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -4982,7 +5005,7 @@ class PgCountBuilder extends SQL {
|
|
|
4982
5005
|
}
|
|
4983
5006
|
}
|
|
4984
5007
|
|
|
4985
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5008
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
4986
5009
|
class RelationalQueryBuilder {
|
|
4987
5010
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
4988
5011
|
this.fullSchema = fullSchema;
|
|
@@ -5065,7 +5088,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
5065
5088
|
}
|
|
5066
5089
|
}
|
|
5067
5090
|
|
|
5068
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5091
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
5069
5092
|
class PgRaw extends QueryPromise {
|
|
5070
5093
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
5071
5094
|
super();
|
|
@@ -5092,7 +5115,7 @@ class PgRaw extends QueryPromise {
|
|
|
5092
5115
|
}
|
|
5093
5116
|
}
|
|
5094
5117
|
|
|
5095
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5118
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/db.js
|
|
5096
5119
|
class PgDatabase {
|
|
5097
5120
|
constructor(dialect, session, schema) {
|
|
5098
5121
|
this.dialect = dialect;
|
|
@@ -5218,7 +5241,7 @@ class PgDatabase {
|
|
|
5218
5241
|
}
|
|
5219
5242
|
}
|
|
5220
5243
|
|
|
5221
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5244
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/cache/core/cache.js
|
|
5222
5245
|
class Cache {
|
|
5223
5246
|
static [entityKind] = "Cache";
|
|
5224
5247
|
}
|
|
@@ -5244,7 +5267,7 @@ async function hashQuery(sql2, params) {
|
|
|
5244
5267
|
return hashHex;
|
|
5245
5268
|
}
|
|
5246
5269
|
|
|
5247
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5270
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/pg-core/session.js
|
|
5248
5271
|
class PgPreparedQuery {
|
|
5249
5272
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
|
5250
5273
|
this.query = query;
|
|
@@ -5376,7 +5399,7 @@ class PgTransaction extends PgDatabase {
|
|
|
5376
5399
|
}
|
|
5377
5400
|
}
|
|
5378
5401
|
|
|
5379
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5402
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/postgres-js/session.js
|
|
5380
5403
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
5381
5404
|
constructor(client, queryString, params, logger, cache, queryMetadata, cacheConfig, fields, _isResponseInArrayMode, customResultMapper) {
|
|
5382
5405
|
super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
|
|
@@ -5492,7 +5515,7 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
5492
5515
|
}
|
|
5493
5516
|
}
|
|
5494
5517
|
|
|
5495
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5518
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/postgres-js/driver.js
|
|
5496
5519
|
class PostgresJsDatabase extends PgDatabase {
|
|
5497
5520
|
static [entityKind] = "PostgresJsDatabase";
|
|
5498
5521
|
}
|
|
@@ -5560,7 +5583,7 @@ function drizzle(...params) {
|
|
|
5560
5583
|
drizzle2.mock = mock;
|
|
5561
5584
|
})(drizzle || (drizzle = {}));
|
|
5562
5585
|
|
|
5563
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5586
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/migrator.js
|
|
5564
5587
|
import crypto3 from "crypto";
|
|
5565
5588
|
import fs2 from "fs";
|
|
5566
5589
|
function readMigrationFiles(config) {
|
|
@@ -5592,13 +5615,13 @@ function readMigrationFiles(config) {
|
|
|
5592
5615
|
return migrationQueries;
|
|
5593
5616
|
}
|
|
5594
5617
|
|
|
5595
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.
|
|
5618
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260109.0_bun-types@1.3.5_postgres@3.4.8/node_modules/drizzle-orm/postgres-js/migrator.js
|
|
5596
5619
|
async function migrate(db, config) {
|
|
5597
5620
|
const migrations = readMigrationFiles(config);
|
|
5598
5621
|
await db.dialect.migrate(migrations, db.session, config);
|
|
5599
5622
|
}
|
|
5600
5623
|
|
|
5601
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.
|
|
5624
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.5/node_modules/@t3-oss/env-core/dist/standard.js
|
|
5602
5625
|
function ensureSynchronous(value, message) {
|
|
5603
5626
|
if (value instanceof Promise)
|
|
5604
5627
|
throw new Error(message);
|
|
@@ -5624,7 +5647,7 @@ function parseWithDictionary(dictionary, value) {
|
|
|
5624
5647
|
return { value: result };
|
|
5625
5648
|
}
|
|
5626
5649
|
|
|
5627
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.
|
|
5650
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.3.5/node_modules/@t3-oss/env-core/dist/index.js
|
|
5628
5651
|
function createEnv(opts) {
|
|
5629
5652
|
const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
|
|
5630
5653
|
if (opts.emptyStringAsUndefined ?? false) {
|