alchemy 0.82.0 → 0.82.2
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/bin/alchemy.js +4 -5
- package/lib/cloudflare/d1-database.d.ts +21 -35
- package/lib/cloudflare/d1-database.d.ts.map +1 -1
- package/lib/cloudflare/d1-database.js +57 -100
- package/lib/cloudflare/d1-database.js.map +1 -1
- package/lib/cloudflare/d1-local-migrations.d.ts +3 -4
- package/lib/cloudflare/d1-local-migrations.d.ts.map +1 -1
- package/lib/cloudflare/d1-local-migrations.js +40 -12
- package/lib/cloudflare/d1-local-migrations.js.map +1 -1
- package/lib/cloudflare/d1-migrations.d.ts +0 -8
- package/lib/cloudflare/d1-migrations.d.ts.map +1 -1
- package/lib/cloudflare/d1-migrations.js +0 -35
- package/lib/cloudflare/d1-migrations.js.map +1 -1
- package/lib/cloudflare/d1-sql-file.d.ts +12 -0
- package/lib/cloudflare/d1-sql-file.d.ts.map +1 -0
- package/lib/cloudflare/d1-sql-file.js +38 -0
- package/lib/cloudflare/d1-sql-file.js.map +1 -0
- package/lib/state/d1-state-store.js +8 -8
- package/lib/state/d1-state-store.js.map +1 -1
- package/package.json +4 -7
- package/src/cloudflare/d1-database.ts +125 -187
- package/src/cloudflare/d1-local-migrations.ts +56 -18
- package/src/cloudflare/d1-migrations.ts +0 -43
- package/src/cloudflare/d1-sql-file.ts +52 -0
- package/src/state/d1-state-store.ts +8 -10
- package/workers/cloudflare-state-store.js +71 -65
- package/workers/tunnel-proxy.js +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import path from "pathe";
|
|
4
|
+
|
|
5
|
+
export interface D1SqlFile {
|
|
6
|
+
id: string;
|
|
7
|
+
sql: string;
|
|
8
|
+
hash: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Lists SQL files from the directory, sorted by filename.
|
|
13
|
+
* @param directory Directory containing .sql files
|
|
14
|
+
*/
|
|
15
|
+
export async function listSqlFiles(directory: string): Promise<D1SqlFile[]> {
|
|
16
|
+
const files = await Array.fromAsync(
|
|
17
|
+
fs.glob("**/*.sql", {
|
|
18
|
+
cwd: directory,
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const sortedFiles = files.sort((a: string, b: string) => {
|
|
23
|
+
const aNum = getPrefix(a);
|
|
24
|
+
const bNum = getPrefix(b);
|
|
25
|
+
|
|
26
|
+
if (aNum !== null && bNum !== null) return aNum - bNum;
|
|
27
|
+
if (aNum !== null) return -1;
|
|
28
|
+
if (bNum !== null) return 1;
|
|
29
|
+
|
|
30
|
+
return a.localeCompare(b);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
return Promise.all(sortedFiles.map((id) => readSqlFile(directory, id)));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export async function readSqlFile(
|
|
37
|
+
directory: string,
|
|
38
|
+
name: string,
|
|
39
|
+
): Promise<D1SqlFile> {
|
|
40
|
+
const sql = await fs.readFile(path.resolve(directory, name), "utf-8");
|
|
41
|
+
const hash = crypto.createHash("sha256").update(sql).digest("hex");
|
|
42
|
+
const file: D1SqlFile = { id: name, sql, hash };
|
|
43
|
+
// Make the sql property non-enumerable so it's not included in state. This prevents state store errors caused by large sql files.
|
|
44
|
+
Object.defineProperty(file, "sql", { enumerable: false });
|
|
45
|
+
return file;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const getPrefix = (name: string) => {
|
|
49
|
+
const prefix = name.split("_")[0];
|
|
50
|
+
const num = Number.parseInt(prefix, 10);
|
|
51
|
+
return Number.isNaN(num) ? null : num;
|
|
52
|
+
};
|
|
@@ -78,12 +78,11 @@ const upsertDatabase = async (api: CloudflareApi, databaseName: string) => {
|
|
|
78
78
|
const { listDatabases, createDatabase } = await import(
|
|
79
79
|
"../cloudflare/d1-database.ts"
|
|
80
80
|
);
|
|
81
|
-
const {
|
|
82
|
-
|
|
83
|
-
);
|
|
81
|
+
const { listSqlFiles } = await import("../cloudflare/d1-sql-file.ts");
|
|
82
|
+
const { applyMigrations } = await import("../cloudflare/d1-migrations.ts");
|
|
84
83
|
const migrate = async (databaseId: string) => {
|
|
85
84
|
await applyMigrations({
|
|
86
|
-
migrationsFiles: await
|
|
85
|
+
migrationsFiles: await listSqlFiles(MIGRATIONS_DIRECTORY),
|
|
87
86
|
migrationsTable: "migrations",
|
|
88
87
|
accountId: api.accountId,
|
|
89
88
|
databaseId,
|
|
@@ -93,17 +92,16 @@ const upsertDatabase = async (api: CloudflareApi, databaseName: string) => {
|
|
|
93
92
|
};
|
|
94
93
|
const databases = await listDatabases(api, databaseName);
|
|
95
94
|
if (databases[0]) {
|
|
96
|
-
await migrate(databases[0].
|
|
95
|
+
await migrate(databases[0].uuid);
|
|
97
96
|
return {
|
|
98
|
-
id: databases[0].
|
|
97
|
+
id: databases[0].uuid,
|
|
99
98
|
};
|
|
100
99
|
}
|
|
101
|
-
const
|
|
100
|
+
const database = await createDatabase(api, databaseName, {
|
|
102
101
|
readReplication: { mode: "disabled" },
|
|
103
102
|
});
|
|
104
|
-
|
|
105
|
-
await migrate(res.result.uuid);
|
|
103
|
+
await migrate(database.uuid);
|
|
106
104
|
return {
|
|
107
|
-
id:
|
|
105
|
+
id: database.uuid,
|
|
108
106
|
};
|
|
109
107
|
};
|
|
@@ -12,7 +12,7 @@ var __export = (all) => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
15
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/entity.js
|
|
16
16
|
const entityKind = Symbol.for("drizzle:entityKind");
|
|
17
17
|
const hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
18
18
|
function is(value, type) {
|
|
@@ -28,7 +28,7 @@ function is(value, type) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
31
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/logger.js
|
|
32
32
|
var ConsoleLogWriter = class {
|
|
33
33
|
static [entityKind] = "ConsoleLogWriter";
|
|
34
34
|
write(message) {
|
|
@@ -59,11 +59,11 @@ var NoopLogger = class {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
62
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/table.utils.js
|
|
63
63
|
const TableName = Symbol.for("drizzle:Name");
|
|
64
64
|
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
66
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/table.js
|
|
67
67
|
const Schema = Symbol.for("drizzle:Schema");
|
|
68
68
|
const Columns = Symbol.for("drizzle:Columns");
|
|
69
69
|
const ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -126,7 +126,7 @@ function getTableUniqueName(table) {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
//#endregion
|
|
129
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
129
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/column.js
|
|
130
130
|
var Column = class {
|
|
131
131
|
constructor(table, config) {
|
|
132
132
|
this.table = table;
|
|
@@ -177,7 +177,7 @@ var Column = class {
|
|
|
177
177
|
};
|
|
178
178
|
|
|
179
179
|
//#endregion
|
|
180
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
180
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/column-builder.js
|
|
181
181
|
var ColumnBuilder = class {
|
|
182
182
|
static [entityKind] = "ColumnBuilder";
|
|
183
183
|
config;
|
|
@@ -281,7 +281,7 @@ var ColumnBuilder = class {
|
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
//#endregion
|
|
284
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
284
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
285
285
|
var ForeignKeyBuilder$1 = class {
|
|
286
286
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
287
287
|
/** @internal */
|
|
@@ -344,13 +344,13 @@ var ForeignKey$1 = class {
|
|
|
344
344
|
};
|
|
345
345
|
|
|
346
346
|
//#endregion
|
|
347
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
347
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/tracing-utils.js
|
|
348
348
|
function iife(fn, ...args) {
|
|
349
349
|
return fn(...args);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
//#endregion
|
|
353
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
353
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
354
354
|
function uniqueKeyName$1(table, columns$1) {
|
|
355
355
|
return `${table[TableName]}_${columns$1.join("_")}_unique`;
|
|
356
356
|
}
|
|
@@ -401,7 +401,7 @@ var UniqueConstraint$1 = class {
|
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
404
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
405
405
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
406
406
|
for (let i = startFrom; i < arrayString.length; i++) {
|
|
407
407
|
const char = arrayString[i];
|
|
@@ -464,7 +464,7 @@ function makePgArray(array) {
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
//#endregion
|
|
467
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
467
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
468
468
|
var PgColumnBuilder = class extends ColumnBuilder {
|
|
469
469
|
foreignKeyConfigs = [];
|
|
470
470
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -637,7 +637,7 @@ var PgArray = class PgArray extends PgColumn {
|
|
|
637
637
|
};
|
|
638
638
|
|
|
639
639
|
//#endregion
|
|
640
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
640
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
641
641
|
var PgEnumObjectColumnBuilder = class extends PgColumnBuilder {
|
|
642
642
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
643
643
|
constructor(name, enumInstance) {
|
|
@@ -690,7 +690,7 @@ var PgEnumColumn = class extends PgColumn {
|
|
|
690
690
|
};
|
|
691
691
|
|
|
692
692
|
//#endregion
|
|
693
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
693
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/subquery.js
|
|
694
694
|
var Subquery = class {
|
|
695
695
|
static [entityKind] = "Subquery";
|
|
696
696
|
constructor(sql$1, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -709,17 +709,17 @@ var WithSubquery = class extends Subquery {
|
|
|
709
709
|
};
|
|
710
710
|
|
|
711
711
|
//#endregion
|
|
712
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
712
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/tracing.js
|
|
713
713
|
const tracer = { startActiveSpan(name, fn) {
|
|
714
714
|
return fn();
|
|
715
715
|
} };
|
|
716
716
|
|
|
717
717
|
//#endregion
|
|
718
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
718
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/view-common.js
|
|
719
719
|
const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
720
720
|
|
|
721
721
|
//#endregion
|
|
722
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
722
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sql/sql.js
|
|
723
723
|
var FakePrimitiveParam = class {
|
|
724
724
|
static [entityKind] = "FakePrimitiveParam";
|
|
725
725
|
};
|
|
@@ -1094,13 +1094,14 @@ Subquery.prototype.getSQL = function() {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
1096
|
//#endregion
|
|
1097
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1097
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/utils.js
|
|
1098
1098
|
function mapResultRow(columns$1, row, joinsNotNullableMap) {
|
|
1099
1099
|
const nullifyMap = {};
|
|
1100
1100
|
const result = columns$1.reduce((result2, { path, field }, columnIndex) => {
|
|
1101
1101
|
let decoder;
|
|
1102
1102
|
if (is(field, Column)) decoder = field;
|
|
1103
1103
|
else if (is(field, SQL)) decoder = field.decoder;
|
|
1104
|
+
else if (is(field, Subquery)) decoder = field._.sql.decoder;
|
|
1104
1105
|
else decoder = field.sql.decoder;
|
|
1105
1106
|
let node = result2;
|
|
1106
1107
|
for (const [pathChunkIndex, pathChunk] of path.entries()) if (pathChunkIndex < path.length - 1) {
|
|
@@ -1126,7 +1127,7 @@ function orderSelectedFields(fields, pathPrefix) {
|
|
|
1126
1127
|
return Object.entries(fields).reduce((result, [name, field]) => {
|
|
1127
1128
|
if (typeof name !== "string") return result;
|
|
1128
1129
|
const newPath = pathPrefix ? [...pathPrefix, name] : [name];
|
|
1129
|
-
if (is(field, Column) || is(field, SQL) || is(field, SQL.Aliased)) result.push({
|
|
1130
|
+
if (is(field, Column) || is(field, SQL) || is(field, SQL.Aliased) || is(field, Subquery)) result.push({
|
|
1130
1131
|
path: newPath,
|
|
1131
1132
|
field
|
|
1132
1133
|
});
|
|
@@ -1171,7 +1172,7 @@ function getColumnNameAndConfig(a, b) {
|
|
|
1171
1172
|
const textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
|
|
1172
1173
|
|
|
1173
1174
|
//#endregion
|
|
1174
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1175
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/table.js
|
|
1175
1176
|
const InlineForeignKeys$1 = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
1176
1177
|
const EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
1177
1178
|
var PgTable = class extends Table {
|
|
@@ -1192,7 +1193,7 @@ var PgTable = class extends Table {
|
|
|
1192
1193
|
};
|
|
1193
1194
|
|
|
1194
1195
|
//#endregion
|
|
1195
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1196
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
1196
1197
|
var PrimaryKeyBuilder$1 = class {
|
|
1197
1198
|
static [entityKind] = "PgPrimaryKeyBuilder";
|
|
1198
1199
|
/** @internal */
|
|
@@ -1223,7 +1224,7 @@ var PrimaryKey$1 = class {
|
|
|
1223
1224
|
};
|
|
1224
1225
|
|
|
1225
1226
|
//#endregion
|
|
1226
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1227
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
1227
1228
|
function bindIfParam(value, column) {
|
|
1228
1229
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) return new Param(value, column);
|
|
1229
1230
|
return value;
|
|
@@ -1315,7 +1316,7 @@ function notIlike(column, value) {
|
|
|
1315
1316
|
}
|
|
1316
1317
|
|
|
1317
1318
|
//#endregion
|
|
1318
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1319
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sql/expressions/select.js
|
|
1319
1320
|
function asc(column) {
|
|
1320
1321
|
return sql`${column} asc`;
|
|
1321
1322
|
}
|
|
@@ -1324,7 +1325,7 @@ function desc(column) {
|
|
|
1324
1325
|
}
|
|
1325
1326
|
|
|
1326
1327
|
//#endregion
|
|
1327
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1328
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/relations.js
|
|
1328
1329
|
var Relation = class {
|
|
1329
1330
|
constructor(sourceTable, referencedTable, relationName) {
|
|
1330
1331
|
this.sourceTable = sourceTable;
|
|
@@ -1501,7 +1502,7 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
1501
1502
|
}
|
|
1502
1503
|
|
|
1503
1504
|
//#endregion
|
|
1504
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1505
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/alias.js
|
|
1505
1506
|
var ColumnAliasProxyHandler = class {
|
|
1506
1507
|
constructor(table) {
|
|
1507
1508
|
this.table = table;
|
|
@@ -1570,7 +1571,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
1570
1571
|
}
|
|
1571
1572
|
|
|
1572
1573
|
//#endregion
|
|
1573
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1574
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/selection-proxy.js
|
|
1574
1575
|
var SelectionProxyHandler = class SelectionProxyHandler {
|
|
1575
1576
|
static [entityKind] = "SelectionProxyHandler";
|
|
1576
1577
|
config;
|
|
@@ -1608,7 +1609,7 @@ var SelectionProxyHandler = class SelectionProxyHandler {
|
|
|
1608
1609
|
};
|
|
1609
1610
|
|
|
1610
1611
|
//#endregion
|
|
1611
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1612
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/query-promise.js
|
|
1612
1613
|
var QueryPromise = class {
|
|
1613
1614
|
static [entityKind] = "QueryPromise";
|
|
1614
1615
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -1630,7 +1631,7 @@ var QueryPromise = class {
|
|
|
1630
1631
|
};
|
|
1631
1632
|
|
|
1632
1633
|
//#endregion
|
|
1633
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1634
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
|
|
1634
1635
|
var ForeignKeyBuilder = class {
|
|
1635
1636
|
static [entityKind] = "SQLiteForeignKeyBuilder";
|
|
1636
1637
|
/** @internal */
|
|
@@ -1693,7 +1694,7 @@ var ForeignKey = class {
|
|
|
1693
1694
|
};
|
|
1694
1695
|
|
|
1695
1696
|
//#endregion
|
|
1696
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1697
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
|
|
1697
1698
|
function uniqueKeyName(table, columns$1) {
|
|
1698
1699
|
return `${table[TableName]}_${columns$1.join("_")}_unique`;
|
|
1699
1700
|
}
|
|
@@ -1736,7 +1737,7 @@ var UniqueConstraint = class {
|
|
|
1736
1737
|
};
|
|
1737
1738
|
|
|
1738
1739
|
//#endregion
|
|
1739
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1740
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/common.js
|
|
1740
1741
|
var SQLiteColumnBuilder = class extends ColumnBuilder {
|
|
1741
1742
|
static [entityKind] = "SQLiteColumnBuilder";
|
|
1742
1743
|
foreignKeyConfigs = [];
|
|
@@ -1788,7 +1789,7 @@ var SQLiteColumn = class extends Column {
|
|
|
1788
1789
|
};
|
|
1789
1790
|
|
|
1790
1791
|
//#endregion
|
|
1791
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1792
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/blob.js
|
|
1792
1793
|
var SQLiteBigIntBuilder = class extends SQLiteColumnBuilder {
|
|
1793
1794
|
static [entityKind] = "SQLiteBigIntBuilder";
|
|
1794
1795
|
constructor(name) {
|
|
@@ -1869,7 +1870,7 @@ function blob(a, b) {
|
|
|
1869
1870
|
}
|
|
1870
1871
|
|
|
1871
1872
|
//#endregion
|
|
1872
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1873
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/custom.js
|
|
1873
1874
|
var SQLiteCustomColumnBuilder = class extends SQLiteColumnBuilder {
|
|
1874
1875
|
static [entityKind] = "SQLiteCustomColumnBuilder";
|
|
1875
1876
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -1911,7 +1912,7 @@ function customType(customTypeParams) {
|
|
|
1911
1912
|
}
|
|
1912
1913
|
|
|
1913
1914
|
//#endregion
|
|
1914
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
1915
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/integer.js
|
|
1915
1916
|
var SQLiteBaseIntegerBuilder = class extends SQLiteColumnBuilder {
|
|
1916
1917
|
static [entityKind] = "SQLiteBaseIntegerBuilder";
|
|
1917
1918
|
constructor(name, dataType, columnType) {
|
|
@@ -2002,7 +2003,7 @@ function integer(a, b) {
|
|
|
2002
2003
|
}
|
|
2003
2004
|
|
|
2004
2005
|
//#endregion
|
|
2005
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2006
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
|
|
2006
2007
|
var SQLiteNumericBuilder = class extends SQLiteColumnBuilder {
|
|
2007
2008
|
static [entityKind] = "SQLiteNumericBuilder";
|
|
2008
2009
|
constructor(name) {
|
|
@@ -2069,7 +2070,7 @@ function numeric(a, b) {
|
|
|
2069
2070
|
}
|
|
2070
2071
|
|
|
2071
2072
|
//#endregion
|
|
2072
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2073
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/real.js
|
|
2073
2074
|
var SQLiteRealBuilder = class extends SQLiteColumnBuilder {
|
|
2074
2075
|
static [entityKind] = "SQLiteRealBuilder";
|
|
2075
2076
|
constructor(name) {
|
|
@@ -2091,7 +2092,7 @@ function real(name) {
|
|
|
2091
2092
|
}
|
|
2092
2093
|
|
|
2093
2094
|
//#endregion
|
|
2094
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2095
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/text.js
|
|
2095
2096
|
var SQLiteTextBuilder = class extends SQLiteColumnBuilder {
|
|
2096
2097
|
static [entityKind] = "SQLiteTextBuilder";
|
|
2097
2098
|
constructor(name, config) {
|
|
@@ -2144,7 +2145,7 @@ function text(a, b = {}) {
|
|
|
2144
2145
|
}
|
|
2145
2146
|
|
|
2146
2147
|
//#endregion
|
|
2147
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2148
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/columns/all.js
|
|
2148
2149
|
function getSQLiteColumnBuilders() {
|
|
2149
2150
|
return {
|
|
2150
2151
|
blob,
|
|
@@ -2157,7 +2158,7 @@ function getSQLiteColumnBuilders() {
|
|
|
2157
2158
|
}
|
|
2158
2159
|
|
|
2159
2160
|
//#endregion
|
|
2160
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2161
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/table.js
|
|
2161
2162
|
const InlineForeignKeys = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
|
2162
2163
|
var SQLiteTable = class extends Table {
|
|
2163
2164
|
static [entityKind] = "SQLiteTable";
|
|
@@ -2191,7 +2192,7 @@ const sqliteTable = (name, columns$1, extraConfig) => {
|
|
|
2191
2192
|
};
|
|
2192
2193
|
|
|
2193
2194
|
//#endregion
|
|
2194
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2195
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/primary-keys.js
|
|
2195
2196
|
function primaryKey(...config) {
|
|
2196
2197
|
if (config[0].columns) return new PrimaryKeyBuilder(config[0].columns, config[0].name);
|
|
2197
2198
|
return new PrimaryKeyBuilder(config);
|
|
@@ -2226,7 +2227,7 @@ var PrimaryKey = class {
|
|
|
2226
2227
|
};
|
|
2227
2228
|
|
|
2228
2229
|
//#endregion
|
|
2229
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2230
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/utils.js
|
|
2230
2231
|
function extractUsedTable(table) {
|
|
2231
2232
|
if (is(table, SQLiteTable)) return [`${table[Table.Symbol.BaseName]}`];
|
|
2232
2233
|
if (is(table, Subquery)) return table._.usedTables ?? [];
|
|
@@ -2235,7 +2236,7 @@ function extractUsedTable(table) {
|
|
|
2235
2236
|
}
|
|
2236
2237
|
|
|
2237
2238
|
//#endregion
|
|
2238
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2239
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/delete.js
|
|
2239
2240
|
var SQLiteDeleteBase = class extends QueryPromise {
|
|
2240
2241
|
constructor(table, session, dialect$1, withList) {
|
|
2241
2242
|
super();
|
|
@@ -2344,7 +2345,7 @@ var SQLiteDeleteBase = class extends QueryPromise {
|
|
|
2344
2345
|
};
|
|
2345
2346
|
|
|
2346
2347
|
//#endregion
|
|
2347
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2348
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/casing.js
|
|
2348
2349
|
function toSnakeCase(input) {
|
|
2349
2350
|
return (input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? []).map((word) => word.toLowerCase()).join("_");
|
|
2350
2351
|
}
|
|
@@ -2388,7 +2389,7 @@ var CasingCache = class {
|
|
|
2388
2389
|
};
|
|
2389
2390
|
|
|
2390
2391
|
//#endregion
|
|
2391
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2392
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/errors.js
|
|
2392
2393
|
var DrizzleError = class extends Error {
|
|
2393
2394
|
static [entityKind] = "DrizzleError";
|
|
2394
2395
|
constructor({ message, cause }) {
|
|
@@ -2416,13 +2417,13 @@ var TransactionRollbackError = class extends DrizzleError {
|
|
|
2416
2417
|
};
|
|
2417
2418
|
|
|
2418
2419
|
//#endregion
|
|
2419
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2420
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/view-base.js
|
|
2420
2421
|
var SQLiteViewBase = class extends View {
|
|
2421
2422
|
static [entityKind] = "SQLiteViewBase";
|
|
2422
2423
|
};
|
|
2423
2424
|
|
|
2424
2425
|
//#endregion
|
|
2425
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2426
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/dialect.js
|
|
2426
2427
|
var SQLiteDialect = class {
|
|
2427
2428
|
static [entityKind] = "SQLiteDialect";
|
|
2428
2429
|
/** @internal */
|
|
@@ -2460,7 +2461,8 @@ var SQLiteDialect = class {
|
|
|
2460
2461
|
const setSize = columnNames.length;
|
|
2461
2462
|
return sql.join(columnNames.flatMap((colName, i) => {
|
|
2462
2463
|
const col = tableColumns[colName];
|
|
2463
|
-
const
|
|
2464
|
+
const onUpdateFnResult = col.onUpdateFn?.();
|
|
2465
|
+
const value = set[colName] ?? (is(onUpdateFnResult, SQL) ? onUpdateFnResult : sql.param(onUpdateFnResult, col));
|
|
2464
2466
|
const res = sql`${sql.identifier(this.casing.getColumnCasing(col))} = ${value}`;
|
|
2465
2467
|
if (i < setSize - 1) return [res, sql.raw(", ")];
|
|
2466
2468
|
return [res];
|
|
@@ -2504,6 +2506,14 @@ var SQLiteDialect = class {
|
|
|
2504
2506
|
else chunk.push(sql`cast(${sql.identifier(tableName)}.${sql.identifier(this.casing.getColumnCasing(field))} as text)`);
|
|
2505
2507
|
else if (isSingleTable) chunk.push(sql.identifier(this.casing.getColumnCasing(field)));
|
|
2506
2508
|
else chunk.push(sql`${sql.identifier(tableName)}.${sql.identifier(this.casing.getColumnCasing(field))}`);
|
|
2509
|
+
} else if (is(field, Subquery)) {
|
|
2510
|
+
const entries$1 = Object.entries(field._.selectedFields);
|
|
2511
|
+
if (entries$1.length === 1) {
|
|
2512
|
+
const entry = entries$1[0][1];
|
|
2513
|
+
const fieldDecoder = is(entry, SQL) ? entry.decoder : is(entry, Column) ? { mapFromDriverValue: (v) => entry.mapFromDriverValue(v) } : entry.sql.decoder;
|
|
2514
|
+
if (fieldDecoder) field._.sql.decoder = fieldDecoder;
|
|
2515
|
+
}
|
|
2516
|
+
chunk.push(field);
|
|
2507
2517
|
}
|
|
2508
2518
|
if (i < columnsLen - 1) chunk.push(sql`, `);
|
|
2509
2519
|
return chunk;
|
|
@@ -2861,7 +2871,7 @@ var SQLiteAsyncDialect = class extends SQLiteDialect {
|
|
|
2861
2871
|
};
|
|
2862
2872
|
|
|
2863
2873
|
//#endregion
|
|
2864
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2874
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
2865
2875
|
var TypedQueryBuilder = class {
|
|
2866
2876
|
static [entityKind] = "TypedQueryBuilder";
|
|
2867
2877
|
/** @internal */
|
|
@@ -2871,7 +2881,7 @@ var TypedQueryBuilder = class {
|
|
|
2871
2881
|
};
|
|
2872
2882
|
|
|
2873
2883
|
//#endregion
|
|
2874
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
2884
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/select.js
|
|
2875
2885
|
var SQLiteSelectBuilder = class {
|
|
2876
2886
|
static [entityKind] = "SQLiteSelectBuilder";
|
|
2877
2887
|
fields;
|
|
@@ -3478,7 +3488,7 @@ const intersect = createSetOperator("intersect", false);
|
|
|
3478
3488
|
const except = createSetOperator("except", false);
|
|
3479
3489
|
|
|
3480
3490
|
//#endregion
|
|
3481
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
3491
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/query-builder.js
|
|
3482
3492
|
var QueryBuilder = class {
|
|
3483
3493
|
static [entityKind] = "SQLiteQueryBuilder";
|
|
3484
3494
|
dialect;
|
|
@@ -3545,7 +3555,7 @@ var QueryBuilder = class {
|
|
|
3545
3555
|
};
|
|
3546
3556
|
|
|
3547
3557
|
//#endregion
|
|
3548
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
3558
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/insert.js
|
|
3549
3559
|
var SQLiteInsertBuilder = class {
|
|
3550
3560
|
constructor(table, session, dialect$1, withList) {
|
|
3551
3561
|
this.table = table;
|
|
@@ -3704,7 +3714,7 @@ var SQLiteInsertBase = class extends QueryPromise {
|
|
|
3704
3714
|
};
|
|
3705
3715
|
|
|
3706
3716
|
//#endregion
|
|
3707
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
3717
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/update.js
|
|
3708
3718
|
var SQLiteUpdateBuilder = class {
|
|
3709
3719
|
constructor(table, session, dialect$1, withList) {
|
|
3710
3720
|
this.table = table;
|
|
@@ -3861,7 +3871,7 @@ var SQLiteUpdateBase = class extends QueryPromise {
|
|
|
3861
3871
|
};
|
|
3862
3872
|
|
|
3863
3873
|
//#endregion
|
|
3864
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
3874
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/count.js
|
|
3865
3875
|
var SQLiteCountBuilder = class SQLiteCountBuilder extends SQL {
|
|
3866
3876
|
constructor(params) {
|
|
3867
3877
|
super(SQLiteCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -3897,7 +3907,7 @@ var SQLiteCountBuilder = class SQLiteCountBuilder extends SQL {
|
|
|
3897
3907
|
};
|
|
3898
3908
|
|
|
3899
3909
|
//#endregion
|
|
3900
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
3910
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/query.js
|
|
3901
3911
|
var RelationalQueryBuilder = class {
|
|
3902
3912
|
constructor(mode, fullSchema, schema, tableNamesMap, table, tableConfig, dialect$1, session) {
|
|
3903
3913
|
this.mode = mode;
|
|
@@ -3998,7 +4008,7 @@ var SQLiteSyncRelationalQuery = class extends SQLiteRelationalQuery {
|
|
|
3998
4008
|
};
|
|
3999
4009
|
|
|
4000
4010
|
//#endregion
|
|
4001
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4011
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/query-builders/raw.js
|
|
4002
4012
|
var SQLiteRaw = class extends QueryPromise {
|
|
4003
4013
|
constructor(execute, getSQL, action, dialect$1, mapBatchResult) {
|
|
4004
4014
|
super();
|
|
@@ -4030,7 +4040,7 @@ var SQLiteRaw = class extends QueryPromise {
|
|
|
4030
4040
|
};
|
|
4031
4041
|
|
|
4032
4042
|
//#endregion
|
|
4033
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4043
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/db.js
|
|
4034
4044
|
var BaseSQLiteDatabase = class {
|
|
4035
4045
|
constructor(resultKind, dialect$1, session, schema) {
|
|
4036
4046
|
this.resultKind = resultKind;
|
|
@@ -4284,7 +4294,7 @@ var BaseSQLiteDatabase = class {
|
|
|
4284
4294
|
};
|
|
4285
4295
|
|
|
4286
4296
|
//#endregion
|
|
4287
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4297
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/cache/core/cache.js
|
|
4288
4298
|
var Cache = class {
|
|
4289
4299
|
static [entityKind] = "Cache";
|
|
4290
4300
|
};
|
|
@@ -4305,7 +4315,7 @@ async function hashQuery(sql$1, params) {
|
|
|
4305
4315
|
}
|
|
4306
4316
|
|
|
4307
4317
|
//#endregion
|
|
4308
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4318
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/sqlite-core/session.js
|
|
4309
4319
|
var ExecuteResultSync = class extends QueryPromise {
|
|
4310
4320
|
constructor(resultCb) {
|
|
4311
4321
|
super();
|
|
@@ -4464,7 +4474,7 @@ var SQLiteTransaction = class extends BaseSQLiteDatabase {
|
|
|
4464
4474
|
};
|
|
4465
4475
|
|
|
4466
4476
|
//#endregion
|
|
4467
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4477
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/durable-sqlite/session.js
|
|
4468
4478
|
var SQLiteDOSession = class extends SQLiteSession {
|
|
4469
4479
|
constructor(client, dialect$1, schema, options = {}) {
|
|
4470
4480
|
super(dialect$1);
|
|
@@ -4479,18 +4489,14 @@ var SQLiteDOSession = class extends SQLiteSession {
|
|
|
4479
4489
|
}
|
|
4480
4490
|
transaction(transaction, _config) {
|
|
4481
4491
|
const tx = new SQLiteDOTransaction("sync", this.dialect, this, this.schema);
|
|
4482
|
-
this.client.transactionSync(() =>
|
|
4483
|
-
transaction(tx);
|
|
4484
|
-
});
|
|
4485
|
-
return {};
|
|
4492
|
+
return this.client.transactionSync(() => transaction(tx));
|
|
4486
4493
|
}
|
|
4487
4494
|
};
|
|
4488
4495
|
var SQLiteDOTransaction = class SQLiteDOTransaction extends SQLiteTransaction {
|
|
4489
4496
|
static [entityKind] = "SQLiteDOTransaction";
|
|
4490
4497
|
transaction(transaction) {
|
|
4491
4498
|
const tx = new SQLiteDOTransaction("sync", this.dialect, this.session, this.schema, this.nestedIndex + 1);
|
|
4492
|
-
this.session.transaction(() => transaction(tx));
|
|
4493
|
-
return {};
|
|
4499
|
+
return this.session.transaction(() => transaction(tx));
|
|
4494
4500
|
}
|
|
4495
4501
|
};
|
|
4496
4502
|
var SQLiteDOPreparedQuery = class extends SQLitePreparedQuery {
|
|
@@ -4542,7 +4548,7 @@ var SQLiteDOPreparedQuery = class extends SQLitePreparedQuery {
|
|
|
4542
4548
|
};
|
|
4543
4549
|
|
|
4544
4550
|
//#endregion
|
|
4545
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4551
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/durable-sqlite/driver.js
|
|
4546
4552
|
var DrizzleSqliteDODatabase = class extends BaseSQLiteDatabase {
|
|
4547
4553
|
static [entityKind] = "DrizzleSqliteDODatabase";
|
|
4548
4554
|
};
|
|
@@ -4566,7 +4572,7 @@ function drizzle(client, config = {}) {
|
|
|
4566
4572
|
}
|
|
4567
4573
|
|
|
4568
4574
|
//#endregion
|
|
4569
|
-
//#region ../node_modules/.bun/drizzle-orm@0.
|
|
4575
|
+
//#region ../node_modules/.bun/drizzle-orm@0.45.1+18fa98f9a11657f9/node_modules/drizzle-orm/durable-sqlite/migrator.js
|
|
4570
4576
|
function readMigrationFiles({ journal, migrations }) {
|
|
4571
4577
|
const migrationQueries = [];
|
|
4572
4578
|
for (const journalEntry of journal.entries) {
|
package/workers/tunnel-proxy.js
CHANGED
|
@@ -83,7 +83,7 @@ const renderErrorHtml = (props) => `
|
|
|
83
83
|
Alchemy</a>.</p>
|
|
84
84
|
</div>
|
|
85
85
|
<div class="bg-slate-200 px-5 py-3 flex flex-col w-full max-w-lg">
|
|
86
|
-
<p class="text-sm text-slate-500">Alchemy 0.82.
|
|
86
|
+
<p class="text-sm text-slate-500">Alchemy 0.82.2</p>
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
</body>
|