prostgles-server 2.0.174 → 2.0.177

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