@webda/postgres 4.0.0-beta.5 → 4.0.0-beta.7

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/webda.module.json CHANGED
@@ -118,70 +118,12 @@
118
118
  "$ref": "#/definitions/DataView%3CArrayBufferLike%3E"
119
119
  },
120
120
  {
121
- "description": "A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
122
121
  "items": {
123
122
  "type": "integer"
124
123
  },
125
124
  "type": "array"
126
125
  },
127
126
  {
128
- "description": "A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
129
- "items": {
130
- "type": "integer"
131
- },
132
- "type": "array"
133
- },
134
- {
135
- "description": "A typed array of 16-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
136
- "items": {
137
- "type": "number"
138
- },
139
- "type": "array"
140
- },
141
- {
142
- "description": "A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
143
- "items": {
144
- "type": "number"
145
- },
146
- "type": "array"
147
- },
148
- {
149
- "description": "A typed array of 64-bit float values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
150
- "items": {
151
- "type": "number"
152
- },
153
- "type": "array"
154
- },
155
- {
156
- "description": "A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
157
- "items": {
158
- "type": "number"
159
- },
160
- "type": "array"
161
- },
162
- {
163
- "description": "A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
164
- "items": {
165
- "type": "number"
166
- },
167
- "type": "array"
168
- },
169
- {
170
- "description": "A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
171
- "items": {
172
- "type": "number"
173
- },
174
- "type": "array"
175
- },
176
- {
177
- "description": "A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
178
- "items": {
179
- "type": "number"
180
- },
181
- "type": "array"
182
- },
183
- {
184
- "description": "A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
185
127
  "items": {
186
128
  "type": "number"
187
129
  },
@@ -192,13 +134,6 @@
192
134
  "contentMediaType": "application/octet-stream",
193
135
  "description": "A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
194
136
  "type": "string"
195
- },
196
- {
197
- "description": "A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\nIf the requested number of bytes could not be allocated an exception is raised.",
198
- "items": {
199
- "type": "number"
200
- },
201
- "type": "array"
202
137
  }
203
138
  ],
204
139
  "description": "An array of strings, or a single `Buffer`, `TypedArray`, or `DataView` containing the supported\nALPN protocols. Buffers should have the format `[len][name][len][name]...`\ne.g. `'\\x08http/1.1\\x08http/1.0'`, where the `len` byte is the length of the\nnext protocol name. Passing an array is usually much simpler, e.g.\n`['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher\npreference than those later."
@@ -641,7 +576,11 @@
641
576
  },
642
577
  "postgresqlServer": {
643
578
  "$ref": "#/definitions/ClientConfig",
644
- "description": "Connection settings forwarded to `pg.Client`. By default `pg` reads\nstandard PG* environment variables."
579
+ "description": "Connection settings forwarded to `pg.Client`. By default `pg` reads\nstandard PG* environment variables.\n\nCan be encrypted with `webda config encrypt`",
580
+ "x-webda-secret": [
581
+ "password",
582
+ "connectionString"
583
+ ]
645
584
  },
646
585
  "reconnectDelay": {
647
586
  "default": 500,
@@ -780,70 +719,12 @@
780
719
  "$ref": "#/definitions/DataView%3CArrayBufferLike%3E"
781
720
  },
782
721
  {
783
- "description": "A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
784
- "items": {
785
- "type": "integer"
786
- },
787
- "type": "array"
788
- },
789
- {
790
- "description": "A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
791
722
  "items": {
792
723
  "type": "integer"
793
724
  },
794
725
  "type": "array"
795
726
  },
796
727
  {
797
- "description": "A typed array of 16-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
798
- "items": {
799
- "type": "number"
800
- },
801
- "type": "array"
802
- },
803
- {
804
- "description": "A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
805
- "items": {
806
- "type": "number"
807
- },
808
- "type": "array"
809
- },
810
- {
811
- "description": "A typed array of 64-bit float values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
812
- "items": {
813
- "type": "number"
814
- },
815
- "type": "array"
816
- },
817
- {
818
- "description": "A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
819
- "items": {
820
- "type": "number"
821
- },
822
- "type": "array"
823
- },
824
- {
825
- "description": "A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
826
- "items": {
827
- "type": "number"
828
- },
829
- "type": "array"
830
- },
831
- {
832
- "description": "A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
833
- "items": {
834
- "type": "number"
835
- },
836
- "type": "array"
837
- },
838
- {
839
- "description": "A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
840
- "items": {
841
- "type": "number"
842
- },
843
- "type": "array"
844
- },
845
- {
846
- "description": "A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
847
728
  "items": {
848
729
  "type": "number"
849
730
  },
@@ -854,13 +735,6 @@
854
735
  "contentMediaType": "application/octet-stream",
855
736
  "description": "A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
856
737
  "type": "string"
857
- },
858
- {
859
- "description": "A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\nIf the requested number of bytes could not be allocated an exception is raised.",
860
- "items": {
861
- "type": "number"
862
- },
863
- "type": "array"
864
738
  }
865
739
  ],
866
740
  "description": "An array of strings, or a single `Buffer`, `TypedArray`, or `DataView` containing the supported\nALPN protocols. Buffers should have the format `[len][name][len][name]...`\ne.g. `'\\x08http/1.1\\x08http/1.0'`, where the `len` byte is the length of the\nnext protocol name. Passing an array is usually much simpler, e.g.\n`['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher\npreference than those later."
@@ -1460,7 +1334,11 @@
1460
1334
  "$ref": "#/definitions/PoolConfig"
1461
1335
  }
1462
1336
  ],
1463
- "description": "Connection settings forwarded to the chosen pg client/pool. Defaults\nto PG* environment variables."
1337
+ "description": "Connection settings forwarded to the chosen pg client/pool. Defaults\nto PG* environment variables.\n\nCan be encrypted with `webda config encrypt`",
1338
+ "x-webda-secret": [
1339
+ "password",
1340
+ "connectionString"
1341
+ ]
1464
1342
  },
1465
1343
  "table": {
1466
1344
  "default": "webda_queue",
@@ -1625,70 +1503,12 @@
1625
1503
  "$ref": "#/definitions/DataView%3CArrayBufferLike%3E"
1626
1504
  },
1627
1505
  {
1628
- "description": "A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
1629
1506
  "items": {
1630
1507
  "type": "integer"
1631
1508
  },
1632
1509
  "type": "array"
1633
1510
  },
1634
1511
  {
1635
- "description": "A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated, an exception is raised.",
1636
- "items": {
1637
- "type": "integer"
1638
- },
1639
- "type": "array"
1640
- },
1641
- {
1642
- "description": "A typed array of 16-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
1643
- "items": {
1644
- "type": "number"
1645
- },
1646
- "type": "array"
1647
- },
1648
- {
1649
- "description": "A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\nof bytes could not be allocated an exception is raised.",
1650
- "items": {
1651
- "type": "number"
1652
- },
1653
- "type": "array"
1654
- },
1655
- {
1656
- "description": "A typed array of 64-bit float values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
1657
- "items": {
1658
- "type": "number"
1659
- },
1660
- "type": "array"
1661
- },
1662
- {
1663
- "description": "A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
1664
- "items": {
1665
- "type": "number"
1666
- },
1667
- "type": "array"
1668
- },
1669
- {
1670
- "description": "A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
1671
- "items": {
1672
- "type": "number"
1673
- },
1674
- "type": "array"
1675
- },
1676
- {
1677
- "description": "A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\nnumber of bytes could not be allocated an exception is raised.",
1678
- "items": {
1679
- "type": "number"
1680
- },
1681
- "type": "array"
1682
- },
1683
- {
1684
- "description": "A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
1685
- "items": {
1686
- "type": "number"
1687
- },
1688
- "type": "array"
1689
- },
1690
- {
1691
- "description": "A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
1692
1512
  "items": {
1693
1513
  "type": "number"
1694
1514
  },
@@ -1699,13 +1519,6 @@
1699
1519
  "contentMediaType": "application/octet-stream",
1700
1520
  "description": "A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\nrequested number of bytes could not be allocated an exception is raised.",
1701
1521
  "type": "string"
1702
- },
1703
- {
1704
- "description": "A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\nIf the requested number of bytes could not be allocated an exception is raised.",
1705
- "items": {
1706
- "type": "number"
1707
- },
1708
- "type": "array"
1709
1522
  }
1710
1523
  ],
1711
1524
  "description": "An array of strings, or a single `Buffer`, `TypedArray`, or `DataView` containing the supported\nALPN protocols. Buffers should have the format `[len][name][len][name]...`\ne.g. `'\\x08http/1.1\\x08http/1.0'`, where the `len` byte is the length of the\nnext protocol name. Passing an array is usually much simpler, e.g.\n`['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher\npreference than those later."
@@ -2288,6 +2101,16 @@
2288
2101
  }
2289
2102
  },
2290
2103
  "properties": {
2104
+ "aggregationFallback": {
2105
+ "default": "warn",
2106
+ "description": "What to do when an aggregation on this store cannot run natively and must\nstream every matching object through memory",
2107
+ "enum": [
2108
+ "allow",
2109
+ "warn",
2110
+ "deny"
2111
+ ],
2112
+ "type": "string"
2113
+ },
2291
2114
  "autoCreateTable": {
2292
2115
  "default": true,
2293
2116
  "description": "Auto create table if not exists",
@@ -2306,6 +2129,12 @@
2306
2129
  "description": "If set, Store will ignore the __type",
2307
2130
  "type": "boolean"
2308
2131
  },
2132
+ "maxGroups": {
2133
+ "default": 10000,
2134
+ "description": "Maximum number of groups an aggregation may produce without LIMIT (or in memory)",
2135
+ "minimum": 1,
2136
+ "type": "number"
2137
+ },
2309
2138
  "modelAliases": {
2310
2139
  "$ref": "#/definitions/modelAliases",
2311
2140
  "description": "Model Aliases to allow easier rename of Model"
@@ -2334,7 +2163,11 @@
2334
2163
  "$ref": "#/definitions/PoolConfig"
2335
2164
  }
2336
2165
  ],
2337
- "description": "By default use environment variables"
2166
+ "description": "By default use environment variables\n\nCan be encrypted with `webda config encrypt`",
2167
+ "x-webda-secret": [
2168
+ "password",
2169
+ "connectionString"
2170
+ ]
2338
2171
  },
2339
2172
  "slowQueryThreshold": {
2340
2173
  "default": 30000,