@@ -8,7 +8,6 @@ const cleanNondet = (x: any) => {
8
8
9
9
return {
10
10
data : {
11
- columns : columns . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
12
11
grants : grants . map ( ( { table_id, ...rest } : any ) => rest ) ,
13
12
policies : policies . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
14
13
primary_keys : primary_keys . map ( ( { table_id, ...rest } : any ) => rest ) ,
@@ -22,12 +21,11 @@ const cleanNondet = (x: any) => {
22
21
test ( 'list' , async ( ) => {
23
22
const res = await pgMeta . tables . list ( )
24
23
25
- const { columns , grants, policies, primary_keys, relationships, ...rest } : any = res . data ?. find (
24
+ const { grants, policies, primary_keys, relationships, ...rest } : any = res . data ?. find (
26
25
( { name } ) => name === 'users'
27
26
)
28
27
29
28
expect ( {
30
- columns : columns . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
31
29
grants : grants . map ( ( { table_id, ...rest } : any ) => rest ) ,
32
30
policies : policies . map ( ( { id, table_id, ...rest } : any ) => rest ) ,
33
31
primary_keys : primary_keys . map ( ( { table_id, ...rest } : any ) => rest ) ,
@@ -44,62 +42,6 @@ test('list', async () => {
44
42
`
45
43
Object {
46
44
"bytes": Any<Number>,
47
- "columns": Array [
48
- Object {
49
- "comment": null,
50
- "data_type": "bigint",
51
- "default_value": null,
52
- "enums": Array [],
53
- "format": "int8",
54
- "identity_generation": "BY DEFAULT",
55
- "is_generated": false,
56
- "is_identity": true,
57
- "is_nullable": false,
58
- "is_unique": false,
59
- "is_updatable": true,
60
- "name": "id",
61
- "ordinal_position": 1,
62
- "schema": "public",
63
- "table": "users",
64
- },
65
- Object {
66
- "comment": null,
67
- "data_type": "text",
68
- "default_value": null,
69
- "enums": Array [],
70
- "format": "text",
71
- "identity_generation": null,
72
- "is_generated": false,
73
- "is_identity": false,
74
- "is_nullable": true,
75
- "is_unique": false,
76
- "is_updatable": true,
77
- "name": "name",
78
- "ordinal_position": 2,
79
- "schema": "public",
80
- "table": "users",
81
- },
82
- Object {
83
- "comment": null,
84
- "data_type": "USER-DEFINED",
85
- "default_value": "'ACTIVE'::user_status",
86
- "enums": Array [
87
- "ACTIVE",
88
- "INACTIVE",
89
- ],
90
- "format": "user_status",
91
- "identity_generation": null,
92
- "is_generated": false,
93
- "is_identity": false,
94
- "is_nullable": true,
95
- "is_unique": false,
96
- "is_updatable": true,
97
- "name": "status",
98
- "ordinal_position": 3,
99
- "schema": "public",
100
- "table": "users",
101
- },
102
- ],
103
45
"comment": null,
104
46
"dead_rows_estimate": Any<Number>,
105
47
"grants": Array [
@@ -207,7 +149,6 @@ test('retrieve, create, update, delete', async () => {
207
149
Object {
208
150
"data": Object {
209
151
"bytes": 0,
210
- "columns": Array [],
211
152
"comment": "foo",
212
153
"dead_rows_estimate": 0,
213
154
"grants": Array [
@@ -298,7 +239,6 @@ test('retrieve, create, update, delete', async () => {
298
239
Object {
299
240
"data": Object {
300
241
"bytes": 0,
301
- "columns": Array [],
302
242
"comment": "foo",
303
243
"dead_rows_estimate": 0,
304
244
"grants": Array [
@@ -395,7 +335,6 @@ test('retrieve, create, update, delete', async () => {
395
335
Object {
396
336
"data": Object {
397
337
"bytes": 0,
398
- "columns": Array [],
399
338
"comment": "foo",
400
339
"dead_rows_estimate": 0,
401
340
"grants": Array [
@@ -486,7 +425,6 @@ test('retrieve, create, update, delete', async () => {
486
425
Object {
487
426
"data": Object {
488
427
"bytes": 0,
489
- "columns": Array [],
490
428
"comment": "foo",
491
429
"dead_rows_estimate": 0,
492
430
"grants": Array [
@@ -590,7 +528,6 @@ test('update with name unchanged', async () => {
590
528
Object {
591
529
"data": Object {
592
530
"bytes": 0,
593
- "columns": Array [],
594
531
"comment": null,
595
532
"dead_rows_estimate": 0,
596
533
"grants": Array [
@@ -685,7 +622,6 @@ test("allow ' in comments", async () => {
685
622
Object {
686
623
"data": Object {
687
624
"bytes": 0,
688
- "columns": Array [],
689
625
"comment": "'",
690
626
"dead_rows_estimate": 0,
691
627
"grants": Array [
@@ -793,42 +729,6 @@ test('primary keys', async () => {
793
729
Object {
794
730
"data": Object {
795
731
"bytes": Any<Number>,
796
- "columns": Array [
797
- Object {
798
- "comment": null,
799
- "data_type": "bigint",
800
- "default_value": null,
801
- "enums": Array [],
802
- "format": "int8",
803
- "identity_generation": null,
804
- "is_generated": false,
805
- "is_identity": false,
806
- "is_nullable": false,
807
- "is_unique": false,
808
- "is_updatable": true,
809
- "name": "c",
810
- "ordinal_position": 1,
811
- "schema": "public",
812
- "table": "t",
813
- },
814
- Object {
815
- "comment": null,
816
- "data_type": "text",
817
- "default_value": null,
818
- "enums": Array [],
819
- "format": "text",
820
- "identity_generation": null,
821
- "is_generated": false,
822
- "is_identity": false,
823
- "is_nullable": false,
824
- "is_unique": false,
825
- "is_updatable": true,
826
- "name": "cc",
827
- "ordinal_position": 2,
828
- "schema": "public",
829
- "table": "t",
830
- },
831
- ],
832
732
"comment": null,
833
733
"dead_rows_estimate": Any<Number>,
834
734
"grants": Array [
0 commit comments