@@ -22,71 +22,71 @@ test('list', async () => {
2222 const res = await pgMeta . foreignTables . list ( )
2323 expect ( cleanNondetFromResponse ( res ) . data ?. find ( ( { name } ) => name === 'foreign_table' ) )
2424 . toMatchInlineSnapshot ( `
25- {
26- "columns": [
27- {
28- "check": null,
29- "comment": null,
30- "data_type": "bigint",
31- "default_value": null,
32- "enums": [],
33- "format": "int8",
34- "identity_generation": null,
35- "is_generated": false,
36- "is_identity": false,
37- "is_nullable": true ,
38- "is_unique": false,
39- "is_updatable": true,
40- "name": "id",
41- "ordinal_position": 1,
42- "schema": "public",
43- "table": "foreign_table",
44- },
45- {
46- "check": null,
47- "comment": null,
48- "data_type": "text",
49- "default_value": null,
50- "enums": [],
51- "format": "text",
52- "identity_generation": null,
53- "is_generated": false,
54- "is_identity": false,
55- "is_nullable": true,
56- "is_unique": false,
57- "is_updatable": true,
58- "name": "name",
59- "ordinal_position": 2,
60- "schema": "public",
61- "table": "foreign_table",
62- },
63- {
64- "check": null,
65- "comment": null,
66- "data_type": "USER-DEFINED",
67- "default_value": null,
68- "enums": [
69- "ACTIVE",
70- "INACTIVE",
71- ],
72- "format": "user_status",
73- "identity_generation": null,
74- "is_generated": false,
75- "is_identity": false,
76- "is_nullable": true,
77- "is_unique": false,
78- "is_updatable": true,
79- "name": "status",
80- "ordinal_position": 3,
81- "schema": "public",
82- "table": "foreign_table",
83- },
84- ],
85- "comment": null,
86- "name": "foreign_table",
87- "schema": "public",
88- }
89- ` )
25+ {
26+ "columns": [
27+ {
28+ "check": null,
29+ "comment": null,
30+ "data_type": "bigint",
31+ "default_value": null,
32+ "enums": [],
33+ "format": "int8",
34+ "identity_generation": null,
35+ "is_generated": false,
36+ "is_identity": false,
37+ "is_nullable": false ,
38+ "is_unique": false,
39+ "is_updatable": true,
40+ "name": "id",
41+ "ordinal_position": 1,
42+ "schema": "public",
43+ "table": "foreign_table",
44+ },
45+ {
46+ "check": null,
47+ "comment": null,
48+ "data_type": "text",
49+ "default_value": null,
50+ "enums": [],
51+ "format": "text",
52+ "identity_generation": null,
53+ "is_generated": false,
54+ "is_identity": false,
55+ "is_nullable": true,
56+ "is_unique": false,
57+ "is_updatable": true,
58+ "name": "name",
59+ "ordinal_position": 2,
60+ "schema": "public",
61+ "table": "foreign_table",
62+ },
63+ {
64+ "check": null,
65+ "comment": null,
66+ "data_type": "USER-DEFINED",
67+ "default_value": null,
68+ "enums": [
69+ "ACTIVE",
70+ "INACTIVE",
71+ ],
72+ "format": "user_status",
73+ "identity_generation": null,
74+ "is_generated": false,
75+ "is_identity": false,
76+ "is_nullable": true,
77+ "is_unique": false,
78+ "is_updatable": true,
79+ "name": "status",
80+ "ordinal_position": 3,
81+ "schema": "public",
82+ "table": "foreign_table",
83+ },
84+ ],
85+ "comment": null,
86+ "name": "foreign_table",
87+ "schema": "public",
88+ }
89+ ` )
9090} )
9191
9292test ( 'list without columns' , async ( ) => {
@@ -117,7 +117,7 @@ test('retrieve', async () => {
117117 "identity_generation": null,
118118 "is_generated": false,
119119 "is_identity": false,
120- "is_nullable": true ,
120+ "is_nullable": false ,
121121 "is_unique": false,
122122 "is_updatable": true,
123123 "name": "id",
0 commit comments