prostgles-server 2.0.173 → 2.0.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/dist/AuthHandler.d.ts +13 -12
- package/dist/AuthHandler.d.ts.map +1 -1
- package/dist/AuthHandler.js +5 -2
- package/dist/AuthHandler.js.map +1 -1
- package/dist/DBSchemaBuilder.d.ts +11 -0
- package/dist/DBSchemaBuilder.d.ts.map +1 -0
- package/dist/DBSchemaBuilder.js +56 -0
- package/dist/DBSchemaBuilder.js.map +1 -0
- package/dist/DboBuilder.d.ts +23 -22
- package/dist/DboBuilder.d.ts.map +1 -1
- package/dist/DboBuilder.js +36 -61
- package/dist/DboBuilder.js.map +1 -1
- package/dist/FileManager.d.ts +2 -2
- package/dist/FileManager.d.ts.map +1 -1
- package/dist/Filtering.d.ts.map +1 -1
- package/dist/Filtering.js.map +1 -1
- package/dist/Prostgles.d.ts +25 -257
- package/dist/Prostgles.d.ts.map +1 -1
- package/dist/Prostgles.js +12 -376
- package/dist/Prostgles.js.map +1 -1
- package/dist/PubSubManager.d.ts +6 -5
- package/dist/PubSubManager.d.ts.map +1 -1
- package/dist/PubSubManager.js.map +1 -1
- package/dist/PublishParser.d.ts +262 -0
- package/dist/PublishParser.d.ts.map +1 -0
- package/dist/PublishParser.js +391 -0
- package/dist/PublishParser.js.map +1 -0
- package/dist/QueryBuilder.d.ts +20 -4
- package/dist/QueryBuilder.d.ts.map +1 -1
- package/dist/QueryBuilder.js.map +1 -1
- package/dist/TableConfig.d.ts +6 -3
- package/dist/TableConfig.d.ts.map +1 -1
- package/dist/TableConfig.js +28 -1
- package/dist/TableConfig.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/lib/AuthHandler.ts +25 -19
- package/lib/DBSchemaBuilder.ts +91 -0
- package/lib/DboBuilder.ts +84 -98
- package/lib/FileManager.ts +2 -2
- package/lib/Filtering.ts +3 -3
- package/lib/Prostgles.ts +33 -704
- package/lib/PubSubManager.ts +6 -5
- package/lib/PublishParser.ts +723 -0
- package/lib/QueryBuilder.ts +6 -5
- package/lib/TableConfig.ts +36 -5
- package/lib/index.ts +4 -4
- package/package.json +2 -2
- package/tests/client/PID.txt +1 -1
- package/tests/client/index.js +2 -2
- package/tests/client/index.ts +2 -2
- package/tests/client/package-lock.json +15 -15
- package/tests/client/package.json +1 -1
- package/tests/client_only_queries.js +24 -1
- package/tests/client_only_queries.ts +23 -1
- package/tests/isomorphic_queries.js +3 -0
- package/tests/isomorphic_queries.ts +5 -2
- package/tests/server/DBoGenerated.d.ts +428 -286
- package/tests/server/index.js +1 -14
- package/tests/server/index.ts +5 -19
- package/tests/server/package-lock.json +3 -3
|
@@ -1,296 +1,438 @@
|
|
|
1
1
|
/* This file was generated by Prostgles
|
|
2
2
|
*/
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/* SCHEMA DEFINITON. Table names have been altered to work with Typescript */
|
|
5
|
+
/* DBO Definition. Isomorphic */
|
|
6
|
+
undefined tx: (t: TxCB) => Promise<any | void> ;
|
|
7
|
+
};
|
|
5
8
|
|
|
6
|
-
import { ViewHandler, TableHandler, JoinMaker } from "prostgles-types";
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
type DBSchema = {
|
|
11
|
+
"\"*\"": {
|
|
12
|
+
is_view: false;
|
|
13
|
+
select: true
|
|
14
|
+
insert: true
|
|
15
|
+
update: true
|
|
16
|
+
delete: true
|
|
17
|
+
dataTypes: { "\"*\"": string | null; id: number };
|
|
18
|
+
columns: {
|
|
19
|
+
"\"*\"": { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
11
20
|
|
|
21
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; }
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
"*": {
|
|
25
|
+
is_view: false;
|
|
26
|
+
select: true
|
|
27
|
+
insert: true
|
|
28
|
+
update: true
|
|
29
|
+
delete: true
|
|
30
|
+
dataTypes: { "*": string | null; id: number };
|
|
31
|
+
columns: {
|
|
32
|
+
"*": { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
12
33
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
name?: string ;
|
|
26
|
-
public?: string | null ;
|
|
27
|
-
}
|
|
28
|
-
export type Geography_columns = {
|
|
29
|
-
coord_dimension?: number | null ;
|
|
30
|
-
f_geography_column?: string | null ;
|
|
31
|
-
f_table_catalog?: string | null ;
|
|
32
|
-
f_table_name?: string | null ;
|
|
33
|
-
f_table_schema?: string | null ;
|
|
34
|
-
srid?: number | null ;
|
|
35
|
-
type?: string | null ;
|
|
36
|
-
}
|
|
37
|
-
export type Geometry_columns = {
|
|
38
|
-
coord_dimension?: number | null ;
|
|
39
|
-
f_geometry_column?: string | null ;
|
|
40
|
-
f_table_catalog?: string | null ;
|
|
41
|
-
f_table_name?: string | null ;
|
|
42
|
-
f_table_schema?: string | null ;
|
|
43
|
-
srid?: number | null ;
|
|
44
|
-
type?: string | null ;
|
|
45
|
-
}
|
|
46
|
-
export type Insert_rules = {
|
|
47
|
-
added?: Date | null ;
|
|
48
|
-
id?: number ;
|
|
49
|
-
name?: string | null ;
|
|
50
|
-
}
|
|
51
|
-
export type Items = {
|
|
52
|
-
h?: Array<string> | null ;
|
|
53
|
-
id?: number ;
|
|
54
|
-
name?: string | null ;
|
|
55
|
-
}
|
|
56
|
-
export type Items2 = {
|
|
57
|
-
hh?: Array<string> | null ;
|
|
58
|
-
id?: number ;
|
|
59
|
-
items_id?: number | null ;
|
|
60
|
-
name?: string | null ;
|
|
61
|
-
}
|
|
62
|
-
export type Items3 = {
|
|
63
|
-
h?: Array<string> | null ;
|
|
64
|
-
id?: number ;
|
|
65
|
-
name?: string | null ;
|
|
66
|
-
}
|
|
67
|
-
export type Items4 = {
|
|
68
|
-
added?: Date | null ;
|
|
69
|
-
id?: number ;
|
|
70
|
-
name?: string ;
|
|
71
|
-
public?: string | null ;
|
|
72
|
-
}
|
|
73
|
-
export type Items4_pub = {
|
|
74
|
-
added?: Date | null ;
|
|
75
|
-
id?: number ;
|
|
76
|
-
name?: string ;
|
|
77
|
-
public?: string | null ;
|
|
78
|
-
}
|
|
79
|
-
export type Items_with_media = {
|
|
80
|
-
id?: number ;
|
|
81
|
-
name?: string | null ;
|
|
82
|
-
}
|
|
83
|
-
export type Items_with_one_media = {
|
|
84
|
-
id?: number ;
|
|
85
|
-
name?: string | null ;
|
|
86
|
-
}
|
|
87
|
-
export type Lookup_col1 = {
|
|
88
|
-
id?: string ;
|
|
89
|
-
}
|
|
90
|
-
export type Media = {
|
|
91
|
-
content_type?: string ;
|
|
92
|
-
description?: string | null ;
|
|
93
|
-
etag?: string | null ;
|
|
94
|
-
extension?: string ;
|
|
95
|
-
id?: string ;
|
|
96
|
-
name?: string ;
|
|
97
|
-
original_name?: string ;
|
|
98
|
-
s3_url?: string | null ;
|
|
99
|
-
signed_url?: string | null ;
|
|
100
|
-
signed_url_expires?: number | null ;
|
|
101
|
-
url?: string ;
|
|
102
|
-
}
|
|
103
|
-
export type Obj_table = {
|
|
104
|
-
id?: number ;
|
|
105
|
-
obj?: any | null ;
|
|
106
|
-
}
|
|
107
|
-
export type Planes = {
|
|
108
|
-
flight_number?: string | null ;
|
|
109
|
-
id?: number ;
|
|
110
|
-
last_updated?: number ;
|
|
111
|
-
x?: number | null ;
|
|
112
|
-
y?: number | null ;
|
|
113
|
-
}
|
|
114
|
-
export type Prostgles_lookup_media_items_with_media = {
|
|
115
|
-
foreign_id?: number | null ;
|
|
116
|
-
media_id?: string ;
|
|
117
|
-
}
|
|
118
|
-
export type Prostgles_lookup_media_items_with_one_media = {
|
|
119
|
-
foreign_id?: number ;
|
|
120
|
-
media_id?: string ;
|
|
121
|
-
}
|
|
122
|
-
export type Shapes = {
|
|
123
|
-
geog?: any | null ;
|
|
124
|
-
geom?: any | null ;
|
|
125
|
-
id?: string ;
|
|
126
|
-
}
|
|
127
|
-
export type Spatial_ref_sys = {
|
|
128
|
-
auth_name?: string | null ;
|
|
129
|
-
auth_srid?: number | null ;
|
|
130
|
-
proj4text?: string | null ;
|
|
131
|
-
srid?: number ;
|
|
132
|
-
srtext?: string | null ;
|
|
133
|
-
}
|
|
134
|
-
export type Tr1 = {
|
|
135
|
-
id?: number ;
|
|
136
|
-
t1?: string | null ;
|
|
137
|
-
}
|
|
138
|
-
export type Tr2 = {
|
|
139
|
-
id?: number ;
|
|
140
|
-
t1?: string | null ;
|
|
141
|
-
t2?: string | null ;
|
|
142
|
-
tr1_id?: number | null ;
|
|
143
|
-
}
|
|
144
|
-
export type Uuid_text = {
|
|
145
|
-
col1?: string | null ;
|
|
146
|
-
col2?: string | null ;
|
|
147
|
-
id?: string ;
|
|
148
|
-
name?: string | null ;
|
|
149
|
-
}
|
|
150
|
-
export type V_items = {
|
|
151
|
-
id?: number | null ;
|
|
152
|
-
name?: string | null ;
|
|
153
|
-
}
|
|
154
|
-
export type Various = {
|
|
155
|
-
added?: Date | null ;
|
|
156
|
-
h?: Array<string> | null ;
|
|
157
|
-
id?: number ;
|
|
158
|
-
jsn?: any | null ;
|
|
159
|
-
name?: string | null ;
|
|
160
|
-
tsv?: any | null ;
|
|
161
|
-
}
|
|
34
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; }
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
ex_j_ins: {
|
|
38
|
+
is_view: false;
|
|
39
|
+
select: true
|
|
40
|
+
insert: true
|
|
41
|
+
update: true
|
|
42
|
+
delete: true
|
|
43
|
+
dataTypes: { added: Date | null; id: number; name: string; public: string | null };
|
|
44
|
+
columns: {
|
|
45
|
+
added: { type: Date; is_nullable: true; is_nullable_or_has_default: true; };
|
|
162
46
|
|
|
163
|
-
|
|
164
|
-
items: JoinMaker<Items>;
|
|
165
|
-
items2: JoinMaker<Items2>;
|
|
166
|
-
items3: JoinMaker<Items3>;
|
|
167
|
-
items_with_media: JoinMaker<Items_with_media>;
|
|
168
|
-
items_with_one_media: JoinMaker<Items_with_one_media>;
|
|
169
|
-
lookup_col1: JoinMaker<Lookup_col1>;
|
|
170
|
-
media: JoinMaker<Media>;
|
|
171
|
-
prostgles_lookup_media_items_with_media: JoinMaker<Prostgles_lookup_media_items_with_media>;
|
|
172
|
-
prostgles_lookup_media_items_with_one_media: JoinMaker<Prostgles_lookup_media_items_with_one_media>;
|
|
173
|
-
tr1: JoinMaker<Tr1>;
|
|
174
|
-
tr2: JoinMaker<Tr2>;
|
|
175
|
-
uuid_text: JoinMaker<Uuid_text>;
|
|
176
|
-
};
|
|
47
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
177
48
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
geography_columns:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
49
|
+
name: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
50
|
+
|
|
51
|
+
public: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
geography_columns: {
|
|
55
|
+
is_view: true;
|
|
56
|
+
select: true
|
|
57
|
+
insert: true
|
|
58
|
+
update: true
|
|
59
|
+
delete: true
|
|
60
|
+
dataTypes: { coord_dimension: number | null; f_geography_column: string | null; f_table_catalog: string | null; f_table_name: string | null; f_table_schema: string | null; srid: number | null; type: string | null };
|
|
61
|
+
columns: {
|
|
62
|
+
coord_dimension: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
63
|
+
|
|
64
|
+
f_geography_column: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
65
|
+
|
|
66
|
+
f_table_catalog: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
67
|
+
|
|
68
|
+
f_table_name: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
69
|
+
|
|
70
|
+
f_table_schema: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
71
|
+
|
|
72
|
+
srid: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
73
|
+
|
|
74
|
+
type: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
geometry_columns: {
|
|
78
|
+
is_view: true;
|
|
79
|
+
select: true
|
|
80
|
+
insert: true
|
|
81
|
+
update: true
|
|
82
|
+
delete: true
|
|
83
|
+
dataTypes: { coord_dimension: number | null; f_geometry_column: string | null; f_table_catalog: string | null; f_table_name: string | null; f_table_schema: string | null; srid: number | null; type: string | null };
|
|
84
|
+
columns: {
|
|
85
|
+
coord_dimension: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
86
|
+
|
|
87
|
+
f_geometry_column: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
88
|
+
|
|
89
|
+
f_table_catalog: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
90
|
+
|
|
91
|
+
f_table_name: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
92
|
+
|
|
93
|
+
f_table_schema: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
94
|
+
|
|
95
|
+
srid: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
96
|
+
|
|
97
|
+
type: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
insert_rules: {
|
|
101
|
+
is_view: false;
|
|
102
|
+
select: true
|
|
103
|
+
insert: true
|
|
104
|
+
update: true
|
|
105
|
+
delete: true
|
|
106
|
+
dataTypes: { added: Date | null; id: number; name: string | null };
|
|
107
|
+
columns: {
|
|
108
|
+
added: { type: Date; is_nullable: true; is_nullable_or_has_default: true; };
|
|
109
|
+
|
|
110
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
111
|
+
|
|
112
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
items: {
|
|
116
|
+
is_view: false;
|
|
117
|
+
select: true
|
|
118
|
+
insert: true
|
|
119
|
+
update: true
|
|
120
|
+
delete: true
|
|
121
|
+
dataTypes: { h: Array<string> | null; id: number; name: string | null };
|
|
122
|
+
columns: {
|
|
123
|
+
h: { type: Array<string>; is_nullable: true; is_nullable_or_has_default: true; };
|
|
124
|
+
|
|
125
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
126
|
+
|
|
127
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
items_with_media: {
|
|
131
|
+
is_view: false;
|
|
132
|
+
select: true
|
|
133
|
+
insert: true
|
|
134
|
+
update: true
|
|
135
|
+
delete: true
|
|
136
|
+
dataTypes: { id: number; name: string | null };
|
|
137
|
+
columns: {
|
|
138
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
212
139
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
140
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
items_with_one_media: {
|
|
144
|
+
is_view: false;
|
|
145
|
+
select: true
|
|
146
|
+
insert: true
|
|
147
|
+
update: true
|
|
148
|
+
delete: true
|
|
149
|
+
dataTypes: { id: number; name: string | null };
|
|
150
|
+
columns: {
|
|
151
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
152
|
+
|
|
153
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
items2: {
|
|
157
|
+
is_view: false;
|
|
158
|
+
select: true
|
|
159
|
+
insert: true
|
|
160
|
+
update: true
|
|
161
|
+
delete: true
|
|
162
|
+
dataTypes: { hh: Array<string> | null; id: number; items_id: number | null; name: string | null };
|
|
163
|
+
columns: {
|
|
164
|
+
hh: { type: Array<string>; is_nullable: true; is_nullable_or_has_default: true; };
|
|
165
|
+
|
|
166
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
167
|
+
|
|
168
|
+
items_id: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
169
|
+
|
|
170
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
items3: {
|
|
174
|
+
is_view: false;
|
|
175
|
+
select: true
|
|
176
|
+
insert: true
|
|
177
|
+
update: true
|
|
178
|
+
delete: true
|
|
179
|
+
dataTypes: { h: Array<string> | null; id: number; name: string | null };
|
|
180
|
+
columns: {
|
|
181
|
+
h: { type: Array<string>; is_nullable: true; is_nullable_or_has_default: true; };
|
|
182
|
+
|
|
183
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
184
|
+
|
|
185
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
items4: {
|
|
189
|
+
is_view: false;
|
|
190
|
+
select: true
|
|
191
|
+
insert: true
|
|
192
|
+
update: true
|
|
193
|
+
delete: true
|
|
194
|
+
dataTypes: { added: Date | null; id: number; name: string; public: string | null };
|
|
195
|
+
columns: {
|
|
196
|
+
added: { type: Date; is_nullable: true; is_nullable_or_has_default: true; };
|
|
197
|
+
|
|
198
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
199
|
+
|
|
200
|
+
name: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
201
|
+
|
|
202
|
+
public: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
items4_pub: {
|
|
206
|
+
is_view: false;
|
|
207
|
+
select: true
|
|
208
|
+
insert: true
|
|
209
|
+
update: true
|
|
210
|
+
delete: true
|
|
211
|
+
dataTypes: { added: Date | null; id: number; name: string; public: string | null };
|
|
212
|
+
columns: {
|
|
213
|
+
added: { type: Date; is_nullable: true; is_nullable_or_has_default: true; };
|
|
214
|
+
|
|
215
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
216
|
+
|
|
217
|
+
name: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
218
|
+
|
|
219
|
+
public: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
lookup_col1: {
|
|
223
|
+
is_view: false;
|
|
224
|
+
select: true
|
|
225
|
+
insert: true
|
|
226
|
+
update: true
|
|
227
|
+
delete: true
|
|
228
|
+
dataTypes: { id: string };
|
|
229
|
+
columns: {
|
|
230
|
+
id: { type: string; is_nullable: false; is_nullable_or_has_default: false; }
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
media: {
|
|
234
|
+
is_view: false;
|
|
235
|
+
select: true
|
|
236
|
+
insert: true
|
|
237
|
+
update: true
|
|
238
|
+
delete: true
|
|
239
|
+
dataTypes: { content_type: string; description: string | null; etag: string | null; extension: string; id: string; name: string; original_name: string; s3_url: string | null; signed_url: string | null; signed_url_expires: number | null; url: string };
|
|
240
|
+
columns: {
|
|
241
|
+
content_type: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
242
|
+
|
|
243
|
+
description: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
244
|
+
|
|
245
|
+
etag: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
246
|
+
|
|
247
|
+
extension: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
248
|
+
|
|
249
|
+
id: { type: string; is_nullable: false; is_nullable_or_has_default: true; };
|
|
250
|
+
|
|
251
|
+
name: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
252
|
+
|
|
253
|
+
original_name: { type: string; is_nullable: false; is_nullable_or_has_default: false; };
|
|
254
|
+
|
|
255
|
+
s3_url: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
256
|
+
|
|
257
|
+
signed_url: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
258
|
+
|
|
259
|
+
signed_url_expires: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
260
|
+
|
|
261
|
+
url: { type: string; is_nullable: false; is_nullable_or_has_default: false; }
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
obj_table: {
|
|
265
|
+
is_view: false;
|
|
266
|
+
select: true
|
|
267
|
+
insert: true
|
|
268
|
+
update: true
|
|
269
|
+
delete: true
|
|
270
|
+
dataTypes: { id: number; obj: any | null };
|
|
271
|
+
columns: {
|
|
272
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
273
|
+
|
|
274
|
+
obj: { type: any; is_nullable: true; is_nullable_or_has_default: true; }
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
planes: {
|
|
278
|
+
is_view: false;
|
|
279
|
+
select: true
|
|
280
|
+
insert: true
|
|
281
|
+
update: true
|
|
282
|
+
delete: true
|
|
283
|
+
dataTypes: { flight_number: string | null; id: number; last_updated: number; x: number | null; y: number | null };
|
|
284
|
+
columns: {
|
|
285
|
+
flight_number: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
286
|
+
|
|
287
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
288
|
+
|
|
289
|
+
last_updated: { type: number; is_nullable: false; is_nullable_or_has_default: false; };
|
|
290
|
+
|
|
291
|
+
x: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
292
|
+
|
|
293
|
+
y: { type: number; is_nullable: true; is_nullable_or_has_default: true; }
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
prostgles_lookup_media_items_with_media: {
|
|
297
|
+
is_view: false;
|
|
298
|
+
select: true
|
|
299
|
+
insert: true
|
|
300
|
+
update: true
|
|
301
|
+
delete: true
|
|
302
|
+
dataTypes: { foreign_id: number | null; media_id: string };
|
|
303
|
+
columns: {
|
|
304
|
+
foreign_id: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
305
|
+
|
|
306
|
+
media_id: { type: string; is_nullable: false; is_nullable_or_has_default: false; }
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
prostgles_lookup_media_items_with_one_media: {
|
|
310
|
+
is_view: false;
|
|
311
|
+
select: true
|
|
312
|
+
insert: true
|
|
313
|
+
update: true
|
|
314
|
+
delete: true
|
|
315
|
+
dataTypes: { foreign_id: number; media_id: string };
|
|
316
|
+
columns: {
|
|
317
|
+
foreign_id: { type: number; is_nullable: false; is_nullable_or_has_default: false; };
|
|
318
|
+
|
|
319
|
+
media_id: { type: string; is_nullable: false; is_nullable_or_has_default: false; }
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
shapes: {
|
|
323
|
+
is_view: false;
|
|
324
|
+
select: true
|
|
325
|
+
insert: true
|
|
326
|
+
update: true
|
|
327
|
+
delete: true
|
|
328
|
+
dataTypes: { geog: any | null; geom: any | null; id: string };
|
|
329
|
+
columns: {
|
|
330
|
+
geog: { type: any; is_nullable: true; is_nullable_or_has_default: true; };
|
|
331
|
+
|
|
332
|
+
geom: { type: any; is_nullable: true; is_nullable_or_has_default: true; };
|
|
333
|
+
|
|
334
|
+
id: { type: string; is_nullable: false; is_nullable_or_has_default: true; }
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
spatial_ref_sys: {
|
|
338
|
+
is_view: false;
|
|
339
|
+
select: true
|
|
340
|
+
insert: true
|
|
341
|
+
update: true
|
|
342
|
+
delete: true
|
|
343
|
+
dataTypes: { auth_name: string | null; auth_srid: number | null; proj4text: string | null; srid: number; srtext: string | null };
|
|
344
|
+
columns: {
|
|
345
|
+
auth_name: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
346
|
+
|
|
347
|
+
auth_srid: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
348
|
+
|
|
349
|
+
proj4text: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
350
|
+
|
|
351
|
+
srid: { type: number; is_nullable: false; is_nullable_or_has_default: false; };
|
|
352
|
+
|
|
353
|
+
srtext: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
tr1: {
|
|
357
|
+
is_view: false;
|
|
358
|
+
select: true
|
|
359
|
+
insert: true
|
|
360
|
+
update: true
|
|
361
|
+
delete: true
|
|
362
|
+
dataTypes: { id: number; t1: string | null };
|
|
363
|
+
columns: {
|
|
364
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
365
|
+
|
|
366
|
+
t1: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
tr2: {
|
|
370
|
+
is_view: false;
|
|
371
|
+
select: true
|
|
372
|
+
insert: true
|
|
373
|
+
update: true
|
|
374
|
+
delete: true
|
|
375
|
+
dataTypes: { id: number; t1: string | null; t2: string | null; tr1_id: number | null };
|
|
376
|
+
columns: {
|
|
377
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
378
|
+
|
|
379
|
+
t1: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
380
|
+
|
|
381
|
+
t2: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
382
|
+
|
|
383
|
+
tr1_id: { type: number; is_nullable: true; is_nullable_or_has_default: true; }
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
uuid_text: {
|
|
387
|
+
is_view: false;
|
|
388
|
+
select: true
|
|
389
|
+
insert: true
|
|
390
|
+
update: true
|
|
391
|
+
delete: true
|
|
392
|
+
dataTypes: { col1: string | null; col2: string | null; id: string; name: string | null };
|
|
393
|
+
columns: {
|
|
394
|
+
col1: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
395
|
+
|
|
396
|
+
col2: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
397
|
+
|
|
398
|
+
id: { type: string; is_nullable: false; is_nullable_or_has_default: true; };
|
|
399
|
+
|
|
400
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
v_items: {
|
|
404
|
+
is_view: true;
|
|
405
|
+
select: true
|
|
406
|
+
insert: true
|
|
407
|
+
update: true
|
|
408
|
+
delete: true
|
|
409
|
+
dataTypes: { id: number | null; name: string | null };
|
|
410
|
+
columns: {
|
|
411
|
+
id: { type: number; is_nullable: true; is_nullable_or_has_default: true; };
|
|
412
|
+
|
|
413
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; }
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
various: {
|
|
417
|
+
is_view: false;
|
|
418
|
+
select: true
|
|
419
|
+
insert: true
|
|
420
|
+
update: true
|
|
421
|
+
delete: true
|
|
422
|
+
dataTypes: { added: Date | null; h: Array<string> | null; id: number; jsn: any | null; name: string | null; tsv: any | null };
|
|
423
|
+
columns: {
|
|
424
|
+
added: { type: Date; is_nullable: true; is_nullable_or_has_default: true; };
|
|
425
|
+
|
|
426
|
+
h: { type: Array<string>; is_nullable: true; is_nullable_or_has_default: true; };
|
|
427
|
+
|
|
428
|
+
id: { type: number; is_nullable: false; is_nullable_or_has_default: true; };
|
|
429
|
+
|
|
430
|
+
jsn: { type: any; is_nullable: true; is_nullable_or_has_default: true; };
|
|
431
|
+
|
|
432
|
+
name: { type: string; is_nullable: true; is_nullable_or_has_default: true; };
|
|
433
|
+
|
|
434
|
+
tsv: { type: any; is_nullable: true; is_nullable_or_has_default: true; }
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
}
|