drizzle-kit 0.23.2-cd71182 → 0.23.2-d486e9b

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.
Files changed (4) hide show
  1. package/api.js +9 -0
  2. package/api.mjs +9 -0
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -18207,6 +18207,12 @@ function fillPlaceholders(params, values) {
18207
18207
  }
18208
18208
  return values[p.name];
18209
18209
  }
18210
+ if (is(p, Param) && is(p.value, Placeholder)) {
18211
+ if (!(p.value.name in values)) {
18212
+ throw new Error(`No value for placeholder "${p.value.name}" was provided`);
18213
+ }
18214
+ return p.encoder.mapToDriverValue(values[p.value.name]);
18215
+ }
18210
18216
  return p;
18211
18217
  });
18212
18218
  }
@@ -18320,6 +18326,9 @@ var init_sql = __esm({
18320
18326
  };
18321
18327
  }
18322
18328
  if (is(chunk, Param)) {
18329
+ if (is(chunk.value, Placeholder)) {
18330
+ return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
18331
+ }
18323
18332
  const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
18324
18333
  if (is(mappedValue, _SQL)) {
18325
18334
  return this.buildQueryFromSourceParams([mappedValue], config);
package/api.mjs CHANGED
@@ -18212,6 +18212,12 @@ function fillPlaceholders(params, values) {
18212
18212
  }
18213
18213
  return values[p.name];
18214
18214
  }
18215
+ if (is(p, Param) && is(p.value, Placeholder)) {
18216
+ if (!(p.value.name in values)) {
18217
+ throw new Error(`No value for placeholder "${p.value.name}" was provided`);
18218
+ }
18219
+ return p.encoder.mapToDriverValue(values[p.value.name]);
18220
+ }
18215
18221
  return p;
18216
18222
  });
18217
18223
  }
@@ -18325,6 +18331,9 @@ var init_sql = __esm({
18325
18331
  };
18326
18332
  }
18327
18333
  if (is(chunk, Param)) {
18334
+ if (is(chunk.value, Placeholder)) {
18335
+ return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
18336
+ }
18328
18337
  const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
18329
18338
  if (is(mappedValue, _SQL)) {
18330
18339
  return this.buildQueryFromSourceParams([mappedValue], config);
package/bin.cjs CHANGED
@@ -83403,7 +83403,7 @@ init_utils2();
83403
83403
  var version2 = async () => {
83404
83404
  const { npmVersion } = await ormCoreVersions();
83405
83405
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
83406
- const envVersion = "0.23.2-cd71182";
83406
+ const envVersion = "0.23.2-d486e9b";
83407
83407
  const kitVersion = envVersion ? `v${envVersion}` : "--";
83408
83408
  const versions = `drizzle-kit: ${kitVersion}
83409
83409
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.23.2-cd71182",
3
+ "version": "0.23.2-d486e9b",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",