drizzle-kit 0.20.0-e4ed989 → 0.20.0-e84b695

Sign up to get free protection for your applications and to get access to all the features.
package/utils.d.ts CHANGED
@@ -1,12 +1,8 @@
1
1
  import { Dialect } from "./schemaValidator";
2
2
  import { NamedWithSchema } from "./cli/commands/migrate";
3
- import { AnyPgTable, PgDatabase } from "drizzle-orm/pg-core";
3
+ import { PgDatabase } from "drizzle-orm/pg-core";
4
4
  import { PgSchema as PgSchemaKit } from "./serializer/pgSchema";
5
5
  import { Config, DbConnection } from ".";
6
- export { toDrizzle as drizzleSchemaPg } from "./serializer/pgSerializer";
7
- export { toDrizzle as drizzleSchemaSQLite } from "./serializer/sqliteSerializer";
8
- export { sqlitePushIntrospect } from "./cli/commands/sqliteIntrospect";
9
- export { pgPushIntrospect } from "./cli/commands/pgIntrospect";
10
6
  export declare const assertV1OutFolder: (out: string, dialect: Dialect | "{dialect}") => void;
11
7
  export type Journal = {
12
8
  version: string;
@@ -213,24 +209,4 @@ export declare const pushSchema: (imports: Record<string, unknown>, db: PgDataba
213
209
  statementsToExecute: string[];
214
210
  apply: () => Promise<void>;
215
211
  }>;
216
- export declare const prepareFrom: (connection: DbConnection) => Promise<{
217
- db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
218
- type: "pg";
219
- schema: Record<string, AnyPgTable<{}> | import("drizzle-orm").Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
220
- } | {
221
- db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
222
- type: "mysql";
223
- schema: Record<string, import("drizzle-orm/mysql-core").AnyMySqlTable<{}> | import("drizzle-orm").Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
224
- } | {
225
- db: import("./orm-extenstions/d1-driver/driver").DrizzleD1WranglerDatabase<Record<string, never>>;
226
- type: "sqlite";
227
- schema: Record<string, import("drizzle-orm").Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | import("drizzle-orm/sqlite-core").AnySQLiteTable<{}>> | undefined;
228
- } | {
229
- db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
230
- type: "sqlite";
231
- schema: Record<string, import("drizzle-orm").Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | import("drizzle-orm/sqlite-core").AnySQLiteTable<{}>> | undefined;
232
- } | {
233
- db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
234
- type: "sqlite";
235
- schema: Record<string, import("drizzle-orm").Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | import("drizzle-orm/sqlite-core").AnySQLiteTable<{}>> | undefined;
236
- }>;
212
+ export declare const prepareFrom: (connection: DbConnection) => Promise<Record<string, any>>;