File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ export interface Database {
387
387
type . name ,
388
388
types ,
389
389
schemas
390
- ) } `
390
+ ) } | null `
391
391
}
392
392
return `${ JSON . stringify ( name ) } : unknown`
393
393
} ) }
Original file line number Diff line number Diff line change 1
1
2
+ CREATE TYPE public .composite_t AS (attr int );
2
3
3
4
CREATE TABLE public .category (
4
5
id serial NOT NULL PRIMARY KEY ,
5
- name text NOT NULL
6
+ name text NOT NULL ,
7
+ composite composite_t
6
8
);
7
9
8
10
-- Fake policies
Original file line number Diff line number Diff line change @@ -19,14 +19,17 @@ test('typegen', async () => {
19
19
Tables: {
20
20
category: {
21
21
Row: {
22
+ composite: Database["public"]["CompositeTypes"]["composite_t"] | null
22
23
id: number
2
B3CF
3
24
name: string
24
25
}
25
26
Insert: {
27
+ composite?: Database["public"]["CompositeTypes"]["composite_t"] | null
26
28
id?: number
27
29
name: string
28
30
}
29
31
Update: {
32
+ composite?: Database["public"]["CompositeTypes"]["composite_t"] | null
30
33
id?: number
31
34
name?: string
32
35
}
@@ -264,7 +267,9 @@ test('typegen', async () => {
264
267
user_status: "ACTIVE" | "INACTIVE"
265
268
}
266
269
CompositeTypes: {
267
- [_ in never]: never
270
+ composite_t: {
271
+ attr: number | null
272
+ }
268
273
}
269
274
}
270
275
}
You can’t perform that action at this time.
0 commit comments