@@ -3,21 +3,21 @@ import { Minimatch } from 'minimatch';
33import {
44 columnsResolver ,
55 enumsResolver ,
6- indPolicyResolver , policyResolver ,
6+ indPolicyResolver ,
7+ policyResolver ,
78 roleResolver ,
89 schemasResolver ,
9- sequencesResolver , tablesResolver ,
10- viewsResolver
10+ sequencesResolver ,
11+ tablesResolver ,
12+ viewsResolver ,
1113} from './cli/commands/migrate' ;
1214import { pgSuggestions } from './cli/commands/pgPushUtils' ;
1315import { PostgresCredentials } from './cli/validations/postgres' ;
1416import { originUUID } from './global' ;
1517import { MySqlSchema as MySQLSchemaKit } from './serializer/mysqlSchema' ;
16- import { PgSchema as PgSchemaKit , pgSchema , squashPgScheme } from './serializer/pgSchema' ;
18+ import { PgSchema as PgSchemaKit , pgSchema , Role , squashPgScheme , View } from './serializer/pgSchema' ;
1719import { fromDatabase } from './serializer/pgSerializer' ;
18- import {
19- SingleStoreSchema as SingleStoreSchemaKit
20- } from './serializer/singlestoreSchema' ;
20+ import { SingleStoreSchema as SingleStoreSchemaKit } from './serializer/singlestoreSchema' ;
2121import { SQLiteSchema as SQLiteSchemaKit } from './serializer/sqliteSchema' ;
2222import { ProxyParams } from './serializer/studio' ;
2323import type { DB , Proxy } from './utils' ;
@@ -34,7 +34,8 @@ export type DrizzlePgDB = DB & {
3434} ;
3535export type DrizzlePgDBIntrospectSchema = Omit <
3636 PgSchemaKit ,
37- | 'internal' > ;
37+ 'internal'
38+ > ;
3839
3940export const introspectPgDB = async (
4041 db : DrizzlePgDB ,
@@ -166,6 +167,16 @@ export const getPgClientPool = async (
166167} ;
167168
168169export { applyPgSnapshotsDiff } from './snapshotsDiffer' ;
170+ export type {
171+ ColumnsResolverInput ,
172+ Enum ,
173+ PolicyResolverInput ,
174+ ResolverInput ,
175+ RolesResolverInput ,
176+ Sequence ,
177+ Table ,
178+ TablePolicyResolverInput ,
179+ } from './snapshotsDiffer' ;
169180export {
170181 columnsResolver ,
171182 enumsResolver ,
@@ -179,4 +190,5 @@ export {
179190 squashPgScheme ,
180191 tablesResolver ,
181192 viewsResolver ,
182- } ;
193+ } ;
194+ export type { Role , View } ;
0 commit comments