surrealdb_core/fnc/script/modules/surrealdb/functions/
array.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
use super::fut;
use super::run;
use crate::fnc::script::modules::impl_module_def;
use js::prelude::Async;

mod sort;
#[non_exhaustive]
pub struct Package;

impl_module_def!(
	Package,
	"array",
	"add" => run,
	"all" => fut Async,
	"any" => fut Async,
	"at" => run,
	"append" => run,
	"boolean_and" => run,
	"boolean_not" => run,
	"boolean_or" => run,
	"boolean_xor" => run,
	"clump" => run,
	"combine" => run,
	"complement" => run,
	"concat" => run,
	"difference" => run,
	"distinct" => run,
	"every" => fut Async,
	"fill" => run,
	"filter" => fut Async,
	"filter_index" => fut Async,
	"find" => fut Async,
	"find_index" => fut Async,
	"first" => run,
	"fold" => fut Async,
	"flatten" => run,
	"group" => run,
	"includes" => fut Async,
	"index_of" => fut Async,
	"insert" => run,
	"intersect" => run,
	"is_empty" => run,
	"join" => run,
	"knn" => run,
	"last" => run,
	"len" => run,
	"logical_and" => run,
	"logical_or" => run,
	"logical_xor" => run,
	"map" => fut Async,
	"matches" => run,
	"max" => run,
	"min" => run,
	"pop" => run,
	"push" => run,
	"prepend" => run,
	"range" => run,
	"reduce" => fut Async,
	"remove" => run,
	"repeat" => run,
	"reverse" => run,
	"shuffle" => run,
	"slice" => run,
	"some" => fut Async,
	"sort" => (sort::Package),
	"swap" => run,
	"transpose" => run,
	"union" => run,
	"windows" => run
);