drizzle-kit 1.0.0-beta.1-ec0aae1 → 1.0.0-beta.1-bd417c1

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 +14 -1
  2. package/api.mjs +14 -1
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -23945,6 +23945,9 @@ Hint: you can specify "alias" on both sides of the relation with the same value`
23945
23945
  gte,
23946
23946
  ilike,
23947
23947
  inArray,
23948
+ arrayContains,
23949
+ arrayContained,
23950
+ arrayOverlaps,
23948
23951
  isNull,
23949
23952
  isNotNull,
23950
23953
  like,
@@ -24733,6 +24736,15 @@ var init_bytea = __esm({
24733
24736
  };
24734
24737
  __publicField(PgByteaBuilder, _a58, "PgByteaBuilder");
24735
24738
  PgBytea = class extends (_b29 = PgColumn, _a59 = entityKind, _b29) {
24739
+ mapFromDriverValue(value) {
24740
+ if (Buffer.isBuffer(value))
24741
+ return value;
24742
+ if (typeof value === "string") {
24743
+ const trimmed = value.slice(2, value.length);
24744
+ return Buffer.from(trimmed, "hex");
24745
+ }
24746
+ return Buffer.from(value);
24747
+ }
24736
24748
  getSQLType() {
24737
24749
  return "bytea";
24738
24750
  }
@@ -27552,7 +27564,8 @@ var init_dialect = __esm({
27552
27564
  case "PgBigSerial64":
27553
27565
  case "PgTimestampString":
27554
27566
  case "PgGeometry":
27555
- case "PgGeometryObject": {
27567
+ case "PgGeometryObject":
27568
+ case "PgBytea": {
27556
27569
  return sql`${name2}::text${sql.raw(arrVal).if(arrVal)} as ${sql.identifier(key)}`;
27557
27570
  }
27558
27571
  default: {
package/api.mjs CHANGED
@@ -23950,6 +23950,9 @@ Hint: you can specify "alias" on both sides of the relation with the same value`
23950
23950
  gte,
23951
23951
  ilike,
23952
23952
  inArray,
23953
+ arrayContains,
23954
+ arrayContained,
23955
+ arrayOverlaps,
23953
23956
  isNull,
23954
23957
  isNotNull,
23955
23958
  like,
@@ -24738,6 +24741,15 @@ var init_bytea = __esm({
24738
24741
  };
24739
24742
  __publicField(PgByteaBuilder, _a58, "PgByteaBuilder");
24740
24743
  PgBytea = class extends (_b29 = PgColumn, _a59 = entityKind, _b29) {
24744
+ mapFromDriverValue(value) {
24745
+ if (Buffer.isBuffer(value))
24746
+ return value;
24747
+ if (typeof value === "string") {
24748
+ const trimmed = value.slice(2, value.length);
24749
+ return Buffer.from(trimmed, "hex");
24750
+ }
24751
+ return Buffer.from(value);
24752
+ }
24741
24753
  getSQLType() {
24742
24754
  return "bytea";
24743
24755
  }
@@ -27557,7 +27569,8 @@ var init_dialect = __esm({
27557
27569
  case "PgBigSerial64":
27558
27570
  case "PgTimestampString":
27559
27571
  case "PgGeometry":
27560
- case "PgGeometryObject": {
27572
+ case "PgGeometryObject":
27573
+ case "PgBytea": {
27561
27574
  return sql`${name2}::text${sql.raw(arrVal).if(arrVal)} as ${sql.identifier(key)}`;
27562
27575
  }
27563
27576
  default: {
package/bin.cjs CHANGED
@@ -92729,7 +92729,7 @@ init_utils5();
92729
92729
  var version2 = async () => {
92730
92730
  const { npmVersion } = await ormCoreVersions();
92731
92731
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
92732
- const envVersion = "1.0.0-beta.1-ec0aae1";
92732
+ const envVersion = "1.0.0-beta.1-bd417c1";
92733
92733
  const kitVersion = envVersion ? `v${envVersion}` : "--";
92734
92734
  const versions = `drizzle-kit: ${kitVersion}
92735
92735
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.1-ec0aae1",
3
+ "version": "1.0.0-beta.1-bd417c1",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",