drizzle-kit 0.20.8-883376b → 0.20.9-343f36c

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/bin.cjs +40 -22
  2. package/package.json +3 -3
package/bin.cjs CHANGED
@@ -60204,6 +60204,9 @@ var init_studioUtils = __esm({
60204
60204
  dialect: "pg",
60205
60205
  db,
60206
60206
  proxy,
60207
+ raw: (sql2) => {
60208
+ return client.query(sql2).then((it) => it.rows);
60209
+ },
60207
60210
  schema: pgSchema4,
60208
60211
  relations: relations4,
60209
60212
  ts
@@ -60227,6 +60230,10 @@ var init_studioUtils = __esm({
60227
60230
  dialect: "mysql",
60228
60231
  db,
60229
60232
  proxy,
60233
+ raw: async (sql2) => {
60234
+ const [rows] = await client.execute(sql2, []);
60235
+ return rows;
60236
+ },
60230
60237
  schema: mysqlSchema4,
60231
60238
  relations: relations4,
60232
60239
  ts
@@ -60247,6 +60254,9 @@ var init_studioUtils = __esm({
60247
60254
  dialect: "sqlite",
60248
60255
  db,
60249
60256
  proxy,
60257
+ raw: (sql2) => {
60258
+ throw new Error("Not implemented for D1");
60259
+ },
60250
60260
  schema: sqliteSchema2,
60251
60261
  relations: relations4,
60252
60262
  ts
@@ -60266,6 +60276,9 @@ var init_studioUtils = __esm({
60266
60276
  dialect: "sqlite",
60267
60277
  db,
60268
60278
  proxy,
60279
+ raw: (sql2) => {
60280
+ return Promise.resolve(client.prepare(sql2).all());
60281
+ },
60269
60282
  schema: sqliteSchema2,
60270
60283
  relations: relations4,
60271
60284
  ts
@@ -60290,6 +60303,9 @@ var init_studioUtils = __esm({
60290
60303
  dialect: "sqlite",
60291
60304
  db,
60292
60305
  proxy,
60306
+ raw: (sql2) => {
60307
+ return client.execute(sql2).then((it) => it.rows.map((row) => Object.values(row)));
60308
+ },
60293
60309
  schema: sqliteSchema2,
60294
60310
  relations: relations4,
60295
60311
  ts
@@ -62069,7 +62085,7 @@ init_source();
62069
62085
  // package.json
62070
62086
  var package_default = {
62071
62087
  name: "drizzle-kit",
62072
- version: "0.20.8",
62088
+ version: "0.20.9",
62073
62089
  repository: "https://github.com/drizzle-team/drizzle-kit-mirror",
62074
62090
  author: "Drizzle Team",
62075
62091
  license: "MIT",
@@ -62125,7 +62141,7 @@ var package_default = {
62125
62141
  ]
62126
62142
  },
62127
62143
  dependencies: {
62128
- "@drizzle-team/studio": "^0.0.37",
62144
+ "@drizzle-team/studio": "^0.0.38",
62129
62145
  "@esbuild-kit/esm-loader": "^2.5.5",
62130
62146
  camelcase: "^7.0.1",
62131
62147
  chalk: "^5.2.0",
@@ -62138,7 +62154,6 @@ var package_default = {
62138
62154
  "json-diff": "0.9.0",
62139
62155
  minimatch: "^7.4.3",
62140
62156
  semver: "^7.5.4",
62141
- wrangler: "^3.7.0",
62142
62157
  zod: "^3.20.2"
62143
62158
  },
62144
62159
  devDependencies: {
@@ -62170,6 +62185,7 @@ var package_default = {
62170
62185
  tsx: "^3.12.1",
62171
62186
  typescript: "^4.9.4",
62172
62187
  uvu: "^0.5.6",
62188
+ wrangler: "^3.22.1",
62173
62189
  zx: "^7.2.2"
62174
62190
  },
62175
62191
  exports: {
@@ -63494,15 +63510,15 @@ var introspectPgCommand = new import_commander.Command("introspect:pg").option("
63494
63510
  dryMySql,
63495
63511
  schema4
63496
63512
  );
63497
- writeResult(
63498
- schema4,
63513
+ writeResult({
63514
+ cur: schema4,
63499
63515
  sqlStatements,
63500
63516
  journal,
63501
63517
  _meta,
63502
- validatedConfig.out,
63503
- validatedConfig.breakpoints,
63504
- "introspect"
63505
- );
63518
+ outFolder: validatedConfig.out,
63519
+ breakpoints: validatedConfig.breakpoints ?? false,
63520
+ type: "introspect"
63521
+ });
63506
63522
  } else {
63507
63523
  (0, import_hanji11.render)(
63508
63524
  `[${source_default.blue(
@@ -63547,15 +63563,15 @@ var introspectMySqlCommand = new import_commander.Command("introspect:mysql").op
63547
63563
  dryMySql,
63548
63564
  schema4
63549
63565
  );
63550
- writeResult(
63551
- schema4,
63566
+ writeResult({
63567
+ cur: schema4,
63552
63568
  sqlStatements,
63553
63569
  journal,
63554
63570
  _meta,
63555
- out,
63556
- res.breakpoints ?? false,
63557
- "introspect"
63558
- );
63571
+ outFolder: out,
63572
+ breakpoints: res.breakpoints ?? false,
63573
+ type: "introspect"
63574
+ });
63559
63575
  } else {
63560
63576
  (0, import_hanji11.render)(
63561
63577
  `[${source_default.blue(
@@ -63600,15 +63616,15 @@ var introspectSQLiteCommand = new import_commander.Command("introspect:sqlite").
63600
63616
  drySQLite,
63601
63617
  schema4
63602
63618
  );
63603
- writeResult(
63604
- schema4,
63619
+ writeResult({
63620
+ cur: schema4,
63605
63621
  sqlStatements,
63606
63622
  journal,
63607
63623
  _meta,
63608
- out,
63609
- res.breakpoints ?? false,
63610
- "introspect"
63611
- );
63624
+ outFolder: out,
63625
+ breakpoints: res.breakpoints ?? false,
63626
+ type: "introspect"
63627
+ });
63612
63628
  } else {
63613
63629
  (0, import_hanji11.render)(
63614
63630
  `[${source_default.blue(
@@ -63642,7 +63658,9 @@ var dropCommand = new import_commander.Command("drop").option("--out <out>", `Ou
63642
63658
  if (typeof options.driver !== "undefined") {
63643
63659
  bundle = options.driver === "expo";
63644
63660
  } else {
63645
- const drizzleConfig = await drizzleConfigFromFile(options.config);
63661
+ const drizzleConfig = await drizzleConfigFromFile(
63662
+ options.config
63663
+ );
63646
63664
  bundle = drizzleConfig.driver === "expo";
63647
63665
  }
63648
63666
  assertV1OutFolder(out, "{dialect}");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.8-883376b",
3
+ "version": "0.20.9-343f36c",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  ]
57
57
  },
58
58
  "dependencies": {
59
- "@drizzle-team/studio": "^0.0.37",
59
+ "@drizzle-team/studio": "^0.0.38",
60
60
  "@esbuild-kit/esm-loader": "^2.5.5",
61
61
  "camelcase": "^7.0.1",
62
62
  "chalk": "^5.2.0",
@@ -69,7 +69,6 @@
69
69
  "json-diff": "0.9.0",
70
70
  "minimatch": "^7.4.3",
71
71
  "semver": "^7.5.4",
72
- "wrangler": "^3.7.0",
73
72
  "zod": "^3.20.2"
74
73
  },
75
74
  "devDependencies": {
@@ -101,6 +100,7 @@
101
100
  "tsx": "^3.12.1",
102
101
  "typescript": "^4.9.4",
103
102
  "uvu": "^0.5.6",
103
+ "wrangler": "^3.22.1",
104
104
  "zx": "^7.2.2"
105
105
  },
106
106
  "exports": {