@@ -4,8 +4,7 @@ import { pgMeta } from './utils'
44test ( 'list' , async ( ) => {
55 const res = await pgMeta . views . list ( )
66 expect ( res . data ?. find ( ( { name } ) => name === 'todos_view' ) ) . toMatchInlineSnapshot (
7- { id : expect . any ( Number ) } ,
8- `
7+ { id : expect . any ( Number ) } , `
98 {
109 "columns": [
1110 {
@@ -15,7 +14,7 @@ test('list', async () => {
1514 "default_value": null,
1615 "enums": [],
1716 "format": "int8",
18- "id": "16423 .1",
17+ "id": "16424 .1",
1918 "identity_generation": null,
2019 "is_generated": false,
2120 "is_identity": false,
@@ -26,7 +25,7 @@ test('list', async () => {
2625 "ordinal_position": 1,
2726 "schema": "public",
2827 "table": "todos_view",
29- "table_id": 16423 ,
28+ "table_id": 16424 ,
3029 },
3130 {
3231 "check": null,
@@ -35,7 +34,7 @@ test('list', async () => {
3534 "default_value": null,
3635 "enums": [],
3736 "format": "text",
38- "id": "16423 .2",
37+ "id": "16424 .2",
3938 "identity_generation": null,
4039 "is_generated": false,
4140 "is_identity": false,
@@ -46,7 +45,7 @@ test('list', async () => {
4645 "ordinal_position": 2,
4746 "schema": "public",
4847 "table": "todos_view",
49- "table_id": 16423 ,
48+ "table_id": 16424 ,
5049 },
5150 {
5251 "check": null,
@@ -55,7 +54,7 @@ test('list', async () => {
5554 "default_value": null,
5655 "enums": [],
5756 "format": "int8",
58- "id": "16423 .3",
57+ "id": "16424 .3",
5958 "identity_generation": null,
6059 "is_generated": false,
6160 "is_identity": false,
@@ -66,7 +65,7 @@ test('list', async () => {
6665 "ordinal_position": 3,
6766 "schema": "public",
6867 "table": "todos_view",
69- "table_id": 16423 ,
68+ "table_id": 16424 ,
7069 },
7170 ],
7271 "comment": null,
@@ -75,8 +74,7 @@ test('list', async () => {
7574 "name": "todos_view",
7675 "schema": "public",
7776 }
78- `
79- )
77+ ` )
8078} )
8179
8280test ( 'list without columns' , async ( ) => {
@@ -100,8 +98,7 @@ test('list without columns', async () => {
10098test ( 'retrieve' , async ( ) => {
10199 const res = await pgMeta . views . retrieve ( { schema : 'public' , name : 'todos_view' } )
102100 expect ( res ) . toMatchInlineSnapshot (
103- { data : { id : expect . any ( Number ) } } ,
104- `
101+ { data : { id : expect . any ( Number ) } } , `
105102 {
106103 "data": {
107104 "columns": [
@@ -112,7 +109,7 @@ test('retrieve', async () => {
112109 "default_value": null,
113110 "enums": [],
114111 "format": "int8",
115- "id": "16423 .1",
112+ "id": "16424 .1",
116113 "identity_generation": null,
117114 "is_generated": false,
118115 "is_identity": false,
@@ -123,7 +120,7 @@ test('retrieve', async () => {
123120 "ordinal_position": 1,
124121 "schema": "public",
125122 "table": "todos_view",
126- "table_id": 16423 ,
123+ "table_id": 16424 ,
127124 },
128125 {
129126 "check": null,
@@ -132,7 +129,7 @@ test('retrieve', async () => {
132129 "default_value": null,
133130 "enums": [],
134131 "format": "text",
135- "id": "16423 .2",
132+ "id": "16424 .2",
136133 "identity_generation": null,
137134 "is_generated": false,
138135 "is_identity": false,
@@ -143,7 +140,7 @@ test('retrieve', async () => {
143140 "ordinal_position": 2,
144141 "schema": "public",
145142 "table": "todos_view",
146- "table_id": 16423 ,
143+ "table_id": 16424 ,
147144 },
148145 {
149146 "check": null,
@@ -152,7 +149,7 @@ test('retrieve', async () => {
152149 "default_value": null,
153150 "enums": [],
154151 "format": "int8",
155- "id": "16423 .3",
152+ "id": "16424 .3",
156153 "identity_generation": null,
157154 "is_generated": false,
158155 "is_identity": false,
@@ -163,7 +160,7 @@ test('retrieve', async () => {
163160 "ordinal_position": 3,
164161 "schema": "public",
165162 "table": "todos_view",
166- "table_id": 16423 ,
163+ "table_id": 16424 ,
167164 },
168165 ],
169166 "comment": null,
@@ -174,6 +171,5 @@ test('retrieve', async () => {
174171 },
175172 "error": null,
176173 }
177- `
178- )
174+ ` )
179175} )
0 commit comments