drizzle-kit 0.20.0-029419a → 0.20.0-13160ca

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import type { PgConfigIntrospect } from "../validations/pg";
2
2
  import type { DrizzleDbClient } from "src/drivers";
3
+ export declare const pgSchemas: (client: DrizzleDbClient) => Promise<string[]>;
3
4
  export declare const pgPushIntrospect: (connection: {
4
5
  client: DrizzleDbClient;
5
6
  }, filters: string[], schemaFilters: string[]) => Promise<{
@@ -1,7 +1,7 @@
1
- import { SQLiteCliConfig, SQLiteConnectionConfig } from "./sqliteUtils";
2
- import { BetterSqlite, DrizzleDbClient } from "src/drivers";
1
+ import type { SQLiteCliConfig, SQLiteConnectionConfig } from "./sqliteUtils";
2
+ import type { DrizzleDbClient } from "../../drivers";
3
3
  export declare const connectToSQLite: (config: SQLiteConnectionConfig) => Promise<{
4
- client: BetterSqlite;
4
+ client: import("../../drivers").BetterSqlite;
5
5
  } | {
6
6
  client?: undefined;
7
7
  }>;
package/cli/utils.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare const assertExists: (it?: any) => void;
2
+ export declare const assertPackages: (...pkgs: string[]) => Promise<void>;
3
+ export declare const assertEitherPackage: (...pkgs: string[]) => Promise<string[]>;
4
+ export declare const assertOrmCoreVersion: () => Promise<void>;
5
+ export declare const ormCoreVersions: () => Promise<{
6
+ compatibilityVersion: number;
7
+ npmVersion: any;
8
+ } | {
9
+ compatibilityVersion?: undefined;
10
+ npmVersion?: undefined;
11
+ }>;
package/cli/views.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Prompt, TaskView } from "hanji";
2
- import { CommonSchema } from "src/schemaValidator";
3
- import { Named } from "./commands/migrate";
2
+ import type { CommonSchema } from "src/schemaValidator";
3
+ import type { Named } from "./commands/migrate";
4
4
  export declare const warning: (msg: string) => void;
5
5
  export declare const err: (msg: string) => void;
6
6
  export declare const info: (msg: string, greyMsg?: string) => string;
@@ -1,6 +1,6 @@
1
- import { Client } from "@libsql/client";
2
- import { PgDatabase } from "drizzle-orm/pg-core";
3
- import { Client as PgClient } from "pg";
1
+ import type { Client } from "@libsql/client";
2
+ import type { PgDatabase } from "drizzle-orm/pg-core";
3
+ import type { Client as PgClient } from "pg";
4
4
  export declare abstract class DrizzleDbClient<T = any> {
5
5
  protected db: T;
6
6
  constructor(db: T);