Skip to content

Commit f1378e2

Browse files
committed
chore: remove remaining refs to grants
1 parent e0cb68f commit f1378e2

File tree

4 files changed

+0
-128
lines changed

4 files changed

+0
-128
lines changed

src/lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export {
88
PostgresConfig,
99
PostgresExtension,
1010
PostgresFunction,
11-
PostgresGrant,
1211
PostgresPolicy,
1312
PostgresPrimaryKey,
1413
PostgresPublication,

src/lib/sql/grants.sql

Lines changed: 0 additions & 104 deletions
This file was deleted.

src/lib/sql/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const columnsSql = readFileSync(resolve(__dirname, 'columns.sql'), 'utf-8
55
export const configSql = readFileSync(resolve(__dirname, 'config.sql'), 'utf-8')
66
export const extensionsSql = readFileSync(resolve(__dirname, 'extensions.sql'), 'utf-8')
77
export const functionsSql = readFileSync(resolve(__dirname, 'functions.sql'), 'utf-8')
8-
export const grantsSql = readFileSync(resolve(__dirname, 'grants.sql'), 'utf-8')
98
export const policiesSql = readFileSync(resolve(__dirname, 'policies.sql'), 'utf-8')
109
export const primaryKeysSql = readFileSync(resolve(__dirname, 'primary_keys.sql'), 'utf-8')
1110
export const publicationsSql = readFileSync(resolve(__dirname, 'publications.sql'), 'utf-8')

src/lib/types.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,26 +110,6 @@ export const postgresFunctionCreateFunction = Type.Object({
110110
})
111111
export type PostgresFunctionCreate = Static<typeof postgresFunctionCreateFunction>
112112

113-
export const postgresGrantSchema = Type.Object({
114-
table_id: Type.Integer(),
115-
grantor: Type.String(),
116-
grantee: Type.String(),
117-
schema: Type.String(),
118-
table_name: Type.String(),
119-
privilege_type: Type.Union([
120-
Type.Literal('INSERT'),
121-
Type.Literal('SELECT'),
122-
Type.Literal('UPDATE'),
123-
Type.Literal('DELETE'),
124-
Type.Literal('TRUNCATE'),
125-
Type.Literal('REFERENCES'),
126-
Type.Literal('TRIGGER'),
127-
]),
128-
is_grantable: Type.Boolean(),
129-
with_hierarchy: Type.Boolean(),
130-
})
131-
export type PostgresGrant = Static<typeof postgresGrantSchema>
132-
133113
export const postgresPolicySchema = Type.Object({
134114
id: Type.Integer(),
135115
schema: Type.String(),
@@ -206,7 +186,6 @@ export const postgresRoleSchema = Type.Object({
206186
password: Type.String(),
207187
valid_until: Type.Union([Type.String(), Type.Null()]),
208188
config: Type.Union([Type.String(), Type.Null()]),
209-
grants: Type.Array(postgresGrantSchema),
210189
})
211190
export type PostgresRole = Static<typeof postgresRoleSchema>
212191

@@ -247,7 +226,6 @@ export const postgresTableSchema = Type.Object({
247226
dead_rows_estimate: Type.Integer(),
248227
comment: Type.Union([Type.String(), Type.Null()]),
249228
columns: Type.Array(postgresColumnSchema),
250-
grants: Type.Array(postgresGrantSchema),
251229
policies: Type.Array(postgresPolicySchema),
252230
primary_keys: Type.Array(postgresPrimaryKeySchema),
253231
relationships: Type.Array(postgresRelationshipSchema),

0 commit comments

Comments
 (0)