Skip to content

Commit f4e4869

Browse files
committed
sqlite,doc,test: add aggregate function
1 parent 1de917b commit f4e4869

File tree

5 files changed

+513
-0
lines changed

5 files changed

+513
-0
lines changed

doc/api/sqlite.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,19 @@ added: v22.5.0
119119

120120
Constructs a new `DatabaseSync` instance.
121121

122+
### `database.aggregate(name, options)`
123+
124+
<!-- YAML
125+
added: REPLACEME
126+
-->
127+
128+
* `name` {string} The name of the SQLite function to create.
129+
* `options` {Object} Function configuration settings.
130+
* `start` {number | string | null | Array | Object | Function}
131+
* `step` {Function}
132+
* `inverse` {Function}
133+
* `result` {Function}
134+
122135
### `database.close()`
123136

124137
<!-- YAML

src/env_properties.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
V(inputs_string, "inputs") \
208208
V(internal_binding_string, "internalBinding") \
209209
V(internal_string, "internal") \
210+
V(inverse_string, "inverse") \
210211
V(ipv4_string, "IPv4") \
211212
V(ipv6_string, "IPv6") \
212213
V(isclosing_string, "isClosing") \
@@ -334,6 +335,7 @@
334335
"const __esModule = true;") \
335336
V(require_string, "require") \
336337
V(resource_string, "resource") \
338+
V(result_string, "result") \
337339
V(retry_string, "retry") \
338340
V(return_string, "return") \
339341
V(salt_length_string, "saltLength") \
@@ -360,12 +362,14 @@
360362
V(specifier_string, "specifier") \
361363
V(stack_string, "stack") \
362364
V(standard_name_string, "standardName") \
365+
V(start_string, "start") \
363366
V(start_time_string, "startTime") \
364367
V(state_string, "state") \
365368
V(statement_string, "statement") \
366369
V(stats_string, "stats") \
367370
V(status_string, "status") \
368371
V(stdio_string, "stdio") \
372+
V(step_string, "step") \
369373
V(stream_average_duration_string, "streamAverageDuration") \
370374
V(stream_count_string, "streamCount") \
371375
V(subject_string, "subject") \

0 commit comments

Comments
 (0)