Skip to content

Commit c471f37

Browse files
authored
Merge pull request #8 from replit/jt/devprod/export_types_0.31.8
devprod/export types @0.31.8
2 parents f38f6f3 + ebb00f5 commit c471f37

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

drizzle-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@drizzle-team/drizzle-kit",
3-
"version": "0.31.7",
3+
"version": "0.31.8",
44
"homepage": "https://orm.drizzle.team",
55
"keywords": [
66
"drizzle",

drizzle-kit/src/api.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ import { Minimatch } from 'minimatch';
33
import {
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';
1214
import { pgSuggestions } from './cli/commands/pgPushUtils';
1315
import { PostgresCredentials } from './cli/validations/postgres';
1416
import { originUUID } from './global';
1517
import { 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';
1719
import { fromDatabase } from './serializer/pgSerializer';
18-
import {
19-
SingleStoreSchema as SingleStoreSchemaKit
20-
} from './serializer/singlestoreSchema';
20+
import { SingleStoreSchema as SingleStoreSchemaKit } from './serializer/singlestoreSchema';
2121
import { SQLiteSchema as SQLiteSchemaKit } from './serializer/sqliteSchema';
2222
import { ProxyParams } from './serializer/studio';
2323
import type { DB, Proxy } from './utils';
@@ -34,7 +34,8 @@ export type DrizzlePgDB = DB & {
3434
};
3535
export type DrizzlePgDBIntrospectSchema = Omit<
3636
PgSchemaKit,
37-
| 'internal'>;
37+
'internal'
38+
>;
3839

3940
export const introspectPgDB = async (
4041
db: DrizzlePgDB,
@@ -166,6 +167,16 @@ export const getPgClientPool = async (
166167
};
167168

168169
export { 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';
169180
export {
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

Comments
 (0)