We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1197f10 commit 511b735Copy full SHA for 511b735
src/lib/sql/columns.sql
@@ -33,6 +33,7 @@ SELECT
33
WHEN 'd' THEN 'BY DEFAULT'
34
ELSE NULL
35
END AS identity_generation,
36
+ a.attgenerated IN ('s') AS is_generated,
37
NOT (
38
a.attnotnull
39
OR t.typtype = 'd' AND t.typnotnull
src/lib/types.ts
@@ -33,6 +33,7 @@ export const postgresColumnSchema = Type.Object({
Type.Literal('BY DEFAULT'),
Type.Null(),
]),
+ is_generated: Type.Boolean(),
is_nullable: Type.Boolean(),
is_updatable: Type.Boolean(),
is_unique: Type.Boolean(),
0 commit comments