@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.
Files changed (155) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/07d37b2045cf49ac.js +10 -0
  6. package/dist/client/19796e1ee00c3777.js +10 -0
  7. package/dist/client/545679e3c044a8fb.js +10 -0
  8. package/dist/client/components/CreateDatabaseServerAction.d.ts +10 -0
  9. package/dist/client/components/DatabaseServerSelect.d.ts +20 -0
  10. package/dist/client/components/EditDatabaseServerAction.d.ts +10 -0
  11. package/dist/client/components/PreviewFields.d.ts +10 -0
  12. package/dist/client/components/PreviewTable.d.ts +10 -0
  13. package/dist/client/components/RemoteTableSelect.d.ts +10 -0
  14. package/dist/client/components/SyncFieldsAction.d.ts +11 -0
  15. package/dist/client/components/UnSupportFields.d.ts +12 -0
  16. package/dist/client/components/schema.d.ts +19 -0
  17. package/dist/client/dccc3127ba4bb534.js +10 -0
  18. package/dist/client/ff008086e5ac8e5e.js +10 -0
  19. package/dist/client/hooks.d.ts +20 -0
  20. package/dist/client/index.d.ts +13 -0
  21. package/dist/client/index.js +10 -0
  22. package/dist/externalVersion.js +24 -0
  23. package/dist/index.d.ts +9 -0
  24. package/dist/index.js +42 -0
  25. package/dist/locale/de-DE.json +17 -0
  26. package/dist/locale/en-US.json +17 -0
  27. package/dist/locale/es-ES.json +17 -0
  28. package/dist/locale/fr-FR.json +17 -0
  29. package/dist/locale/hu-HU.json +17 -0
  30. package/dist/locale/id-ID.json +17 -0
  31. package/dist/locale/index.d.ts +10 -0
  32. package/dist/locale/index.js +42 -0
  33. package/dist/locale/it-IT.json +17 -0
  34. package/dist/locale/ja-JP.json +17 -0
  35. package/dist/locale/ko-KR.json +17 -0
  36. package/dist/locale/nl-NL.json +17 -0
  37. package/dist/locale/pt-BR.json +17 -0
  38. package/dist/locale/ru-RU.json +18 -0
  39. package/dist/locale/tr-TR.json +17 -0
  40. package/dist/locale/uk-UA.json +17 -0
  41. package/dist/locale/vi-VN.json +17 -0
  42. package/dist/locale/zh-CN.json +17 -0
  43. package/dist/locale/zh-TW.json +17 -0
  44. package/dist/node_modules/node-sql-parser/LICENSE +201 -0
  45. package/dist/node_modules/node-sql-parser/ast/postgresql.ts +1834 -0
  46. package/dist/node_modules/node-sql-parser/build/bigquery.d.ts +1 -0
  47. package/dist/node_modules/node-sql-parser/build/bigquery.js +2 -0
  48. package/dist/node_modules/node-sql-parser/build/db2.d.ts +1 -0
  49. package/dist/node_modules/node-sql-parser/build/db2.js +2 -0
  50. package/dist/node_modules/node-sql-parser/build/flinksql.d.ts +1 -0
  51. package/dist/node_modules/node-sql-parser/build/flinksql.js +2 -0
  52. package/dist/node_modules/node-sql-parser/build/hive.d.ts +1 -0
  53. package/dist/node_modules/node-sql-parser/build/hive.js +2 -0
  54. package/dist/node_modules/node-sql-parser/build/mariadb.d.ts +1 -0
  55. package/dist/node_modules/node-sql-parser/build/mariadb.js +2 -0
  56. package/dist/node_modules/node-sql-parser/build/mysql.d.ts +1 -0
  57. package/dist/node_modules/node-sql-parser/build/mysql.js +2 -0
  58. package/dist/node_modules/node-sql-parser/build/noql.d.ts +1 -0
  59. package/dist/node_modules/node-sql-parser/build/noql.js +2 -0
  60. package/dist/node_modules/node-sql-parser/build/postgresql.d.ts +1 -0
  61. package/dist/node_modules/node-sql-parser/build/postgresql.js +2 -0
  62. package/dist/node_modules/node-sql-parser/build/snowflake.d.ts +1 -0
  63. package/dist/node_modules/node-sql-parser/build/snowflake.js +2 -0
  64. package/dist/node_modules/node-sql-parser/build/sqlite.d.ts +1 -0
  65. package/dist/node_modules/node-sql-parser/build/sqlite.js +2 -0
  66. package/dist/node_modules/node-sql-parser/build/transactsql.d.ts +1 -0
  67. package/dist/node_modules/node-sql-parser/build/transactsql.js +2 -0
  68. package/dist/node_modules/node-sql-parser/index.d.ts +1 -0
  69. package/dist/node_modules/node-sql-parser/index.js +1 -0
  70. package/dist/node_modules/node-sql-parser/lib/aggregation.js +39 -0
  71. package/dist/node_modules/node-sql-parser/lib/alter.js +174 -0
  72. package/dist/node_modules/node-sql-parser/lib/analyze.js +40 -0
  73. package/dist/node_modules/node-sql-parser/lib/array-struct.js +60 -0
  74. package/dist/node_modules/node-sql-parser/lib/assign.js +33 -0
  75. package/dist/node_modules/node-sql-parser/lib/binary.js +46 -0
  76. package/dist/node_modules/node-sql-parser/lib/case.js +39 -0
  77. package/dist/node_modules/node-sql-parser/lib/column.js +221 -0
  78. package/dist/node_modules/node-sql-parser/lib/command.js +299 -0
  79. package/dist/node_modules/node-sql-parser/lib/constrain.js +45 -0
  80. package/dist/node_modules/node-sql-parser/lib/create.js +439 -0
  81. package/dist/node_modules/node-sql-parser/lib/delete.js +42 -0
  82. package/dist/node_modules/node-sql-parser/lib/exec.js +37 -0
  83. package/dist/node_modules/node-sql-parser/lib/expr.js +123 -0
  84. package/dist/node_modules/node-sql-parser/lib/func.js +152 -0
  85. package/dist/node_modules/node-sql-parser/lib/index-definition.js +106 -0
  86. package/dist/node_modules/node-sql-parser/lib/insert.js +111 -0
  87. package/dist/node_modules/node-sql-parser/lib/interval.js +28 -0
  88. package/dist/node_modules/node-sql-parser/lib/json.js +28 -0
  89. package/dist/node_modules/node-sql-parser/lib/limit.js +45 -0
  90. package/dist/node_modules/node-sql-parser/lib/over.js +39 -0
  91. package/dist/node_modules/node-sql-parser/lib/parser.all.js +33 -0
  92. package/dist/node_modules/node-sql-parser/lib/parser.js +82 -0
  93. package/dist/node_modules/node-sql-parser/lib/parser.single.js +23 -0
  94. package/dist/node_modules/node-sql-parser/lib/proc.js +39 -0
  95. package/dist/node_modules/node-sql-parser/lib/select.js +132 -0
  96. package/dist/node_modules/node-sql-parser/lib/show.js +88 -0
  97. package/dist/node_modules/node-sql-parser/lib/sql.js +43 -0
  98. package/dist/node_modules/node-sql-parser/lib/tables.js +211 -0
  99. package/dist/node_modules/node-sql-parser/lib/transaction.js +26 -0
  100. package/dist/node_modules/node-sql-parser/lib/union.js +81 -0
  101. package/dist/node_modules/node-sql-parser/lib/update.js +59 -0
  102. package/dist/node_modules/node-sql-parser/lib/util.js +444 -0
  103. package/dist/node_modules/node-sql-parser/lib/window.js +85 -0
  104. package/dist/node_modules/node-sql-parser/lib/with.js +37 -0
  105. package/dist/node_modules/node-sql-parser/package.json +1 -0
  106. package/dist/node_modules/node-sql-parser/types.d.ts +227 -0
  107. package/dist/node_modules/node-sql-parser/umd/bigquery.umd.d.ts +1 -0
  108. package/dist/node_modules/node-sql-parser/umd/bigquery.umd.js +2 -0
  109. package/dist/node_modules/node-sql-parser/umd/db2.umd.d.ts +1 -0
  110. package/dist/node_modules/node-sql-parser/umd/db2.umd.js +2 -0
  111. package/dist/node_modules/node-sql-parser/umd/flinksql.umd.d.ts +1 -0
  112. package/dist/node_modules/node-sql-parser/umd/flinksql.umd.js +2 -0
  113. package/dist/node_modules/node-sql-parser/umd/hive.umd.d.ts +1 -0
  114. package/dist/node_modules/node-sql-parser/umd/hive.umd.js +2 -0
  115. package/dist/node_modules/node-sql-parser/umd/index.umd.d.ts +1 -0
  116. package/dist/node_modules/node-sql-parser/umd/index.umd.js +2 -0
  117. package/dist/node_modules/node-sql-parser/umd/mariadb.umd.d.ts +1 -0
  118. package/dist/node_modules/node-sql-parser/umd/mariadb.umd.js +2 -0
  119. package/dist/node_modules/node-sql-parser/umd/mysql.umd.d.ts +1 -0
  120. package/dist/node_modules/node-sql-parser/umd/mysql.umd.js +2 -0
  121. package/dist/node_modules/node-sql-parser/umd/noql.umd.d.ts +1 -0
  122. package/dist/node_modules/node-sql-parser/umd/noql.umd.js +2 -0
  123. package/dist/node_modules/node-sql-parser/umd/postgresql.umd.d.ts +1 -0
  124. package/dist/node_modules/node-sql-parser/umd/postgresql.umd.js +2 -0
  125. package/dist/node_modules/node-sql-parser/umd/snowflake.umd.d.ts +1 -0
  126. package/dist/node_modules/node-sql-parser/umd/snowflake.umd.js +2 -0
  127. package/dist/node_modules/node-sql-parser/umd/sqlite.umd.d.ts +1 -0
  128. package/dist/node_modules/node-sql-parser/umd/sqlite.umd.js +2 -0
  129. package/dist/node_modules/node-sql-parser/umd/transactsql.umd.d.ts +1 -0
  130. package/dist/node_modules/node-sql-parser/umd/transactsql.umd.js +2 -0
  131. package/dist/server/bridges/mariadb-to-mariadb.d.ts +3 -0
  132. package/dist/server/bridges/mariadb-to-mariadb.js +38 -0
  133. package/dist/server/bridges/mysql-to-mysql.d.ts +13 -0
  134. package/dist/server/bridges/mysql-to-mysql.js +117 -0
  135. package/dist/server/bridges/mysql-to-pg.d.ts +8 -0
  136. package/dist/server/bridges/mysql-to-pg.js +9 -0
  137. package/dist/server/bridges/pg-to-pg.d.ts +21 -0
  138. package/dist/server/bridges/pg-to-pg.js +137 -0
  139. package/dist/server/bridges/remote-local-bridge.d.ts +57 -0
  140. package/dist/server/bridges/remote-local-bridge.js +73 -0
  141. package/dist/server/collections/database-server-collection.d.ts +10 -0
  142. package/dist/server/collections/database-server-collection.js +54 -0
  143. package/dist/server/foreign-data-collection.d.ts +22 -0
  144. package/dist/server/foreign-data-collection.js +118 -0
  145. package/dist/server/index.d.ts +9 -0
  146. package/dist/server/index.js +42 -0
  147. package/dist/server/models/database-server.d.ts +29 -0
  148. package/dist/server/models/database-server.js +226 -0
  149. package/dist/server/plugin.d.ts +14 -0
  150. package/dist/server/plugin.js +111 -0
  151. package/dist/server/resourcers/tables.d.ts +17 -0
  152. package/dist/server/resourcers/tables.js +181 -0
  153. package/package.json +43 -0
  154. package/server.d.ts +2 -0
  155. 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';