@vrplatform/kysely 1.3.45-stage.4339 → 1.3.45

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.
@@ -0,0 +1,3 @@
1
+ import { Kysely } from 'kysely';
2
+ import type { DB } from './v1.generated';
3
+ export declare function useLocalKysely(): Promise<Kysely<DB>>;
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.useLocalKysely = useLocalKysely;
40
+ const node_fs_1 = require("node:fs");
41
+ const promises_1 = require("node:fs/promises");
42
+ const path = __importStar(require("node:path"));
43
+ const node_path_1 = require("node:path");
44
+ const pglite_1 = require("@electric-sql/pglite");
45
+ const kysely_1 = require("kysely");
46
+ const kysely_codegen_1 = __importDefault(require("kysely-codegen"));
47
+ const kysely_pglite_1 = require("kysely-pglite");
48
+ const root = (0, node_path_1.join)(__dirname, '..');
49
+ async function migrate(client) {
50
+ console.log('migrating pglite ....');
51
+ const glob = new Bun.Glob('initial/*.sql');
52
+ for await (const migration of glob.scan(root)) {
53
+ await client.exec(await Bun.file((0, node_path_1.join)(root, migration)).text());
54
+ }
55
+ }
56
+ async function migrateKysely(kysely) {
57
+ console.log('init migrating kysely ....');
58
+ const migrator = new kysely_1.Migrator({
59
+ db: kysely,
60
+ migrationTableSchema: 'core',
61
+ migrationTableName: 'kysely_migration',
62
+ migrationLockTableName: 'kysely_migration_lock',
63
+ provider: new kysely_1.FileMigrationProvider({
64
+ fs: node_fs_1.promises,
65
+ path,
66
+ // This needs to be an absolute path.
67
+ migrationFolder: path.join(root, 'migrations'),
68
+ }),
69
+ });
70
+ console.log('migrating kysely ....');
71
+ const { error, results } = await migrator.migrateToLatest().catch(() => {
72
+ console.error('failed to migrate');
73
+ process.exit(1);
74
+ });
75
+ for (const it of results ?? []) {
76
+ if (it.status === 'Success') {
77
+ console.log(`migration "${it.migrationName}" was executed successfully`);
78
+ }
79
+ else if (it.status === 'Error') {
80
+ console.error(`failed to execute migration "${it.migrationName}"`);
81
+ }
82
+ }
83
+ if (error) {
84
+ console.error('failed to migrate');
85
+ console.error(error);
86
+ process.exit(1);
87
+ }
88
+ }
89
+ const dumpPath = (0, node_path_1.join)(root, '.data.tar');
90
+ const dumpFile = (async () => {
91
+ const dataExists = await (0, promises_1.exists)(dumpPath).catch(() => false);
92
+ if (!dataExists) {
93
+ console.log('Creating initial dump');
94
+ const main = new pglite_1.PGlite();
95
+ await migrate(main).catch(async (err) => {
96
+ console.error('failed to migrate initial dump');
97
+ await Bun.write('../logs/migrate-initial-dump.json', JSON.stringify(err, null, 2));
98
+ process.exit(1);
99
+ });
100
+ const { dialect } = new kysely_pglite_1.KyselyPGlite(main);
101
+ const kysely = new kysely_1.Kysely({
102
+ dialect,
103
+ plugins: [new kysely_1.CamelCasePlugin()],
104
+ });
105
+ await migrateKysely(kysely).catch(() => {
106
+ console.error('failed to migrate kysely');
107
+ process.exit(1);
108
+ });
109
+ await kysely_codegen_1.default
110
+ .generate({
111
+ db: kysely,
112
+ outFile: path.join(root, 'src/v1.generated.ts'),
113
+ defaultSchemas: ['xxx'],
114
+ camelCase: true,
115
+ dialect: kysely_codegen_1.default.getDialect('postgres'),
116
+ })
117
+ .catch(() => {
118
+ console.error('failed to generate kysely');
119
+ process.exit(1);
120
+ });
121
+ const content = await main.dumpDataDir('none').catch(() => {
122
+ console.error('failed to dump data');
123
+ process.exit(1);
124
+ });
125
+ await Bun.write(dumpPath, content).catch(() => {
126
+ console.error('failed to write dump');
127
+ process.exit(1);
128
+ });
129
+ return content;
130
+ }
131
+ return Bun.file(dumpPath);
132
+ })();
133
+ async function useLocalKysely() {
134
+ let isDestroyed = false;
135
+ const now = performance.now();
136
+ const dump = await dumpFile;
137
+ const pglite = new pglite_1.PGlite({ loadDataDir: dump });
138
+ // warm up
139
+ await pglite.sql `SELECT 1`;
140
+ const { dialect } = new kysely_pglite_1.KyselyPGlite(pglite);
141
+ const kysely = new kysely_1.Kysely({
142
+ dialect,
143
+ plugins: [new kysely_1.CamelCasePlugin()],
144
+ });
145
+ const originalDestroy = kysely.destroy.bind(kysely);
146
+ kysely.destroy = async () => {
147
+ if (isDestroyed)
148
+ return;
149
+ isDestroyed = true;
150
+ const destroyTime = performance.now();
151
+ await originalDestroy().catch(() => undefined);
152
+ await pglite.close().catch(() => undefined);
153
+ console.log(`Database destroyed: ${Math.round(performance.now() - destroyTime)}ms`);
154
+ };
155
+ console.log(`Database initialized: ${Math.round(performance.now() - now)}ms`);
156
+ return kys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,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CACT,uBAAuB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,WAAW,CAAC,IAAI,CACvE,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IAE9E,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { promises as fs } from 'node:fs';\nimport { exists } from 'node:fs/promises';\nimport * as path from 'node:path';\nimport { join } from 'node:path';\nimport { PGlite } from '@electric-sql/pglite';\nimport {\n CamelCasePlugin,\n FileMigrationProvider,\n Kysely,\n Migrator,\n} from 'kysely';\nimport codegen from 'kysely-codegen';\nimport { KyselyPGlite } from 'kysely-pglite';\nimport type { DB } from './v1.generated';\n\nconst root = join(__dirname, '..');\nasync function migrate(client: PGlite) {\n console.log('migrating pglite ....');\n const glob = new Bun.Glob('initial/*.sql');\n for await (const migration of glob.scan(root)) {\n await client.exec(await Bun.file(join(root, migration)).text());\n }\n}\n\nasync function migrateKysely(kysely: Kysely<any>) {\n console.log('init migrating kysely ....');\n const migrator = new Migrator({\n db: kysely,\n migrationTableSchema: 'core',\n migrationTableName: 'kysely_migration',\n migrationLockTableName: 'kysely_migration_lock',\n provider: new FileMigrationProvider({\n fs,\n path,\n // This needs to be an absolute path.\n migrationFolder: path.join(root, 'migrations'),\n }),\n });\n\n console.log('migrating kysely ....');\n const { error, results } = await migrator.migrateToLatest().catch(() => {\n console.error('failed to migrate');\n process.exit(1);\n });\n\n for (const it of results ?? []) {\n if (it.status === 'Success') {\n console.log(`migration \"${it.migrationName}\" was executed successfully`);\n } else if (it.status === 'Error') {\n console.error(`failed to execute migration \"${it.migrationName}\"`);\n }\n }\n\n if (error) {\n console.error('failed to migrate');\n console.error(error);\n process.exit(1);\n }\n}\n\nconst dumpPath = join(root, '.data.tar');\nconst dumpFile = (async () => {\n const dataExists = await exists(dumpPath).catch(() => false);\n if (!dataExists) {\n console.log('Creating initial dump');\n const main = new PGlite();\n await migrate(main).catch(async (err) => {\n console.error('failed to migrate initial dump');\n await Bun.write(\n '../logs/migrate-initial-dump.json',\n JSON.stringify(err as any, null, 2)\n );\n process.exit(1);\n });\n const { dialect } = new KyselyPGlite(main);\n const kysely = new Kysely<DB>({\n dialect,\n plugins: [new CamelCasePlugin()],\n });\n await migrateKysely(kysely).catch(() => {\n console.error('failed to migrate kysely');\n process.exit(1);\n });\n await codegen\n .generate({\n db: kysely,\n outFile: path.join(root, 'src/v1.generated.ts'),\n defaultSchemas: ['xxx'],\n camelCase: true,\n dialect: codegen.getDialect('postgres'),\n })\n .catch(() => {\n console.error('failed to generate kysely');\n process.exit(1);\n });\n const content = await main.dumpDataDir('none').catch(() => {\n console.error('failed to dump data');\n process.exit(1);\n });\n await Bun.write(dumpPath, content).catch(() => {\n console.error('failed to write dump');\n process.exit(1);\n });\n return content;\n }\n return Bun.file(dumpPath);\n})();\n\nexport async function useLocalKysely() {\n let isDestroyed = false;\n const now = performance.now();\n\n const dump = await dumpFile;\n\n const pglite = new PGlite({ loadDataDir: dump });\n // warm up\n await pglite.sql`SELECT 1`;\n const { dialect } = new KyselyPGlite(pglite);\n const kysely = new Kysely<DB>({\n dialect,\n plugins: [new CamelCasePlugin()],\n });\n\n const originalDestroy = kysely.destroy.bind(kysely);\n kysely.destroy = async () => {\n if (isDestroyed) return;\n isDestroyed = true;\n const destroyTime = performance.now();\n await originalDestroy().catch(() => undefined);\n await pglite.close().catch(() => undefined);\n console.log(\n `Database destroyed: ${Math.round(performance.now() - destroyTime)}ms`\n );\n };\n\n console.log(`Database initialized: ${Math.round(performance.now() - now)}ms`);\n\n return kysely;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export declare function useTestKysely(cleanupStrategy: 'afterAll' | 'using' | 'manual'): Promise<{
2
+ kysely: import("kysely").Kysely<import("./v1.generated").DB>;
3
+ [Symbol.dispose]: () => Promise<void>;
4
+ }>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTestKysely = useTestKysely;
4
+ const bun_test_1 = require("bun:test");
5
+ const local_1 = require("./local");
6
+ async function useTestKysely(cleanupStrategy) {
7
+ const kysely = await (0, local_1.useLocalKysely)();
8
+ if (cleanupStrategy === 'afterAll')
9
+ (0, bun_test_1.afterAll)(async () => {
10
+ await kysely.destroy();
11
+ });
12
+ return {
13
+ kysely,
14
+ [Symbol.dispose]: async () => {
15
+ await kysely.destroy();
16
+ },
17
+ };
18
+ }
19
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"src/","sources":["test.ts"],"names":[],"mappings":";;AAGA,sCAeC;AAlBD,uCAAoC;AACpC,mCAAyC;AAElC,KAAK,UAAU,aAAa,CACjC,eAAgD;IAEhD,MAAM,MAAM,GAAG,MAAM,IAAA,sBAAc,GAAE,CAAC;IAEtC,IAAI,eAAe,KAAK,UAAU;QAChC,IAAA,mBAAQ,EAAC,KAAK,IAAI,EAAE;YAClB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,OAAO;QACL,MAAM;QACN,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,EAAE;YAC3B,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { afterAll } from 'bun:test';\nimport { useLocalKysely } from './local';\n\nexport async function useTestKysely(\n cleanupStrategy: 'afterAll' | 'using' | 'manual'\n) {\n const kysely = await useLocalKysely();\n\n if (cleanupStrategy === 'afterAll')\n afterAll(async () => {\n await kysely.destroy();\n });\n return {\n kysely,\n [Symbol.dispose]: async () => {\n await kysely.destroy();\n },\n };\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":"7.0.0-dev.20251218.3","root":["../../src/error.ts","../../src/index.ts","../../src/isomorphic.ts","../../src/plugins.ts","../../src/v1.generated.ts","../../src/camel-case/index.ts","../../src/local/digest.ts","../../src/local/generate.ts","../../src/local/index.ts","../../src/local/prune-pulled-schema.ts","../../src/pganalyze-comment-plugin/comment-transformer.ts","../../src/pganalyze-comment-plugin/index.ts","../../src/query/index.ts","../../src/query/listing/index.ts","../../src/query/listing/status.ts","../../src/test/index.ts"]}