tinybase 5.0.0-beta.27 → 5.0.0-beta.28
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/@types/_internal/ui-react/with-schemas/index.d.cts +274 -0
- package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
- package/@types/checkpoints/index.d.cts +30 -1
- package/@types/checkpoints/index.d.ts +30 -1
- package/@types/checkpoints/with-schemas/index.d.cts +30 -1
- package/@types/checkpoints/with-schemas/index.d.ts +30 -1
- package/@types/common/index.d.cts +9 -0
- package/@types/common/index.d.ts +9 -0
- package/@types/common/with-schemas/index.d.cts +9 -0
- package/@types/common/with-schemas/index.d.ts +9 -0
- package/@types/index.d.cts +1 -0
- package/@types/index.d.ts +1 -0
- package/@types/indexes/index.d.cts +32 -1
- package/@types/indexes/index.d.ts +32 -1
- package/@types/indexes/with-schemas/index.d.cts +32 -1
- package/@types/indexes/with-schemas/index.d.ts +32 -1
- package/@types/mergeable-store/index.d.cts +0 -2
- package/@types/mergeable-store/index.d.ts +0 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
- package/@types/metrics/index.d.cts +30 -4
- package/@types/metrics/index.d.ts +30 -4
- package/@types/metrics/with-schemas/index.d.cts +30 -4
- package/@types/metrics/with-schemas/index.d.ts +30 -4
- package/@types/persisters/index.d.cts +87 -25
- package/@types/persisters/index.d.ts +87 -25
- package/@types/persisters/persister-automerge/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/index.d.ts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-browser/index.d.cts +7 -4
- package/@types/persisters/persister-browser/index.d.ts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-file/index.d.cts +6 -4
- package/@types/persisters/persister-file/index.d.ts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
- package/@types/persisters/persister-powersync/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/index.d.ts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-remote/index.d.cts +6 -4
- package/@types/persisters/persister-remote/index.d.ts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
- package/@types/persisters/with-schemas/index.d.cts +87 -25
- package/@types/persisters/with-schemas/index.d.ts +87 -25
- package/@types/queries/index.d.cts +64 -4
- package/@types/queries/index.d.ts +64 -4
- package/@types/queries/with-schemas/index.d.cts +64 -4
- package/@types/queries/with-schemas/index.d.ts +64 -4
- package/@types/relationships/index.d.cts +34 -1
- package/@types/relationships/index.d.ts +34 -1
- package/@types/relationships/with-schemas/index.d.cts +34 -1
- package/@types/relationships/with-schemas/index.d.ts +34 -1
- package/@types/store/index.d.cts +125 -0
- package/@types/store/index.d.ts +125 -0
- package/@types/store/with-schemas/index.d.cts +125 -0
- package/@types/store/with-schemas/index.d.ts +125 -0
- package/@types/synchronizers/index.d.cts +32 -10
- package/@types/synchronizers/index.d.ts +32 -10
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
- package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
- package/@types/synchronizers/with-schemas/index.d.cts +29 -11
- package/@types/synchronizers/with-schemas/index.d.ts +29 -11
- package/@types/tools/index.d.cts +22 -0
- package/@types/tools/index.d.ts +22 -0
- package/@types/tools/with-schemas/index.d.cts +22 -0
- package/@types/tools/with-schemas/index.d.ts +22 -0
- package/@types/ui-react/index.d.cts +375 -1
- package/@types/ui-react/index.d.ts +375 -1
- package/@types/ui-react/with-schemas/index.d.cts +100 -1
- package/@types/ui-react/with-schemas/index.d.ts +100 -1
- package/@types/ui-react-dom/index.d.cts +112 -0
- package/@types/ui-react-dom/index.d.ts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
- package/@types/ui-react-inspector/index.d.cts +6 -2
- package/@types/ui-react-inspector/index.d.ts +6 -2
- package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
- package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
- package/@types/with-schemas/index.d.cts +1 -0
- package/@types/with-schemas/index.d.ts +1 -0
- package/cjs/es6/index.cjs +2 -2
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/synchronizers/index.cjs +2 -2
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/es6/with-schemas/index.cjs +2 -2
- package/cjs/index.cjs +2 -2
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/synchronizers/index.cjs +2 -2
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/with-schemas/index.cjs +2 -2
- package/es6/index.js +2 -2
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/synchronizers/index.js +2 -2
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
- package/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/es6/synchronizers/with-schemas/index.js +2 -2
- package/es6/with-schemas/index.js +2 -2
- package/index.js +2 -2
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/package.json +105 -1
- package/readme.md +9 -9
- package/releases.md +4 -4
- package/synchronizers/index.js +2 -2
- package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
- package/synchronizers/synchronizer-local/index.js +4 -4
- package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/index.js +2 -2
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/synchronizers/index.js +2 -2
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/es6/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/with-schemas/index.js +2 -2
- package/umd/index.js +2 -2
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/synchronizers/index.js +2 -2
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
- package/umd/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/synchronizers/with-schemas/index.js +2 -2
- package/umd/with-schemas/index.js +2 -2
- package/with-schemas/index.js +2 -2
|
@@ -38,6 +38,7 @@ import type {Id, IdOrNull, Ids} from '../common/index.d.cts';
|
|
|
38
38
|
* };
|
|
39
39
|
* ```
|
|
40
40
|
* @category Result
|
|
41
|
+
* @since v2.0.0
|
|
41
42
|
*/
|
|
42
43
|
export type ResultTable = {[rowId: Id]: ResultRow};
|
|
43
44
|
|
|
@@ -56,6 +57,7 @@ export type ResultTable = {[rowId: Id]: ResultRow};
|
|
|
56
57
|
* export const resultRow: ResultRow = {species: 'dog', color: 'brown'};
|
|
57
58
|
* ```
|
|
58
59
|
* @category Result
|
|
60
|
+
* @since v2.0.0
|
|
59
61
|
*/
|
|
60
62
|
export type ResultRow = {[cellId: Id]: ResultCell};
|
|
61
63
|
|
|
@@ -74,6 +76,7 @@ export type ResultRow = {[cellId: Id]: ResultCell};
|
|
|
74
76
|
* export const resultCell: ResultCell = 'dog';
|
|
75
77
|
* ```
|
|
76
78
|
* @category Result
|
|
79
|
+
* @since v2.0.0
|
|
77
80
|
*/
|
|
78
81
|
export type ResultCell = string | number | boolean;
|
|
79
82
|
|
|
@@ -81,6 +84,7 @@ export type ResultCell = string | number | boolean;
|
|
|
81
84
|
* The ResultCellOrUndefined type is the data structure representing a single
|
|
82
85
|
* cell in the results of a query, or the value `undefined`.
|
|
83
86
|
* @category Result
|
|
87
|
+
* @since v2.0.0
|
|
84
88
|
*/
|
|
85
89
|
export type ResultCellOrUndefined = ResultCell | undefined;
|
|
86
90
|
|
|
@@ -112,7 +116,7 @@ export type Aggregate = (cells: Cell[], length: number) => ResultCell;
|
|
|
112
116
|
* being added, return `undefined` and the aggregation will be completely
|
|
113
117
|
* recalculated.
|
|
114
118
|
*
|
|
115
|
-
*
|
|
119
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
116
120
|
* implementation of an AggregateAdd function that can reduce the complexity
|
|
117
121
|
* cost of growing the input data set.
|
|
118
122
|
* @param current The current value of the aggregation.
|
|
@@ -144,7 +148,7 @@ export type AggregateAdd = (
|
|
|
144
148
|
* values, and the previous minimum is being removed. The whole of the rest of
|
|
145
149
|
* the list will need to be re-scanned to find a new minimum.
|
|
146
150
|
*
|
|
147
|
-
*
|
|
151
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
148
152
|
* implementation of an AggregateRemove function that can reduce the complexity
|
|
149
153
|
* cost of shrinking the input data set.
|
|
150
154
|
* @param current The current value of the aggregation.
|
|
@@ -174,7 +178,7 @@ export type AggregateRemove = (
|
|
|
174
178
|
* changing, return `undefined` and the aggregation will be completely
|
|
175
179
|
* recalculated.
|
|
176
180
|
*
|
|
177
|
-
*
|
|
181
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
178
182
|
* implementation of an AggregateReplace function that can reduce the complexity
|
|
179
183
|
* cost of changing the input data set in place.
|
|
180
184
|
* @param current The current value of the aggregation.
|
|
@@ -215,6 +219,7 @@ export type QueryCallback = (queryId: Id) => void;
|
|
|
215
219
|
* @param forEachRow A function that will let you iterate over the ResultRow
|
|
216
220
|
* objects in this ResultTable.
|
|
217
221
|
* @category Callback
|
|
222
|
+
* @since v2.0.0
|
|
218
223
|
*/
|
|
219
224
|
export type ResultTableCallback = (
|
|
220
225
|
tableId: Id,
|
|
@@ -232,6 +237,7 @@ export type ResultTableCallback = (
|
|
|
232
237
|
* @param forEachRow A function that will let you iterate over the ResultCell
|
|
233
238
|
* values in this ResultRow.
|
|
234
239
|
* @category Callback
|
|
240
|
+
* @since v2.0.0
|
|
235
241
|
*/
|
|
236
242
|
export type ResultRowCallback = (
|
|
237
243
|
rowId: Id,
|
|
@@ -248,6 +254,7 @@ export type ResultRowCallback = (
|
|
|
248
254
|
* @param cellId The Id of the ResultCell that the callback can operate on.
|
|
249
255
|
* @param cell The value of the ResultCell.
|
|
250
256
|
* @category Callback
|
|
257
|
+
* @since v2.0.0
|
|
251
258
|
*/
|
|
252
259
|
export type ResultCellCallback = (cellId: Id, cell: ResultCell) => void;
|
|
253
260
|
|
|
@@ -262,6 +269,7 @@ export type ResultCellCallback = (cellId: Id, cell: ResultCell) => void;
|
|
|
262
269
|
* Queries object.
|
|
263
270
|
* @param queries A reference to the Queries object that changed.
|
|
264
271
|
* @category Listener
|
|
272
|
+
* @since v2.0.0
|
|
265
273
|
*/
|
|
266
274
|
export type QueryIdsListener = (queries: Queries) => void;
|
|
267
275
|
|
|
@@ -518,6 +526,7 @@ export type ResultCellListener = (
|
|
|
518
526
|
* @returns A ResultCellChange array containing information about the
|
|
519
527
|
* ResultCell's changes.
|
|
520
528
|
* @category Listener
|
|
529
|
+
* @since v2.0.0
|
|
521
530
|
*/
|
|
522
531
|
export type GetResultCellChange = (
|
|
523
532
|
tableId: Id,
|
|
@@ -534,6 +543,7 @@ export type GetResultCellChange = (
|
|
|
534
543
|
* ResultCell before the current transaction, the new value after it, and a
|
|
535
544
|
* convenience flag that indicates that the value has changed.
|
|
536
545
|
* @category Listener
|
|
546
|
+
* @since v2.0.0
|
|
537
547
|
*/
|
|
538
548
|
export type ResultCellChange = [
|
|
539
549
|
changed: boolean,
|
|
@@ -553,41 +563,57 @@ export type QueriesListenerStats = {
|
|
|
553
563
|
/**
|
|
554
564
|
* The number of ResultTableListener functions registered with the Queries
|
|
555
565
|
* object.
|
|
566
|
+
* @category Stat
|
|
567
|
+
* @since v2.0.0
|
|
556
568
|
*/
|
|
557
569
|
table: number;
|
|
558
570
|
/**
|
|
559
571
|
* The number of ResultTableCellIdsListener functions registered with the
|
|
560
572
|
* Queries object, since v3.3.
|
|
573
|
+
* @category Stat
|
|
574
|
+
* @since v2.0.0
|
|
561
575
|
*/
|
|
562
576
|
tableCellIds: number;
|
|
563
577
|
/**
|
|
564
578
|
* The number of ResultRowCountListener functions registered with the Queries
|
|
565
579
|
* object, since v4.1.
|
|
580
|
+
* @category Stat
|
|
581
|
+
* @since v2.0.0
|
|
566
582
|
*/
|
|
567
583
|
rowCount: number;
|
|
568
584
|
/**
|
|
569
585
|
* The number of ResultRowIdsListener functions registered with the Queries
|
|
570
586
|
* object.
|
|
587
|
+
* @category Stat
|
|
588
|
+
* @since v2.0.0
|
|
571
589
|
*/
|
|
572
590
|
rowIds: number;
|
|
573
591
|
/**
|
|
574
592
|
* The number of SortedRowIdsListener functions registered with the Queries
|
|
575
593
|
* object.
|
|
594
|
+
* @category Stat
|
|
595
|
+
* @since v2.0.0
|
|
576
596
|
*/
|
|
577
597
|
sortedRowIds: number;
|
|
578
598
|
/**
|
|
579
599
|
* The number of ResultRowListener functions registered with the Queries
|
|
580
600
|
* object.
|
|
601
|
+
* @category Stat
|
|
602
|
+
* @since v2.0.0
|
|
581
603
|
*/
|
|
582
604
|
row: number;
|
|
583
605
|
/**
|
|
584
606
|
* The number of ResultCellIdsListener functions registered with the Queries
|
|
585
607
|
* object.
|
|
608
|
+
* @category Stat
|
|
609
|
+
* @since v2.0.0
|
|
586
610
|
*/
|
|
587
611
|
cellIds: number;
|
|
588
612
|
/**
|
|
589
613
|
* The number of ResultCellListener functions registered with the Queries
|
|
590
614
|
* object.
|
|
615
|
+
* @category Stat
|
|
616
|
+
* @since v2.0.0
|
|
591
617
|
*/
|
|
592
618
|
cell: number;
|
|
593
619
|
};
|
|
@@ -609,6 +635,8 @@ export type GetTableCell = {
|
|
|
609
635
|
* or filtered.
|
|
610
636
|
* @param cellId The Id of the Cell to fetch the value for.
|
|
611
637
|
* @returns A Cell value or `undefined`.
|
|
638
|
+
* @category Callback
|
|
639
|
+
* @since v2.0.0
|
|
612
640
|
*/
|
|
613
641
|
(cellId: Id): CellOrUndefined;
|
|
614
642
|
/**
|
|
@@ -620,6 +648,8 @@ export type GetTableCell = {
|
|
|
620
648
|
* used.
|
|
621
649
|
* @param joinedCellId The Id of the Cell to fetch the value for.
|
|
622
650
|
* @returns A Cell value or `undefined`.
|
|
651
|
+
* @category Callback
|
|
652
|
+
* @since v2.0.0
|
|
623
653
|
*/
|
|
624
654
|
(joinedTableId: Id, joinedCellId: Id): CellOrUndefined;
|
|
625
655
|
};
|
|
@@ -733,6 +763,8 @@ export type Select = {
|
|
|
733
763
|
* @param cellId The Id of the Cell to fetch the value for.
|
|
734
764
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
735
765
|
* aliased.
|
|
766
|
+
* @category Definition
|
|
767
|
+
* @since v2.0.0
|
|
736
768
|
*/
|
|
737
769
|
(cellId: Id): SelectedAs;
|
|
738
770
|
/**
|
|
@@ -745,6 +777,8 @@ export type Select = {
|
|
|
745
777
|
* @param joinedCellId The Id of the Cell to fetch the value for.
|
|
746
778
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
747
779
|
* aliased.
|
|
780
|
+
* @category Definition
|
|
781
|
+
* @since v2.0.0
|
|
748
782
|
*/
|
|
749
783
|
(joinedTableId: Id, joinedCellId: Id): SelectedAs;
|
|
750
784
|
/**
|
|
@@ -756,6 +790,8 @@ export type Select = {
|
|
|
756
790
|
* value from multiple Cell values and the Row Id.
|
|
757
791
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
758
792
|
* aliased.
|
|
793
|
+
* @category Definition
|
|
794
|
+
* @since v2.0.0
|
|
759
795
|
*/
|
|
760
796
|
(
|
|
761
797
|
getCell: (getTableCell: GetTableCell, rowId: Id) => ResultCellOrUndefined,
|
|
@@ -813,6 +849,8 @@ export type Select = {
|
|
|
813
849
|
export type SelectedAs = {
|
|
814
850
|
/**
|
|
815
851
|
* A function that lets you specify an alias for the Cell Id.
|
|
852
|
+
* @category Definition
|
|
853
|
+
* @since v2.0.0
|
|
816
854
|
*/
|
|
817
855
|
as: (selectedCellId: Id) => void;
|
|
818
856
|
};
|
|
@@ -1000,6 +1038,8 @@ export type Join = {
|
|
|
1000
1038
|
* Table's Row Id.
|
|
1001
1039
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1002
1040
|
* aliased.
|
|
1041
|
+
* @category Definition
|
|
1042
|
+
* @since v2.0.0
|
|
1003
1043
|
*/
|
|
1004
1044
|
(joinedTableId: Id, on: Id): JoinedAs;
|
|
1005
1045
|
/**
|
|
@@ -1012,6 +1052,8 @@ export type Join = {
|
|
|
1012
1052
|
* Id.
|
|
1013
1053
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1014
1054
|
* aliased.
|
|
1055
|
+
* @category Definition
|
|
1056
|
+
* @since v2.0.0
|
|
1015
1057
|
*/
|
|
1016
1058
|
(
|
|
1017
1059
|
joinedTableId: Id,
|
|
@@ -1029,6 +1071,8 @@ export type Join = {
|
|
|
1029
1071
|
* joined Table's Row Id.
|
|
1030
1072
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1031
1073
|
* aliased.
|
|
1074
|
+
* @category Definition
|
|
1075
|
+
* @since v2.0.0
|
|
1032
1076
|
*/
|
|
1033
1077
|
(joinedTableId: Id, fromIntermediateJoinedTableId: Id, on: Id): JoinedAs;
|
|
1034
1078
|
/**
|
|
@@ -1045,6 +1089,8 @@ export type Join = {
|
|
|
1045
1089
|
* Table's Row Id.
|
|
1046
1090
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1047
1091
|
* aliased.
|
|
1092
|
+
* @category Definition
|
|
1093
|
+
* @since v2.0.0
|
|
1048
1094
|
*/
|
|
1049
1095
|
(
|
|
1050
1096
|
joinedTableId: Id,
|
|
@@ -1108,6 +1154,8 @@ export type Join = {
|
|
|
1108
1154
|
export type JoinedAs = {
|
|
1109
1155
|
/**
|
|
1110
1156
|
* A function that lets you specify an alias for the joined Table Id.
|
|
1157
|
+
* @category Definition
|
|
1158
|
+
* @since v2.0.0
|
|
1111
1159
|
*/
|
|
1112
1160
|
as: (joinedTableId: Id) => void;
|
|
1113
1161
|
};
|
|
@@ -1241,6 +1289,8 @@ export type Where = {
|
|
|
1241
1289
|
* @param cellId The Id of the Cell in the query's root Table to test.
|
|
1242
1290
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1243
1291
|
* included in the result.
|
|
1292
|
+
* @category Definition
|
|
1293
|
+
* @since v2.0.0
|
|
1244
1294
|
*/
|
|
1245
1295
|
(cellId: Id, equals: Cell): void;
|
|
1246
1296
|
/**
|
|
@@ -1252,6 +1302,8 @@ export type Where = {
|
|
|
1252
1302
|
* @param joinedCellId The Id of the Cell in the joined Table to test.
|
|
1253
1303
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1254
1304
|
* included in the result.
|
|
1305
|
+
* @category Definition
|
|
1306
|
+
* @since v2.0.0
|
|
1255
1307
|
*/
|
|
1256
1308
|
(joinedTableId: Id, joinedCellId: Id, equals: Cell): void;
|
|
1257
1309
|
/**
|
|
@@ -1260,6 +1312,8 @@ export type Where = {
|
|
|
1260
1312
|
* the main and (optionally) joined Tables.
|
|
1261
1313
|
* @param condition A callback that takes a GetTableCell function and that
|
|
1262
1314
|
* should return `true` for the Row to be included in the result.
|
|
1315
|
+
* @category Definition
|
|
1316
|
+
* @since v2.0.0
|
|
1263
1317
|
*/
|
|
1264
1318
|
(condition: (getTableCell: GetTableCell) => boolean): void;
|
|
1265
1319
|
};
|
|
@@ -1446,6 +1500,8 @@ export type Group = (
|
|
|
1446
1500
|
export type GroupedAs = {
|
|
1447
1501
|
/**
|
|
1448
1502
|
* A function that lets you specify an alias for the grouped Cell Id.
|
|
1503
|
+
* @category Definition
|
|
1504
|
+
* @since v2.0.0
|
|
1449
1505
|
*/
|
|
1450
1506
|
as: (groupedCellId: Id) => void;
|
|
1451
1507
|
};
|
|
@@ -1549,6 +1605,8 @@ export type Having = {
|
|
|
1549
1605
|
* @param selectedOrGroupedCellId The Id of the Cell in the query to test.
|
|
1550
1606
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1551
1607
|
* included in the result.
|
|
1608
|
+
* @category Definition
|
|
1609
|
+
* @since v2.0.0
|
|
1552
1610
|
*/
|
|
1553
1611
|
(selectedOrGroupedCellId: Id, equals: Cell): void;
|
|
1554
1612
|
/**
|
|
@@ -1556,6 +1614,8 @@ export type Having = {
|
|
|
1556
1614
|
* those Rows which meet a calculated boolean condition.
|
|
1557
1615
|
* @param condition A callback that takes a GetCell function and that should
|
|
1558
1616
|
* return `true` for the Row to be included in the result.
|
|
1617
|
+
* @category Definition
|
|
1618
|
+
* @since v2.0.0
|
|
1559
1619
|
*/
|
|
1560
1620
|
(condition: (getSelectedOrGroupedCell: GetCell) => boolean): void;
|
|
1561
1621
|
};
|
|
@@ -1652,7 +1712,7 @@ export type Having = {
|
|
|
1652
1712
|
* queries.delListener(listenerId);
|
|
1653
1713
|
* queries.destroy();
|
|
1654
1714
|
* ```
|
|
1655
|
-
* @see
|
|
1715
|
+
* @see Using Queries guides
|
|
1656
1716
|
* @see Car Analysis demo
|
|
1657
1717
|
* @see Movie Database demo
|
|
1658
1718
|
* @category Queries
|
|
@@ -38,6 +38,7 @@ import type {Id, IdOrNull, Ids} from '../common/index.d.ts';
|
|
|
38
38
|
* };
|
|
39
39
|
* ```
|
|
40
40
|
* @category Result
|
|
41
|
+
* @since v2.0.0
|
|
41
42
|
*/
|
|
42
43
|
export type ResultTable = {[rowId: Id]: ResultRow};
|
|
43
44
|
|
|
@@ -56,6 +57,7 @@ export type ResultTable = {[rowId: Id]: ResultRow};
|
|
|
56
57
|
* export const resultRow: ResultRow = {species: 'dog', color: 'brown'};
|
|
57
58
|
* ```
|
|
58
59
|
* @category Result
|
|
60
|
+
* @since v2.0.0
|
|
59
61
|
*/
|
|
60
62
|
export type ResultRow = {[cellId: Id]: ResultCell};
|
|
61
63
|
|
|
@@ -74,6 +76,7 @@ export type ResultRow = {[cellId: Id]: ResultCell};
|
|
|
74
76
|
* export const resultCell: ResultCell = 'dog';
|
|
75
77
|
* ```
|
|
76
78
|
* @category Result
|
|
79
|
+
* @since v2.0.0
|
|
77
80
|
*/
|
|
78
81
|
export type ResultCell = string | number | boolean;
|
|
79
82
|
|
|
@@ -81,6 +84,7 @@ export type ResultCell = string | number | boolean;
|
|
|
81
84
|
* The ResultCellOrUndefined type is the data structure representing a single
|
|
82
85
|
* cell in the results of a query, or the value `undefined`.
|
|
83
86
|
* @category Result
|
|
87
|
+
* @since v2.0.0
|
|
84
88
|
*/
|
|
85
89
|
export type ResultCellOrUndefined = ResultCell | undefined;
|
|
86
90
|
|
|
@@ -112,7 +116,7 @@ export type Aggregate = (cells: Cell[], length: number) => ResultCell;
|
|
|
112
116
|
* being added, return `undefined` and the aggregation will be completely
|
|
113
117
|
* recalculated.
|
|
114
118
|
*
|
|
115
|
-
*
|
|
119
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
116
120
|
* implementation of an AggregateAdd function that can reduce the complexity
|
|
117
121
|
* cost of growing the input data set.
|
|
118
122
|
* @param current The current value of the aggregation.
|
|
@@ -144,7 +148,7 @@ export type AggregateAdd = (
|
|
|
144
148
|
* values, and the previous minimum is being removed. The whole of the rest of
|
|
145
149
|
* the list will need to be re-scanned to find a new minimum.
|
|
146
150
|
*
|
|
147
|
-
*
|
|
151
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
148
152
|
* implementation of an AggregateRemove function that can reduce the complexity
|
|
149
153
|
* cost of shrinking the input data set.
|
|
150
154
|
* @param current The current value of the aggregation.
|
|
@@ -174,7 +178,7 @@ export type AggregateRemove = (
|
|
|
174
178
|
* changing, return `undefined` and the aggregation will be completely
|
|
175
179
|
* recalculated.
|
|
176
180
|
*
|
|
177
|
-
*
|
|
181
|
+
* When possible, if you are providing a custom Aggregate, seek an
|
|
178
182
|
* implementation of an AggregateReplace function that can reduce the complexity
|
|
179
183
|
* cost of changing the input data set in place.
|
|
180
184
|
* @param current The current value of the aggregation.
|
|
@@ -215,6 +219,7 @@ export type QueryCallback = (queryId: Id) => void;
|
|
|
215
219
|
* @param forEachRow A function that will let you iterate over the ResultRow
|
|
216
220
|
* objects in this ResultTable.
|
|
217
221
|
* @category Callback
|
|
222
|
+
* @since v2.0.0
|
|
218
223
|
*/
|
|
219
224
|
export type ResultTableCallback = (
|
|
220
225
|
tableId: Id,
|
|
@@ -232,6 +237,7 @@ export type ResultTableCallback = (
|
|
|
232
237
|
* @param forEachRow A function that will let you iterate over the ResultCell
|
|
233
238
|
* values in this ResultRow.
|
|
234
239
|
* @category Callback
|
|
240
|
+
* @since v2.0.0
|
|
235
241
|
*/
|
|
236
242
|
export type ResultRowCallback = (
|
|
237
243
|
rowId: Id,
|
|
@@ -248,6 +254,7 @@ export type ResultRowCallback = (
|
|
|
248
254
|
* @param cellId The Id of the ResultCell that the callback can operate on.
|
|
249
255
|
* @param cell The value of the ResultCell.
|
|
250
256
|
* @category Callback
|
|
257
|
+
* @since v2.0.0
|
|
251
258
|
*/
|
|
252
259
|
export type ResultCellCallback = (cellId: Id, cell: ResultCell) => void;
|
|
253
260
|
|
|
@@ -262,6 +269,7 @@ export type ResultCellCallback = (cellId: Id, cell: ResultCell) => void;
|
|
|
262
269
|
* Queries object.
|
|
263
270
|
* @param queries A reference to the Queries object that changed.
|
|
264
271
|
* @category Listener
|
|
272
|
+
* @since v2.0.0
|
|
265
273
|
*/
|
|
266
274
|
export type QueryIdsListener = (queries: Queries) => void;
|
|
267
275
|
|
|
@@ -518,6 +526,7 @@ export type ResultCellListener = (
|
|
|
518
526
|
* @returns A ResultCellChange array containing information about the
|
|
519
527
|
* ResultCell's changes.
|
|
520
528
|
* @category Listener
|
|
529
|
+
* @since v2.0.0
|
|
521
530
|
*/
|
|
522
531
|
export type GetResultCellChange = (
|
|
523
532
|
tableId: Id,
|
|
@@ -534,6 +543,7 @@ export type GetResultCellChange = (
|
|
|
534
543
|
* ResultCell before the current transaction, the new value after it, and a
|
|
535
544
|
* convenience flag that indicates that the value has changed.
|
|
536
545
|
* @category Listener
|
|
546
|
+
* @since v2.0.0
|
|
537
547
|
*/
|
|
538
548
|
export type ResultCellChange = [
|
|
539
549
|
changed: boolean,
|
|
@@ -553,41 +563,57 @@ export type QueriesListenerStats = {
|
|
|
553
563
|
/**
|
|
554
564
|
* The number of ResultTableListener functions registered with the Queries
|
|
555
565
|
* object.
|
|
566
|
+
* @category Stat
|
|
567
|
+
* @since v2.0.0
|
|
556
568
|
*/
|
|
557
569
|
table: number;
|
|
558
570
|
/**
|
|
559
571
|
* The number of ResultTableCellIdsListener functions registered with the
|
|
560
572
|
* Queries object, since v3.3.
|
|
573
|
+
* @category Stat
|
|
574
|
+
* @since v2.0.0
|
|
561
575
|
*/
|
|
562
576
|
tableCellIds: number;
|
|
563
577
|
/**
|
|
564
578
|
* The number of ResultRowCountListener functions registered with the Queries
|
|
565
579
|
* object, since v4.1.
|
|
580
|
+
* @category Stat
|
|
581
|
+
* @since v2.0.0
|
|
566
582
|
*/
|
|
567
583
|
rowCount: number;
|
|
568
584
|
/**
|
|
569
585
|
* The number of ResultRowIdsListener functions registered with the Queries
|
|
570
586
|
* object.
|
|
587
|
+
* @category Stat
|
|
588
|
+
* @since v2.0.0
|
|
571
589
|
*/
|
|
572
590
|
rowIds: number;
|
|
573
591
|
/**
|
|
574
592
|
* The number of SortedRowIdsListener functions registered with the Queries
|
|
575
593
|
* object.
|
|
594
|
+
* @category Stat
|
|
595
|
+
* @since v2.0.0
|
|
576
596
|
*/
|
|
577
597
|
sortedRowIds: number;
|
|
578
598
|
/**
|
|
579
599
|
* The number of ResultRowListener functions registered with the Queries
|
|
580
600
|
* object.
|
|
601
|
+
* @category Stat
|
|
602
|
+
* @since v2.0.0
|
|
581
603
|
*/
|
|
582
604
|
row: number;
|
|
583
605
|
/**
|
|
584
606
|
* The number of ResultCellIdsListener functions registered with the Queries
|
|
585
607
|
* object.
|
|
608
|
+
* @category Stat
|
|
609
|
+
* @since v2.0.0
|
|
586
610
|
*/
|
|
587
611
|
cellIds: number;
|
|
588
612
|
/**
|
|
589
613
|
* The number of ResultCellListener functions registered with the Queries
|
|
590
614
|
* object.
|
|
615
|
+
* @category Stat
|
|
616
|
+
* @since v2.0.0
|
|
591
617
|
*/
|
|
592
618
|
cell: number;
|
|
593
619
|
};
|
|
@@ -609,6 +635,8 @@ export type GetTableCell = {
|
|
|
609
635
|
* or filtered.
|
|
610
636
|
* @param cellId The Id of the Cell to fetch the value for.
|
|
611
637
|
* @returns A Cell value or `undefined`.
|
|
638
|
+
* @category Callback
|
|
639
|
+
* @since v2.0.0
|
|
612
640
|
*/
|
|
613
641
|
(cellId: Id): CellOrUndefined;
|
|
614
642
|
/**
|
|
@@ -620,6 +648,8 @@ export type GetTableCell = {
|
|
|
620
648
|
* used.
|
|
621
649
|
* @param joinedCellId The Id of the Cell to fetch the value for.
|
|
622
650
|
* @returns A Cell value or `undefined`.
|
|
651
|
+
* @category Callback
|
|
652
|
+
* @since v2.0.0
|
|
623
653
|
*/
|
|
624
654
|
(joinedTableId: Id, joinedCellId: Id): CellOrUndefined;
|
|
625
655
|
};
|
|
@@ -733,6 +763,8 @@ export type Select = {
|
|
|
733
763
|
* @param cellId The Id of the Cell to fetch the value for.
|
|
734
764
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
735
765
|
* aliased.
|
|
766
|
+
* @category Definition
|
|
767
|
+
* @since v2.0.0
|
|
736
768
|
*/
|
|
737
769
|
(cellId: Id): SelectedAs;
|
|
738
770
|
/**
|
|
@@ -745,6 +777,8 @@ export type Select = {
|
|
|
745
777
|
* @param joinedCellId The Id of the Cell to fetch the value for.
|
|
746
778
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
747
779
|
* aliased.
|
|
780
|
+
* @category Definition
|
|
781
|
+
* @since v2.0.0
|
|
748
782
|
*/
|
|
749
783
|
(joinedTableId: Id, joinedCellId: Id): SelectedAs;
|
|
750
784
|
/**
|
|
@@ -756,6 +790,8 @@ export type Select = {
|
|
|
756
790
|
* value from multiple Cell values and the Row Id.
|
|
757
791
|
* @returns A SelectedAs object so that the selected Cell Id can be optionally
|
|
758
792
|
* aliased.
|
|
793
|
+
* @category Definition
|
|
794
|
+
* @since v2.0.0
|
|
759
795
|
*/
|
|
760
796
|
(
|
|
761
797
|
getCell: (getTableCell: GetTableCell, rowId: Id) => ResultCellOrUndefined,
|
|
@@ -813,6 +849,8 @@ export type Select = {
|
|
|
813
849
|
export type SelectedAs = {
|
|
814
850
|
/**
|
|
815
851
|
* A function that lets you specify an alias for the Cell Id.
|
|
852
|
+
* @category Definition
|
|
853
|
+
* @since v2.0.0
|
|
816
854
|
*/
|
|
817
855
|
as: (selectedCellId: Id) => void;
|
|
818
856
|
};
|
|
@@ -1000,6 +1038,8 @@ export type Join = {
|
|
|
1000
1038
|
* Table's Row Id.
|
|
1001
1039
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1002
1040
|
* aliased.
|
|
1041
|
+
* @category Definition
|
|
1042
|
+
* @since v2.0.0
|
|
1003
1043
|
*/
|
|
1004
1044
|
(joinedTableId: Id, on: Id): JoinedAs;
|
|
1005
1045
|
/**
|
|
@@ -1012,6 +1052,8 @@ export type Join = {
|
|
|
1012
1052
|
* Id.
|
|
1013
1053
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1014
1054
|
* aliased.
|
|
1055
|
+
* @category Definition
|
|
1056
|
+
* @since v2.0.0
|
|
1015
1057
|
*/
|
|
1016
1058
|
(
|
|
1017
1059
|
joinedTableId: Id,
|
|
@@ -1029,6 +1071,8 @@ export type Join = {
|
|
|
1029
1071
|
* joined Table's Row Id.
|
|
1030
1072
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1031
1073
|
* aliased.
|
|
1074
|
+
* @category Definition
|
|
1075
|
+
* @since v2.0.0
|
|
1032
1076
|
*/
|
|
1033
1077
|
(joinedTableId: Id, fromIntermediateJoinedTableId: Id, on: Id): JoinedAs;
|
|
1034
1078
|
/**
|
|
@@ -1045,6 +1089,8 @@ export type Join = {
|
|
|
1045
1089
|
* Table's Row Id.
|
|
1046
1090
|
* @returns A JoinedAs object so that the joined Table Id can be optionally
|
|
1047
1091
|
* aliased.
|
|
1092
|
+
* @category Definition
|
|
1093
|
+
* @since v2.0.0
|
|
1048
1094
|
*/
|
|
1049
1095
|
(
|
|
1050
1096
|
joinedTableId: Id,
|
|
@@ -1108,6 +1154,8 @@ export type Join = {
|
|
|
1108
1154
|
export type JoinedAs = {
|
|
1109
1155
|
/**
|
|
1110
1156
|
* A function that lets you specify an alias for the joined Table Id.
|
|
1157
|
+
* @category Definition
|
|
1158
|
+
* @since v2.0.0
|
|
1111
1159
|
*/
|
|
1112
1160
|
as: (joinedTableId: Id) => void;
|
|
1113
1161
|
};
|
|
@@ -1241,6 +1289,8 @@ export type Where = {
|
|
|
1241
1289
|
* @param cellId The Id of the Cell in the query's root Table to test.
|
|
1242
1290
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1243
1291
|
* included in the result.
|
|
1292
|
+
* @category Definition
|
|
1293
|
+
* @since v2.0.0
|
|
1244
1294
|
*/
|
|
1245
1295
|
(cellId: Id, equals: Cell): void;
|
|
1246
1296
|
/**
|
|
@@ -1252,6 +1302,8 @@ export type Where = {
|
|
|
1252
1302
|
* @param joinedCellId The Id of the Cell in the joined Table to test.
|
|
1253
1303
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1254
1304
|
* included in the result.
|
|
1305
|
+
* @category Definition
|
|
1306
|
+
* @since v2.0.0
|
|
1255
1307
|
*/
|
|
1256
1308
|
(joinedTableId: Id, joinedCellId: Id, equals: Cell): void;
|
|
1257
1309
|
/**
|
|
@@ -1260,6 +1312,8 @@ export type Where = {
|
|
|
1260
1312
|
* the main and (optionally) joined Tables.
|
|
1261
1313
|
* @param condition A callback that takes a GetTableCell function and that
|
|
1262
1314
|
* should return `true` for the Row to be included in the result.
|
|
1315
|
+
* @category Definition
|
|
1316
|
+
* @since v2.0.0
|
|
1263
1317
|
*/
|
|
1264
1318
|
(condition: (getTableCell: GetTableCell) => boolean): void;
|
|
1265
1319
|
};
|
|
@@ -1446,6 +1500,8 @@ export type Group = (
|
|
|
1446
1500
|
export type GroupedAs = {
|
|
1447
1501
|
/**
|
|
1448
1502
|
* A function that lets you specify an alias for the grouped Cell Id.
|
|
1503
|
+
* @category Definition
|
|
1504
|
+
* @since v2.0.0
|
|
1449
1505
|
*/
|
|
1450
1506
|
as: (groupedCellId: Id) => void;
|
|
1451
1507
|
};
|
|
@@ -1549,6 +1605,8 @@ export type Having = {
|
|
|
1549
1605
|
* @param selectedOrGroupedCellId The Id of the Cell in the query to test.
|
|
1550
1606
|
* @param equals The value that the Cell has to have for the Row to be
|
|
1551
1607
|
* included in the result.
|
|
1608
|
+
* @category Definition
|
|
1609
|
+
* @since v2.0.0
|
|
1552
1610
|
*/
|
|
1553
1611
|
(selectedOrGroupedCellId: Id, equals: Cell): void;
|
|
1554
1612
|
/**
|
|
@@ -1556,6 +1614,8 @@ export type Having = {
|
|
|
1556
1614
|
* those Rows which meet a calculated boolean condition.
|
|
1557
1615
|
* @param condition A callback that takes a GetCell function and that should
|
|
1558
1616
|
* return `true` for the Row to be included in the result.
|
|
1617
|
+
* @category Definition
|
|
1618
|
+
* @since v2.0.0
|
|
1559
1619
|
*/
|
|
1560
1620
|
(condition: (getSelectedOrGroupedCell: GetCell) => boolean): void;
|
|
1561
1621
|
};
|
|
@@ -1652,7 +1712,7 @@ export type Having = {
|
|
|
1652
1712
|
* queries.delListener(listenerId);
|
|
1653
1713
|
* queries.destroy();
|
|
1654
1714
|
* ```
|
|
1655
|
-
* @see
|
|
1715
|
+
* @see Using Queries guides
|
|
1656
1716
|
* @see Car Analysis demo
|
|
1657
1717
|
* @see Movie Database demo
|
|
1658
1718
|
* @category Queries
|