drizzle-kit 1.0.0-beta.1-8aabc28 → 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.
package/api.d.mts CHANGED
@@ -2621,7 +2621,7 @@ type DrizzleMySQLSnapshotJSON = MySqlSchema;
2621
2621
  type DrizzleSingleStoreSnapshotJSON = SingleStoreSchema;
2622
2622
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2623
2623
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2624
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2624
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any, any, any, any, any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2625
2625
  hasDataLoss: boolean;
2626
2626
  warnings: string[];
2627
2627
  statementsToExecute: string[];
@@ -2629,7 +2629,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
2629
2629
  }>;
2630
2630
  declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
2631
2631
  declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
2632
- declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
2632
+ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
2633
2633
  hasDataLoss: boolean;
2634
2634
  warnings: string[];
2635
2635
  statementsToExecute: string[];
@@ -2637,7 +2637,7 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
2637
2637
  }>;
2638
2638
  declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
2639
2639
  declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
2640
- declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any>, databaseName: string) => Promise<{
2640
+ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
2641
2641
  hasDataLoss: boolean;
2642
2642
  warnings: string[];
2643
2643
  statementsToExecute: string[];
package/api.d.ts CHANGED
@@ -2621,7 +2621,7 @@ type DrizzleMySQLSnapshotJSON = MySqlSchema;
2621
2621
  type DrizzleSingleStoreSnapshotJSON = SingleStoreSchema;
2622
2622
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2623
2623
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2624
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2624
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any, any, any, any, any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2625
2625
  hasDataLoss: boolean;
2626
2626
  warnings: string[];
2627
2627
  statementsToExecute: string[];
@@ -2629,7 +2629,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
2629
2629
  }>;
2630
2630
  declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
2631
2631
  declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
2632
- declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
2632
+ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
2633
2633
  hasDataLoss: boolean;
2634
2634
  warnings: string[];
2635
2635
  statementsToExecute: string[];
@@ -2637,7 +2637,7 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
2637
2637
  }>;
2638
2638
  declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
2639
2639
  declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
2640
- declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any>, databaseName: string) => Promise<{
2640
+ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
2641
2641
  hasDataLoss: boolean;
2642
2642
  warnings: string[];
2643
2643
  statementsToExecute: string[];
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-8aabc28";
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-8aabc28",
3
+ "version": "1.0.0-beta.1-bd417c1",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",