tempest.games 0.1.20 → 0.1.21
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 +7 -0
- package/app/assets/index-DDZoOz6S.js +55 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +21 -21
- package/bin/backend.worker.game.bun.js +3 -3
- package/bin/backend.worker.tribunal.bun.js +38 -38
- package/bin/frontend.bun.js +11 -11
- package/bin/setup-db.bun.js +136 -74
- package/package.json +26 -26
- package/app/assets/index-LboWSPne.js +0 -46
package/bin/setup-db.bun.js
CHANGED
|
@@ -1955,7 +1955,7 @@ function osUsername() {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
|
|
1958
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
1958
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/entity.js
|
|
1959
1959
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
1960
1960
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
1961
1961
|
function is(value, type) {
|
|
@@ -1980,7 +1980,7 @@ function is(value, type) {
|
|
|
1980
1980
|
return false;
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
1983
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/logger.js
|
|
1984
1984
|
class ConsoleLogWriter {
|
|
1985
1985
|
static [entityKind] = "ConsoleLogWriter";
|
|
1986
1986
|
write(message) {
|
|
@@ -2013,7 +2013,7 @@ class NoopLogger {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2016
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/query-promise.js
|
|
2017
2017
|
class QueryPromise {
|
|
2018
2018
|
static [entityKind] = "QueryPromise";
|
|
2019
2019
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2034,10 +2034,10 @@ class QueryPromise {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
|
|
2037
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2037
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/table.utils.js
|
|
2038
2038
|
var TableName = Symbol.for("drizzle:Name");
|
|
2039
2039
|
|
|
2040
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2040
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/table.js
|
|
2041
2041
|
var Schema = Symbol.for("drizzle:Schema");
|
|
2042
2042
|
var Columns = Symbol.for("drizzle:Columns");
|
|
2043
2043
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -2081,15 +2081,15 @@ function getTableUniqueName(table) {
|
|
|
2081
2081
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2084
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/tracing-utils.js
|
|
2085
2085
|
function iife(fn, ...args) {
|
|
2086
2086
|
return fn(...args);
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2090
|
-
var version = "0.
|
|
2089
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/version.js
|
|
2090
|
+
var version = "0.37.0";
|
|
2091
2091
|
|
|
2092
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2092
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/tracing.js
|
|
2093
2093
|
var otel;
|
|
2094
2094
|
var rawTracer;
|
|
2095
2095
|
var tracer = {
|
|
@@ -2116,7 +2116,7 @@ var tracer = {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
};
|
|
2118
2118
|
|
|
2119
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2119
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/column.js
|
|
2120
2120
|
class Column {
|
|
2121
2121
|
constructor(table, config) {
|
|
2122
2122
|
this.table = table;
|
|
@@ -2166,12 +2166,12 @@ class Column {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2169
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
2170
2170
|
function uniqueKeyName(table, columns) {
|
|
2171
2171
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2174
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
2175
2175
|
class PgColumn extends Column {
|
|
2176
2176
|
constructor(table, config) {
|
|
2177
2177
|
if (!config.uniqueName) {
|
|
@@ -2220,7 +2220,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
2223
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2223
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
2224
2224
|
var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
2225
2225
|
function isPgEnum(obj) {
|
|
2226
2226
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
@@ -2238,7 +2238,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
|
|
2241
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2241
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/subquery.js
|
|
2242
2242
|
class Subquery {
|
|
2243
2243
|
static [entityKind] = "Subquery";
|
|
2244
2244
|
constructor(sql, selection, alias, isWith = false) {
|
|
@@ -2256,10 +2256,10 @@ class WithSubquery extends Subquery {
|
|
|
2256
2256
|
static [entityKind] = "WithSubquery";
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2259
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/view-common.js
|
|
2260
2260
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
2261
2261
|
|
|
2262
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2262
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/sql.js
|
|
2263
2263
|
function isSQLWrapper(value) {
|
|
2264
2264
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
2265
2265
|
}
|
|
@@ -2630,7 +2630,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
2630
2630
|
return new SQL([this]);
|
|
2631
2631
|
};
|
|
2632
2632
|
|
|
2633
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2633
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/utils.js
|
|
2634
2634
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
2635
2635
|
const nullifyMap = {};
|
|
2636
2636
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -2775,7 +2775,7 @@ function isConfig(data) {
|
|
|
2775
2775
|
return false;
|
|
2776
2776
|
}
|
|
2777
2777
|
|
|
2778
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2778
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
2779
2779
|
class PgDeleteBase extends QueryPromise {
|
|
2780
2780
|
constructor(table, session, dialect, withList) {
|
|
2781
2781
|
super();
|
|
@@ -2808,9 +2808,14 @@ class PgDeleteBase extends QueryPromise {
|
|
|
2808
2808
|
prepare(name) {
|
|
2809
2809
|
return this._prepare(name);
|
|
2810
2810
|
}
|
|
2811
|
+
authToken;
|
|
2812
|
+
setToken(token) {
|
|
2813
|
+
this.authToken = token;
|
|
2814
|
+
return this;
|
|
2815
|
+
}
|
|
2811
2816
|
execute = (placeholderValues) => {
|
|
2812
2817
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
2813
|
-
return this._prepare().execute(placeholderValues);
|
|
2818
|
+
return this._prepare().execute(placeholderValues, this.authToken);
|
|
2814
2819
|
});
|
|
2815
2820
|
};
|
|
2816
2821
|
$dynamic() {
|
|
@@ -2818,7 +2823,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
2818
2823
|
}
|
|
2819
2824
|
}
|
|
2820
2825
|
|
|
2821
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2826
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/alias.js
|
|
2822
2827
|
class ColumnAliasProxyHandler {
|
|
2823
2828
|
constructor(table) {
|
|
2824
2829
|
this.table = table;
|
|
@@ -2897,7 +2902,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
2897
2902
|
}));
|
|
2898
2903
|
}
|
|
2899
2904
|
|
|
2900
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2905
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/casing.js
|
|
2901
2906
|
function toSnakeCase(input) {
|
|
2902
2907
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
2903
2908
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -2950,7 +2955,7 @@ class CasingCache {
|
|
|
2950
2955
|
}
|
|
2951
2956
|
}
|
|
2952
2957
|
|
|
2953
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2958
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/errors.js
|
|
2954
2959
|
class DrizzleError extends Error {
|
|
2955
2960
|
static [entityKind] = "DrizzleError";
|
|
2956
2961
|
constructor({ message, cause }) {
|
|
@@ -2967,7 +2972,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
2967
2972
|
}
|
|
2968
2973
|
}
|
|
2969
2974
|
|
|
2970
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2975
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
2971
2976
|
class PgDate extends PgColumn {
|
|
2972
2977
|
static [entityKind] = "PgDate";
|
|
2973
2978
|
getSQLType() {
|
|
@@ -2987,7 +2992,7 @@ class PgDateString extends PgColumn {
|
|
|
2987
2992
|
}
|
|
2988
2993
|
}
|
|
2989
2994
|
|
|
2990
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
2995
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
2991
2996
|
class PgJson extends PgColumn {
|
|
2992
2997
|
static [entityKind] = "PgJson";
|
|
2993
2998
|
constructor(table, config) {
|
|
@@ -3011,7 +3016,7 @@ class PgJson extends PgColumn {
|
|
|
3011
3016
|
}
|
|
3012
3017
|
}
|
|
3013
3018
|
|
|
3014
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3019
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
3015
3020
|
class PgJsonb extends PgColumn {
|
|
3016
3021
|
static [entityKind] = "PgJsonb";
|
|
3017
3022
|
constructor(table, config) {
|
|
@@ -3035,7 +3040,7 @@ class PgJsonb extends PgColumn {
|
|
|
3035
3040
|
}
|
|
3036
3041
|
}
|
|
3037
3042
|
|
|
3038
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3043
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
3039
3044
|
class PgNumeric extends PgColumn {
|
|
3040
3045
|
static [entityKind] = "PgNumeric";
|
|
3041
3046
|
precision;
|
|
@@ -3056,7 +3061,7 @@ class PgNumeric extends PgColumn {
|
|
|
3056
3061
|
}
|
|
3057
3062
|
}
|
|
3058
3063
|
|
|
3059
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3064
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
3060
3065
|
class PgTime extends PgColumn {
|
|
3061
3066
|
static [entityKind] = "PgTime";
|
|
3062
3067
|
withTimezone;
|
|
@@ -3072,7 +3077,7 @@ class PgTime extends PgColumn {
|
|
|
3072
3077
|
}
|
|
3073
3078
|
}
|
|
3074
3079
|
|
|
3075
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3080
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
3076
3081
|
class PgTimestamp extends PgColumn {
|
|
3077
3082
|
static [entityKind] = "PgTimestamp";
|
|
3078
3083
|
withTimezone;
|
|
@@ -3108,7 +3113,7 @@ class PgTimestampString extends PgColumn {
|
|
|
3108
3113
|
}
|
|
3109
3114
|
}
|
|
3110
3115
|
|
|
3111
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3116
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
3112
3117
|
class PgUUID extends PgColumn {
|
|
3113
3118
|
static [entityKind] = "PgUUID";
|
|
3114
3119
|
getSQLType() {
|
|
@@ -3116,7 +3121,7 @@ class PgUUID extends PgColumn {
|
|
|
3116
3121
|
}
|
|
3117
3122
|
}
|
|
3118
3123
|
|
|
3119
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3124
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/table.js
|
|
3120
3125
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
3121
3126
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
3122
3127
|
|
|
@@ -3131,7 +3136,7 @@ class PgTable extends Table {
|
|
|
3131
3136
|
[Table.Symbol.ExtraConfigBuilder] = undefined;
|
|
3132
3137
|
}
|
|
3133
3138
|
|
|
3134
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3139
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
3135
3140
|
class PrimaryKeyBuilder {
|
|
3136
3141
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
3137
3142
|
columns;
|
|
@@ -3159,7 +3164,7 @@ class PrimaryKey {
|
|
|
3159
3164
|
}
|
|
3160
3165
|
}
|
|
3161
3166
|
|
|
3162
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3167
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
3163
3168
|
function bindIfParam(value, column) {
|
|
3164
3169
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
3165
3170
|
return new Param(value, column);
|
|
@@ -3264,7 +3269,7 @@ function notIlike(column, value) {
|
|
|
3264
3269
|
return sql`${column} not ilike ${value}`;
|
|
3265
3270
|
}
|
|
3266
3271
|
|
|
3267
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3272
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/expressions/select.js
|
|
3268
3273
|
function asc(column) {
|
|
3269
3274
|
return sql`${column} asc`;
|
|
3270
3275
|
}
|
|
@@ -3272,7 +3277,7 @@ function desc(column) {
|
|
|
3272
3277
|
return sql`${column} desc`;
|
|
3273
3278
|
}
|
|
3274
3279
|
|
|
3275
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3280
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/relations.js
|
|
3276
3281
|
class Relation {
|
|
3277
3282
|
constructor(sourceTable, referencedTable, relationName) {
|
|
3278
3283
|
this.sourceTable = sourceTable;
|
|
@@ -3492,12 +3497,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3492
3497
|
return result;
|
|
3493
3498
|
}
|
|
3494
3499
|
|
|
3495
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3500
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/view-base.js
|
|
3496
3501
|
class PgViewBase extends View {
|
|
3497
3502
|
static [entityKind] = "PgViewBase";
|
|
3498
3503
|
}
|
|
3499
3504
|
|
|
3500
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
3505
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/dialect.js
|
|
3501
3506
|
class PgDialect {
|
|
3502
3507
|
static [entityKind] = "PgDialect";
|
|
3503
3508
|
casing;
|
|
@@ -3766,7 +3771,7 @@ class PgDialect {
|
|
|
3766
3771
|
const offsetSql = offset ? sql` offset ${offset}` : undefined;
|
|
3767
3772
|
return sql`${leftChunk}${operatorChunk}${rightChunk}${orderBySql}${limitSql}${offsetSql}`;
|
|
3768
3773
|
}
|
|
3769
|
-
buildInsertQuery({ table, values: valuesOrSelect, onConflict, returning, withList, select: select2 }) {
|
|
3774
|
+
buildInsertQuery({ table, values: valuesOrSelect, onConflict, returning, withList, select: select2, overridingSystemValue_ }) {
|
|
3770
3775
|
const valuesSqlList = [];
|
|
3771
3776
|
const columns = table[Table.Symbol.Columns];
|
|
3772
3777
|
const colEntries = Object.entries(columns).filter(([_, col]) => !col.shouldDisableInsert());
|
|
@@ -3811,7 +3816,8 @@ class PgDialect {
|
|
|
3811
3816
|
const valuesSql = sql.join(valuesSqlList);
|
|
3812
3817
|
const returningSql = returning ? sql` returning ${this.buildSelection(returning, { isSingleTable: true })}` : undefined;
|
|
3813
3818
|
const onConflictSql = onConflict ? sql` on conflict ${onConflict}` : undefined;
|
|
3814
|
-
|
|
3819
|
+
const overridingSql = overridingSystemValue_ === true ? sql`overriding system value ` : undefined;
|
|
3820
|
+
return sql`${withSql}insert into ${table} ${insertOrder} ${overridingSql}${valuesSql}${onConflictSql}${returningSql}`;
|
|
3815
3821
|
}
|
|
3816
3822
|
buildRefreshMaterializedViewQuery({ view, concurrently, withNoData }) {
|
|
3817
3823
|
const concurrentlySql = concurrently ? sql` concurrently` : undefined;
|
|
@@ -4053,7 +4059,7 @@ class PgDialect {
|
|
|
4053
4059
|
}
|
|
4054
4060
|
}
|
|
4055
4061
|
|
|
4056
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4062
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/selection-proxy.js
|
|
4057
4063
|
class SelectionProxyHandler {
|
|
4058
4064
|
static [entityKind] = "SelectionProxyHandler";
|
|
4059
4065
|
config;
|
|
@@ -4105,7 +4111,7 @@ class SelectionProxyHandler {
|
|
|
4105
4111
|
}
|
|
4106
4112
|
}
|
|
4107
4113
|
|
|
4108
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4114
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
4109
4115
|
class TypedQueryBuilder {
|
|
4110
4116
|
static [entityKind] = "TypedQueryBuilder";
|
|
4111
4117
|
getSelectedFields() {
|
|
@@ -4113,7 +4119,7 @@ class TypedQueryBuilder {
|
|
|
4113
4119
|
}
|
|
4114
4120
|
}
|
|
4115
4121
|
|
|
4116
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4122
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
4117
4123
|
class PgSelectBuilder {
|
|
4118
4124
|
static [entityKind] = "PgSelectBuilder";
|
|
4119
4125
|
fields;
|
|
@@ -4130,6 +4136,11 @@ class PgSelectBuilder {
|
|
|
4130
4136
|
}
|
|
4131
4137
|
this.distinct = config.distinct;
|
|
4132
4138
|
}
|
|
4139
|
+
authToken;
|
|
4140
|
+
setToken(token) {
|
|
4141
|
+
this.authToken = token;
|
|
4142
|
+
return this;
|
|
4143
|
+
}
|
|
4133
4144
|
from(source) {
|
|
4134
4145
|
const isPartialSelect = !!this.fields;
|
|
4135
4146
|
let fields;
|
|
@@ -4152,7 +4163,7 @@ class PgSelectBuilder {
|
|
|
4152
4163
|
dialect: this.dialect,
|
|
4153
4164
|
withList: this.withList,
|
|
4154
4165
|
distinct: this.distinct
|
|
4155
|
-
});
|
|
4166
|
+
}).setToken(this.authToken);
|
|
4156
4167
|
}
|
|
4157
4168
|
}
|
|
4158
4169
|
|
|
@@ -4340,7 +4351,7 @@ class PgSelectQueryBuilderBase extends TypedQueryBuilder {
|
|
|
4340
4351
|
class PgSelectBase extends PgSelectQueryBuilderBase {
|
|
4341
4352
|
static [entityKind] = "PgSelect";
|
|
4342
4353
|
_prepare(name) {
|
|
4343
|
-
const { session, config, dialect, joinsNotNullableMap } = this;
|
|
4354
|
+
const { session, config, dialect, joinsNotNullableMap, authToken } = this;
|
|
4344
4355
|
if (!session) {
|
|
4345
4356
|
throw new Error("Cannot execute a query on a query builder. Please use a database instance instead.");
|
|
4346
4357
|
}
|
|
@@ -4348,15 +4359,20 @@ class PgSelectBase extends PgSelectQueryBuilderBase {
|
|
|
4348
4359
|
const fieldsList = orderSelectedFields(config.fields);
|
|
4349
4360
|
const query = session.prepareQuery(dialect.sqlToQuery(this.getSQL()), fieldsList, name, true);
|
|
4350
4361
|
query.joinsNotNullableMap = joinsNotNullableMap;
|
|
4351
|
-
return query;
|
|
4362
|
+
return query.setToken(authToken);
|
|
4352
4363
|
});
|
|
4353
4364
|
}
|
|
4354
4365
|
prepare(name) {
|
|
4355
4366
|
return this._prepare(name);
|
|
4356
4367
|
}
|
|
4368
|
+
authToken;
|
|
4369
|
+
setToken(token) {
|
|
4370
|
+
this.authToken = token;
|
|
4371
|
+
return this;
|
|
4372
|
+
}
|
|
4357
4373
|
execute = (placeholderValues) => {
|
|
4358
4374
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
4359
|
-
return this._prepare().execute(placeholderValues);
|
|
4375
|
+
return this._prepare().execute(placeholderValues, this.authToken);
|
|
4360
4376
|
});
|
|
4361
4377
|
};
|
|
4362
4378
|
}
|
|
@@ -4391,7 +4407,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
4391
4407
|
var except = createSetOperator("except", false);
|
|
4392
4408
|
var exceptAll = createSetOperator("except", true);
|
|
4393
4409
|
|
|
4394
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4410
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
4395
4411
|
class QueryBuilder {
|
|
4396
4412
|
static [entityKind] = "PgQueryBuilder";
|
|
4397
4413
|
dialect;
|
|
@@ -4470,15 +4486,25 @@ class QueryBuilder {
|
|
|
4470
4486
|
}
|
|
4471
4487
|
}
|
|
4472
4488
|
|
|
4473
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4489
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
4474
4490
|
class PgInsertBuilder {
|
|
4475
|
-
constructor(table, session, dialect, withList) {
|
|
4491
|
+
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
4476
4492
|
this.table = table;
|
|
4477
4493
|
this.session = session;
|
|
4478
4494
|
this.dialect = dialect;
|
|
4479
4495
|
this.withList = withList;
|
|
4496
|
+
this.overridingSystemValue_ = overridingSystemValue_;
|
|
4480
4497
|
}
|
|
4481
4498
|
static [entityKind] = "PgInsertBuilder";
|
|
4499
|
+
authToken;
|
|
4500
|
+
setToken(token) {
|
|
4501
|
+
this.authToken = token;
|
|
4502
|
+
return this;
|
|
4503
|
+
}
|
|
4504
|
+
overridingSystemValue() {
|
|
4505
|
+
this.overridingSystemValue_ = true;
|
|
4506
|
+
return this;
|
|
4507
|
+
}
|
|
4482
4508
|
values(values2) {
|
|
4483
4509
|
values2 = Array.isArray(values2) ? values2 : [values2];
|
|
4484
4510
|
if (values2.length === 0) {
|
|
@@ -4493,7 +4519,7 @@ class PgInsertBuilder {
|
|
|
4493
4519
|
}
|
|
4494
4520
|
return result;
|
|
4495
4521
|
});
|
|
4496
|
-
return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
|
|
4522
|
+
return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList, false, this.overridingSystemValue_).setToken(this.authToken);
|
|
4497
4523
|
}
|
|
4498
4524
|
select(selectQuery) {
|
|
4499
4525
|
const select2 = typeof selectQuery === "function" ? selectQuery(new QueryBuilder) : selectQuery;
|
|
@@ -4505,11 +4531,11 @@ class PgInsertBuilder {
|
|
|
4505
4531
|
}
|
|
4506
4532
|
|
|
4507
4533
|
class PgInsertBase extends QueryPromise {
|
|
4508
|
-
constructor(table, values2, session, dialect, withList, select2) {
|
|
4534
|
+
constructor(table, values2, session, dialect, withList, select2, overridingSystemValue_) {
|
|
4509
4535
|
super();
|
|
4510
4536
|
this.session = session;
|
|
4511
4537
|
this.dialect = dialect;
|
|
4512
|
-
this.config = { table, values: values2, withList, select: select2 };
|
|
4538
|
+
this.config = { table, values: values2, withList, select: select2, overridingSystemValue_ };
|
|
4513
4539
|
}
|
|
4514
4540
|
static [entityKind] = "PgInsert";
|
|
4515
4541
|
config;
|
|
@@ -4556,9 +4582,14 @@ class PgInsertBase extends QueryPromise {
|
|
|
4556
4582
|
prepare(name) {
|
|
4557
4583
|
return this._prepare(name);
|
|
4558
4584
|
}
|
|
4585
|
+
authToken;
|
|
4586
|
+
setToken(token) {
|
|
4587
|
+
this.authToken = token;
|
|
4588
|
+
return this;
|
|
4589
|
+
}
|
|
4559
4590
|
execute = (placeholderValues) => {
|
|
4560
4591
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
4561
|
-
return this._prepare().execute(placeholderValues);
|
|
4592
|
+
return this._prepare().execute(placeholderValues, this.authToken);
|
|
4562
4593
|
});
|
|
4563
4594
|
};
|
|
4564
4595
|
$dynamic() {
|
|
@@ -4566,7 +4597,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
4566
4597
|
}
|
|
4567
4598
|
}
|
|
4568
4599
|
|
|
4569
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4600
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
4570
4601
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
4571
4602
|
constructor(view, session, dialect) {
|
|
4572
4603
|
super();
|
|
@@ -4605,14 +4636,19 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
4605
4636
|
prepare(name) {
|
|
4606
4637
|
return this._prepare(name);
|
|
4607
4638
|
}
|
|
4639
|
+
authToken;
|
|
4640
|
+
setToken(token) {
|
|
4641
|
+
this.authToken = token;
|
|
4642
|
+
return this;
|
|
4643
|
+
}
|
|
4608
4644
|
execute = (placeholderValues) => {
|
|
4609
4645
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
4610
|
-
return this._prepare().execute(placeholderValues);
|
|
4646
|
+
return this._prepare().execute(placeholderValues, this.authToken);
|
|
4611
4647
|
});
|
|
4612
4648
|
};
|
|
4613
4649
|
}
|
|
4614
4650
|
|
|
4615
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4651
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
4616
4652
|
class PgUpdateBuilder {
|
|
4617
4653
|
constructor(table, session, dialect, withList) {
|
|
4618
4654
|
this.table = table;
|
|
@@ -4621,8 +4657,13 @@ class PgUpdateBuilder {
|
|
|
4621
4657
|
this.withList = withList;
|
|
4622
4658
|
}
|
|
4623
4659
|
static [entityKind] = "PgUpdateBuilder";
|
|
4660
|
+
authToken;
|
|
4661
|
+
setToken(token) {
|
|
4662
|
+
this.authToken = token;
|
|
4663
|
+
return this;
|
|
4664
|
+
}
|
|
4624
4665
|
set(values2) {
|
|
4625
|
-
return new PgUpdateBase(this.table, mapUpdateSet(this.table, values2), this.session, this.dialect, this.withList);
|
|
4666
|
+
return new PgUpdateBase(this.table, mapUpdateSet(this.table, values2), this.session, this.dialect, this.withList).setToken(this.authToken);
|
|
4626
4667
|
}
|
|
4627
4668
|
}
|
|
4628
4669
|
|
|
@@ -4735,15 +4776,20 @@ class PgUpdateBase extends QueryPromise {
|
|
|
4735
4776
|
prepare(name) {
|
|
4736
4777
|
return this._prepare(name);
|
|
4737
4778
|
}
|
|
4779
|
+
authToken;
|
|
4780
|
+
setToken(token) {
|
|
4781
|
+
this.authToken = token;
|
|
4782
|
+
return this;
|
|
4783
|
+
}
|
|
4738
4784
|
execute = (placeholderValues) => {
|
|
4739
|
-
return this._prepare().execute(placeholderValues);
|
|
4785
|
+
return this._prepare().execute(placeholderValues, this.authToken);
|
|
4740
4786
|
};
|
|
4741
4787
|
$dynamic() {
|
|
4742
4788
|
return this;
|
|
4743
4789
|
}
|
|
4744
4790
|
}
|
|
4745
4791
|
|
|
4746
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4792
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
4747
4793
|
class PgCountBuilder extends SQL {
|
|
4748
4794
|
constructor(params) {
|
|
4749
4795
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -4753,6 +4799,7 @@ class PgCountBuilder extends SQL {
|
|
|
4753
4799
|
this.sql = PgCountBuilder.buildCount(params.source, params.filters);
|
|
4754
4800
|
}
|
|
4755
4801
|
sql;
|
|
4802
|
+
token;
|
|
4756
4803
|
static [entityKind] = "PgCountBuilder";
|
|
4757
4804
|
[Symbol.toStringTag] = "PgCountBuilder";
|
|
4758
4805
|
session;
|
|
@@ -4762,8 +4809,12 @@ class PgCountBuilder extends SQL {
|
|
|
4762
4809
|
static buildCount(source, filters) {
|
|
4763
4810
|
return sql`select count(*) as count from ${source}${sql.raw(" where ").if(filters)}${filters};`;
|
|
4764
4811
|
}
|
|
4812
|
+
setToken(token) {
|
|
4813
|
+
this.token = token;
|
|
4814
|
+
return this;
|
|
4815
|
+
}
|
|
4765
4816
|
then(onfulfilled, onrejected) {
|
|
4766
|
-
return Promise.resolve(this.session.count(this.sql)).then(onfulfilled, onrejected);
|
|
4817
|
+
return Promise.resolve(this.session.count(this.sql, this.token)).then(onfulfilled, onrejected);
|
|
4767
4818
|
}
|
|
4768
4819
|
catch(onRejected) {
|
|
4769
4820
|
return this.then(undefined, onRejected);
|
|
@@ -4779,7 +4830,7 @@ class PgCountBuilder extends SQL {
|
|
|
4779
4830
|
}
|
|
4780
4831
|
}
|
|
4781
4832
|
|
|
4782
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4833
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
4783
4834
|
class RelationalQueryBuilder {
|
|
4784
4835
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
4785
4836
|
this.fullSchema = fullSchema;
|
|
@@ -4850,14 +4901,19 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
4850
4901
|
toSQL() {
|
|
4851
4902
|
return this._toSQL().builtQuery;
|
|
4852
4903
|
}
|
|
4904
|
+
authToken;
|
|
4905
|
+
setToken(token) {
|
|
4906
|
+
this.authToken = token;
|
|
4907
|
+
return this;
|
|
4908
|
+
}
|
|
4853
4909
|
execute() {
|
|
4854
4910
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
4855
|
-
return this._prepare().execute();
|
|
4911
|
+
return this._prepare().execute(undefined, this.authToken);
|
|
4856
4912
|
});
|
|
4857
4913
|
}
|
|
4858
4914
|
}
|
|
4859
4915
|
|
|
4860
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4916
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
4861
4917
|
class PgRaw extends QueryPromise {
|
|
4862
4918
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
4863
4919
|
super();
|
|
@@ -4884,7 +4940,7 @@ class PgRaw extends QueryPromise {
|
|
|
4884
4940
|
}
|
|
4885
4941
|
}
|
|
4886
4942
|
|
|
4887
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
4943
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/db.js
|
|
4888
4944
|
class PgDatabase {
|
|
4889
4945
|
constructor(dialect, session, schema) {
|
|
4890
4946
|
this.dialect = dialect;
|
|
@@ -4997,28 +5053,34 @@ class PgDatabase {
|
|
|
4997
5053
|
refreshMaterializedView(view) {
|
|
4998
5054
|
return new PgRefreshMaterializedView(view, this.session, this.dialect);
|
|
4999
5055
|
}
|
|
5056
|
+
authToken;
|
|
5000
5057
|
execute(query) {
|
|
5001
5058
|
const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
|
|
5002
5059
|
const builtQuery = this.dialect.sqlToQuery(sequel);
|
|
5003
5060
|
const prepared = this.session.prepareQuery(builtQuery, undefined, undefined, false);
|
|
5004
|
-
return new PgRaw(() => prepared.execute(), sequel, builtQuery, (result) => prepared.mapResult(result, true));
|
|
5061
|
+
return new PgRaw(() => prepared.execute(undefined, this.authToken), sequel, builtQuery, (result) => prepared.mapResult(result, true));
|
|
5005
5062
|
}
|
|
5006
5063
|
transaction(transaction, config) {
|
|
5007
5064
|
return this.session.transaction(transaction, config);
|
|
5008
5065
|
}
|
|
5009
5066
|
}
|
|
5010
5067
|
|
|
5011
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5068
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/session.js
|
|
5012
5069
|
class PgPreparedQuery {
|
|
5013
5070
|
constructor(query) {
|
|
5014
5071
|
this.query = query;
|
|
5015
5072
|
}
|
|
5073
|
+
authToken;
|
|
5016
5074
|
getQuery() {
|
|
5017
5075
|
return this.query;
|
|
5018
5076
|
}
|
|
5019
5077
|
mapResult(response, _isFromBatch) {
|
|
5020
5078
|
return response;
|
|
5021
5079
|
}
|
|
5080
|
+
setToken(token) {
|
|
5081
|
+
this.authToken = token;
|
|
5082
|
+
return this;
|
|
5083
|
+
}
|
|
5022
5084
|
static [entityKind] = "PgPreparedQuery";
|
|
5023
5085
|
joinsNotNullableMap;
|
|
5024
5086
|
}
|
|
@@ -5028,19 +5090,19 @@ class PgSession {
|
|
|
5028
5090
|
this.dialect = dialect;
|
|
5029
5091
|
}
|
|
5030
5092
|
static [entityKind] = "PgSession";
|
|
5031
|
-
execute(query) {
|
|
5093
|
+
execute(query, token) {
|
|
5032
5094
|
return tracer.startActiveSpan("drizzle.operation", () => {
|
|
5033
5095
|
const prepared = tracer.startActiveSpan("drizzle.prepareQuery", () => {
|
|
5034
5096
|
return this.prepareQuery(this.dialect.sqlToQuery(query), undefined, undefined, false);
|
|
5035
5097
|
});
|
|
5036
|
-
return prepared.execute();
|
|
5098
|
+
return prepared.setToken(token).execute(undefined, token);
|
|
5037
5099
|
});
|
|
5038
5100
|
}
|
|
5039
5101
|
all(query) {
|
|
5040
5102
|
return this.prepareQuery(this.dialect.sqlToQuery(query), undefined, undefined, false).all();
|
|
5041
5103
|
}
|
|
5042
|
-
async count(sql2) {
|
|
5043
|
-
const res = await this.execute(sql2);
|
|
5104
|
+
async count(sql2, token) {
|
|
5105
|
+
const res = await this.execute(sql2, token);
|
|
5044
5106
|
return Number(res[0]["count"]);
|
|
5045
5107
|
}
|
|
5046
5108
|
}
|
|
@@ -5073,7 +5135,7 @@ class PgTransaction extends PgDatabase {
|
|
|
5073
5135
|
}
|
|
5074
5136
|
}
|
|
5075
5137
|
|
|
5076
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5138
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/session.js
|
|
5077
5139
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
5078
5140
|
constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
|
|
5079
5141
|
super({ sql: queryString, params });
|
|
@@ -5181,7 +5243,7 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
5181
5243
|
}
|
|
5182
5244
|
}
|
|
5183
5245
|
|
|
5184
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5246
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/driver.js
|
|
5185
5247
|
class PostgresJsDatabase extends PgDatabase {
|
|
5186
5248
|
static [entityKind] = "PostgresJsDatabase";
|
|
5187
5249
|
}
|
|
@@ -5240,7 +5302,7 @@ function drizzle(...params) {
|
|
|
5240
5302
|
drizzle2.mock = mock;
|
|
5241
5303
|
})(drizzle || (drizzle = {}));
|
|
5242
5304
|
|
|
5243
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5305
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/migrator.js
|
|
5244
5306
|
import crypto2 from "crypto";
|
|
5245
5307
|
import fs2 from "fs";
|
|
5246
5308
|
function readMigrationFiles(config) {
|
|
@@ -5272,7 +5334,7 @@ function readMigrationFiles(config) {
|
|
|
5272
5334
|
return migrationQueries;
|
|
5273
5335
|
}
|
|
5274
5336
|
|
|
5275
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.
|
|
5337
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.37.0_@types+react@19.0.1_bun-types@1.1.38_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/migrator.js
|
|
5276
5338
|
async function migrate(db, config) {
|
|
5277
5339
|
const migrations = readMigrationFiles(config);
|
|
5278
5340
|
await db.dialect.migrate(migrations, db.session, config);
|
|
@@ -9140,7 +9202,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
9140
9202
|
ZodError
|
|
9141
9203
|
});
|
|
9142
9204
|
|
|
9143
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.
|
|
9205
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.7.2_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js
|
|
9144
9206
|
function createEnv(opts) {
|
|
9145
9207
|
const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
|
|
9146
9208
|
const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;
|