@nocobase/plugin-collection-fdw 2.0.3
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/LICENSE +201 -0
- package/README.md +99 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/07d37b2045cf49ac.js +10 -0
- package/dist/client/19796e1ee00c3777.js +10 -0
- package/dist/client/545679e3c044a8fb.js +10 -0
- package/dist/client/components/CreateDatabaseServerAction.d.ts +10 -0
- package/dist/client/components/DatabaseServerSelect.d.ts +20 -0
- package/dist/client/components/EditDatabaseServerAction.d.ts +10 -0
- package/dist/client/components/PreviewFields.d.ts +10 -0
- package/dist/client/components/PreviewTable.d.ts +10 -0
- package/dist/client/components/RemoteTableSelect.d.ts +10 -0
- package/dist/client/components/SyncFieldsAction.d.ts +11 -0
- package/dist/client/components/UnSupportFields.d.ts +12 -0
- package/dist/client/components/schema.d.ts +19 -0
- package/dist/client/dccc3127ba4bb534.js +10 -0
- package/dist/client/ff008086e5ac8e5e.js +10 -0
- package/dist/client/hooks.d.ts +20 -0
- package/dist/client/index.d.ts +13 -0
- package/dist/client/index.js +10 -0
- package/dist/externalVersion.js +24 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +42 -0
- package/dist/locale/de-DE.json +17 -0
- package/dist/locale/en-US.json +17 -0
- package/dist/locale/es-ES.json +17 -0
- package/dist/locale/fr-FR.json +17 -0
- package/dist/locale/hu-HU.json +17 -0
- package/dist/locale/id-ID.json +17 -0
- package/dist/locale/index.d.ts +10 -0
- package/dist/locale/index.js +42 -0
- package/dist/locale/it-IT.json +17 -0
- package/dist/locale/ja-JP.json +17 -0
- package/dist/locale/ko-KR.json +17 -0
- package/dist/locale/nl-NL.json +17 -0
- package/dist/locale/pt-BR.json +17 -0
- package/dist/locale/ru-RU.json +18 -0
- package/dist/locale/tr-TR.json +17 -0
- package/dist/locale/uk-UA.json +17 -0
- package/dist/locale/vi-VN.json +17 -0
- package/dist/locale/zh-CN.json +17 -0
- package/dist/locale/zh-TW.json +17 -0
- package/dist/node_modules/node-sql-parser/LICENSE +201 -0
- package/dist/node_modules/node-sql-parser/ast/postgresql.ts +1834 -0
- package/dist/node_modules/node-sql-parser/build/bigquery.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/bigquery.js +2 -0
- package/dist/node_modules/node-sql-parser/build/db2.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/db2.js +2 -0
- package/dist/node_modules/node-sql-parser/build/flinksql.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/flinksql.js +2 -0
- package/dist/node_modules/node-sql-parser/build/hive.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/hive.js +2 -0
- package/dist/node_modules/node-sql-parser/build/mariadb.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/mariadb.js +2 -0
- package/dist/node_modules/node-sql-parser/build/mysql.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/mysql.js +2 -0
- package/dist/node_modules/node-sql-parser/build/noql.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/noql.js +2 -0
- package/dist/node_modules/node-sql-parser/build/postgresql.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/postgresql.js +2 -0
- package/dist/node_modules/node-sql-parser/build/snowflake.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/snowflake.js +2 -0
- package/dist/node_modules/node-sql-parser/build/sqlite.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/sqlite.js +2 -0
- package/dist/node_modules/node-sql-parser/build/transactsql.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/build/transactsql.js +2 -0
- package/dist/node_modules/node-sql-parser/index.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/index.js +1 -0
- package/dist/node_modules/node-sql-parser/lib/aggregation.js +39 -0
- package/dist/node_modules/node-sql-parser/lib/alter.js +174 -0
- package/dist/node_modules/node-sql-parser/lib/analyze.js +40 -0
- package/dist/node_modules/node-sql-parser/lib/array-struct.js +60 -0
- package/dist/node_modules/node-sql-parser/lib/assign.js +33 -0
- package/dist/node_modules/node-sql-parser/lib/binary.js +46 -0
- package/dist/node_modules/node-sql-parser/lib/case.js +39 -0
- package/dist/node_modules/node-sql-parser/lib/column.js +221 -0
- package/dist/node_modules/node-sql-parser/lib/command.js +299 -0
- package/dist/node_modules/node-sql-parser/lib/constrain.js +45 -0
- package/dist/node_modules/node-sql-parser/lib/create.js +439 -0
- package/dist/node_modules/node-sql-parser/lib/delete.js +42 -0
- package/dist/node_modules/node-sql-parser/lib/exec.js +37 -0
- package/dist/node_modules/node-sql-parser/lib/expr.js +123 -0
- package/dist/node_modules/node-sql-parser/lib/func.js +152 -0
- package/dist/node_modules/node-sql-parser/lib/index-definition.js +106 -0
- package/dist/node_modules/node-sql-parser/lib/insert.js +111 -0
- package/dist/node_modules/node-sql-parser/lib/interval.js +28 -0
- package/dist/node_modules/node-sql-parser/lib/json.js +28 -0
- package/dist/node_modules/node-sql-parser/lib/limit.js +45 -0
- package/dist/node_modules/node-sql-parser/lib/over.js +39 -0
- package/dist/node_modules/node-sql-parser/lib/parser.all.js +33 -0
- package/dist/node_modules/node-sql-parser/lib/parser.js +82 -0
- package/dist/node_modules/node-sql-parser/lib/parser.single.js +23 -0
- package/dist/node_modules/node-sql-parser/lib/proc.js +39 -0
- package/dist/node_modules/node-sql-parser/lib/select.js +132 -0
- package/dist/node_modules/node-sql-parser/lib/show.js +88 -0
- package/dist/node_modules/node-sql-parser/lib/sql.js +43 -0
- package/dist/node_modules/node-sql-parser/lib/tables.js +211 -0
- package/dist/node_modules/node-sql-parser/lib/transaction.js +26 -0
- package/dist/node_modules/node-sql-parser/lib/union.js +81 -0
- package/dist/node_modules/node-sql-parser/lib/update.js +59 -0
- package/dist/node_modules/node-sql-parser/lib/util.js +444 -0
- package/dist/node_modules/node-sql-parser/lib/window.js +85 -0
- package/dist/node_modules/node-sql-parser/lib/with.js +37 -0
- package/dist/node_modules/node-sql-parser/package.json +1 -0
- package/dist/node_modules/node-sql-parser/types.d.ts +227 -0
- package/dist/node_modules/node-sql-parser/umd/bigquery.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/bigquery.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/db2.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/db2.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/flinksql.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/flinksql.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/hive.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/hive.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/index.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/index.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/mariadb.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/mariadb.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/mysql.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/mysql.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/noql.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/noql.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/postgresql.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/postgresql.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/snowflake.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/snowflake.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/sqlite.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/sqlite.umd.js +2 -0
- package/dist/node_modules/node-sql-parser/umd/transactsql.umd.d.ts +1 -0
- package/dist/node_modules/node-sql-parser/umd/transactsql.umd.js +2 -0
- package/dist/server/bridges/mariadb-to-mariadb.d.ts +3 -0
- package/dist/server/bridges/mariadb-to-mariadb.js +38 -0
- package/dist/server/bridges/mysql-to-mysql.d.ts +13 -0
- package/dist/server/bridges/mysql-to-mysql.js +117 -0
- package/dist/server/bridges/mysql-to-pg.d.ts +8 -0
- package/dist/server/bridges/mysql-to-pg.js +9 -0
- package/dist/server/bridges/pg-to-pg.d.ts +21 -0
- package/dist/server/bridges/pg-to-pg.js +137 -0
- package/dist/server/bridges/remote-local-bridge.d.ts +57 -0
- package/dist/server/bridges/remote-local-bridge.js +73 -0
- package/dist/server/collections/database-server-collection.d.ts +10 -0
- package/dist/server/collections/database-server-collection.js +54 -0
- package/dist/server/foreign-data-collection.d.ts +22 -0
- package/dist/server/foreign-data-collection.js +118 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/models/database-server.d.ts +29 -0
- package/dist/server/models/database-server.js +226 -0
- package/dist/server/plugin.d.ts +14 -0
- package/dist/server/plugin.js +111 -0
- package/dist/server/resourcers/tables.d.ts +17 -0
- package/dist/server/resourcers/tables.js +181 -0
- package/package.json +43 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// Type definitions for node-sql-parser 1.0
|
|
2
|
+
// Project: https://github.com/taozhi8833998/node-sql-parser#readme
|
|
3
|
+
// Definitions by: taozhi8833998 <https://github.com/taozhi8833998>
|
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
+
// TypeScript Version: 2.4
|
|
6
|
+
|
|
7
|
+
export interface With {
|
|
8
|
+
name: string;
|
|
9
|
+
stmt: any[];
|
|
10
|
+
columns?: any[];
|
|
11
|
+
}
|
|
12
|
+
export type WhilteListCheckMode = "table" | "column";
|
|
13
|
+
export interface Option {
|
|
14
|
+
database?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TableColumnAst {
|
|
18
|
+
tableList: string[];
|
|
19
|
+
columnList: string[];
|
|
20
|
+
ast: AST[] | AST;
|
|
21
|
+
}
|
|
22
|
+
export interface From {
|
|
23
|
+
db: string | null;
|
|
24
|
+
table: string;
|
|
25
|
+
as: string | null;
|
|
26
|
+
}
|
|
27
|
+
export interface Dual {
|
|
28
|
+
type: "dual";
|
|
29
|
+
}
|
|
30
|
+
export interface LimitValue {
|
|
31
|
+
type: string;
|
|
32
|
+
value: number;
|
|
33
|
+
}
|
|
34
|
+
export interface Limit {
|
|
35
|
+
seperator: string;
|
|
36
|
+
value: LimitValue[];
|
|
37
|
+
}
|
|
38
|
+
export interface OrderBy {
|
|
39
|
+
type: "ASC" | "DESC";
|
|
40
|
+
expr: any;
|
|
41
|
+
}
|
|
42
|
+
export interface ColumnRef {
|
|
43
|
+
type: "column_ref";
|
|
44
|
+
table: string | null;
|
|
45
|
+
column: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SetList {
|
|
48
|
+
column: string;
|
|
49
|
+
value: any;
|
|
50
|
+
table: string | null;
|
|
51
|
+
}
|
|
52
|
+
export interface InsertReplaceValue {
|
|
53
|
+
type: "expr_list";
|
|
54
|
+
value: any[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface Star {
|
|
58
|
+
type: "star";
|
|
59
|
+
value: "*";
|
|
60
|
+
}
|
|
61
|
+
export interface AggrFunc {
|
|
62
|
+
type: "aggr_func";
|
|
63
|
+
name: string;
|
|
64
|
+
args: ColumnRef | AggrFunc | Star | null;
|
|
65
|
+
}
|
|
66
|
+
export interface Function {
|
|
67
|
+
type: "function";
|
|
68
|
+
name: string;
|
|
69
|
+
args: ExprList;
|
|
70
|
+
suffix?: any;
|
|
71
|
+
}
|
|
72
|
+
export interface Column {
|
|
73
|
+
expr: ColumnRef | AggrFunc | Function;
|
|
74
|
+
as: string | null;
|
|
75
|
+
type?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type Param = { type: "param"; value: string };
|
|
79
|
+
|
|
80
|
+
type Value = { type: string; value: any };
|
|
81
|
+
|
|
82
|
+
export type Expr =
|
|
83
|
+
| {
|
|
84
|
+
type: "binary_expr";
|
|
85
|
+
operator: "AND" | "OR";
|
|
86
|
+
left: Expr;
|
|
87
|
+
right: Expr;
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
type: "binary_expr";
|
|
91
|
+
operator: string;
|
|
92
|
+
left: ColumnRef | Param | Value;
|
|
93
|
+
right: ColumnRef | Param | Value;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type ExprList = {
|
|
97
|
+
type: "expr_list";
|
|
98
|
+
value: Expr[];
|
|
99
|
+
};
|
|
100
|
+
export interface Select {
|
|
101
|
+
with: With | null;
|
|
102
|
+
type: "select";
|
|
103
|
+
options: any[] | null;
|
|
104
|
+
distinct: "DISTINCT" | null;
|
|
105
|
+
columns: any[] | Column[];
|
|
106
|
+
from: Array<From | Dual | any> | null;
|
|
107
|
+
where: Expr | Function | null;
|
|
108
|
+
groupby: ColumnRef[] | null;
|
|
109
|
+
having: any[] | null;
|
|
110
|
+
orderby: OrderBy[] | null;
|
|
111
|
+
limit: Limit | null;
|
|
112
|
+
_orderby?: OrderBy[] | null;
|
|
113
|
+
_limit?: Limit | null;
|
|
114
|
+
parentheses_symbol?: boolean;
|
|
115
|
+
_parentheses?: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface Insert_Replace {
|
|
118
|
+
type: "replace" | "insert";
|
|
119
|
+
db: string | null;
|
|
120
|
+
table: any;
|
|
121
|
+
columns: string[] | null;
|
|
122
|
+
values: InsertReplaceValue[];
|
|
123
|
+
}
|
|
124
|
+
export interface Update {
|
|
125
|
+
type: "update";
|
|
126
|
+
db: string | null;
|
|
127
|
+
table: Array<From | Dual> | null;
|
|
128
|
+
set: SetList[];
|
|
129
|
+
where: Expr | Function | null;
|
|
130
|
+
}
|
|
131
|
+
export interface Delete {
|
|
132
|
+
type: "delete";
|
|
133
|
+
table: any;
|
|
134
|
+
from: Array<From | Dual>;
|
|
135
|
+
where: Expr | Function | null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface Alter {
|
|
139
|
+
type: "alter";
|
|
140
|
+
table: From[];
|
|
141
|
+
expr: any;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface Use {
|
|
145
|
+
type: "use";
|
|
146
|
+
db: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface Create {
|
|
150
|
+
type: "create";
|
|
151
|
+
keyword: "table" | "index" | "database";
|
|
152
|
+
temporary?: "temporary" | null;
|
|
153
|
+
table?: { db: string; table: string }[];
|
|
154
|
+
if_not_exists?: "if not exists" | null;
|
|
155
|
+
like?: {
|
|
156
|
+
type: "like";
|
|
157
|
+
table: string;
|
|
158
|
+
parentheses?: boolean;
|
|
159
|
+
} | null;
|
|
160
|
+
ignore_replace?: "ignore" | "replace" | null;
|
|
161
|
+
as?: string | null;
|
|
162
|
+
query_expr?: any | null;
|
|
163
|
+
create_definitions?: any[] | null;
|
|
164
|
+
table_options?: any[] | null;
|
|
165
|
+
index_using?: {
|
|
166
|
+
keyword: "using";
|
|
167
|
+
type: "btree" | "hash";
|
|
168
|
+
} | null;
|
|
169
|
+
index?: string | null;
|
|
170
|
+
on_kw?: "on" | null;
|
|
171
|
+
index_columns?: any[] | null;
|
|
172
|
+
index_type?: "unique" | "fulltext" | "spatial" | null;
|
|
173
|
+
index_options?: any[] | null;
|
|
174
|
+
algorithm_option?: {
|
|
175
|
+
type: "alter";
|
|
176
|
+
keyword: "algorithm";
|
|
177
|
+
resource: "algorithm";
|
|
178
|
+
symbol: "=" | null;
|
|
179
|
+
algorithm: "default" | "instant" | "inplace" | "copy";
|
|
180
|
+
} | null;
|
|
181
|
+
lock_option?: {
|
|
182
|
+
type: "alter";
|
|
183
|
+
keyword: "lock";
|
|
184
|
+
resource: "lock";
|
|
185
|
+
symbol: "=" | null;
|
|
186
|
+
lock: "default" | "none" | "shared" | "exclusive";
|
|
187
|
+
} | null;
|
|
188
|
+
database?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface Drop {
|
|
192
|
+
type: "drop";
|
|
193
|
+
keyword: string;
|
|
194
|
+
name: any[];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type AST =
|
|
198
|
+
| Use
|
|
199
|
+
| Select
|
|
200
|
+
| Insert_Replace
|
|
201
|
+
| Update
|
|
202
|
+
| Delete
|
|
203
|
+
| Alter
|
|
204
|
+
| Create
|
|
205
|
+
| Drop;
|
|
206
|
+
|
|
207
|
+
export class Parser {
|
|
208
|
+
constructor();
|
|
209
|
+
|
|
210
|
+
parse(sql: string, opt?: Option): TableColumnAst;
|
|
211
|
+
|
|
212
|
+
astify(sql: string, opt?: Option): AST[] | AST;
|
|
213
|
+
|
|
214
|
+
sqlify(ast: AST[] | AST, opt?: Option): string;
|
|
215
|
+
|
|
216
|
+
exprToSQL(ast: any, opt?: Option): string;
|
|
217
|
+
|
|
218
|
+
whiteListCheck(
|
|
219
|
+
sql: string,
|
|
220
|
+
whiteList: string[],
|
|
221
|
+
opt?: Option
|
|
222
|
+
): Error | undefined;
|
|
223
|
+
|
|
224
|
+
tableList(sql: string, opt?: Option): string[];
|
|
225
|
+
|
|
226
|
+
columnList(sql: string, opt?: Option): string[];
|
|
227
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|