Debian Codegraph @

frontend/src/codemirror/bql-grammar.ts

raw
1 export default {
2 columns: [
3 "account",
4 "amount",
5 "balance",
6 "close",
7 "comment",
8 "cost_currency",
9 "cost_date",
10 "cost_label",
11 "cost_number",
12 "currency",
13 "date",
14 "day",
15 "description",
16 "discrepancy",
17 "entry",
18 "filename",
19 "flag",
20 "id",
21 "lineno",
22 "links",
23 "location",
24 "meta",
25 "month",
26 "name",
27 "narration",
28 "number",
29 "open",
30 "other_accounts",
31 "payee",
32 "position",
33 "posting_flag",
34 "price",
35 "tags",
36 "tolerance",
37 "type",
38 "weight",
39 "year",
40 ],
41 functions: [
42 "abs",
43 "account_sortkey",
44 "any_meta",
45 "bool",
46 "close_date",
47 "commodity",
48 "commodity_meta",
49 "convert",
50 "cost",
51 "count",
52 "currency",
53 "currency_meta",
54 "date",
55 "date_add",
56 "date_diff",
57 "date_part",
58 "date_trunc",
59 "day",
60 "decimal",
61 "empty",
62 "entry_meta",
63 "filter_currency",
64 "findfirst",
65 "first",
66 "getitem",
67 "getprice",
68 "grep",
69 "grepn",
70 "has_account",
71 "int",
72 "interval",
73 "joinstr",
74 "last",
75 "leaf",
76 "length",
77 "lower",
78 "max",
79 "maxwidth",
80 "meta",
81 "min",
82 "month",
83 "neg",
84 "number",
85 "only",
86 "open_date",
87 "open_meta",
88 "parent",
89 "parse_date",
90 "possign",
91 "quarter",
92 "repr",
93 "root",
94 "round",
95 "safediv",
96 "splitcomp",
97 "str",
98 "subst",
99 "substr",
100 "sum",
101 "today",
102 "units",
103 "upper",
104 "value",
105 "weekday",
106 "year",
107 "yearmonth",
108 ],
109 keywords: [
110 "and",
111 "as",
112 "asc",
113 "balances",
114 "by",
115 "desc",
116 "distinct",
117 "false",
118 "from",
119 "group",
120 "having",
121 "in",
122 "is",
123 "journal",
124 "limit",
125 "not",
126 "or",
127 "order",
128 "pivot",
129 "print",
130 "select",
131 "true",
132 "where",
133 ],
134 };