@zerodep-dev/easy-query-ts-tdengine 0.0.0-stage → 0.2.1
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 +11 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +216 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -3
- package/src/index.ts +302 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zerodep-dev/easy-query-ts-tdengine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TDengine 3.x 方言与驱动适配(官方驱动 `@tdengine/websocket`,对应官方的 sql-tsdb):时间戳主键的时序表,写入覆盖、按时间删除、查询与聚合。
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { sqlConnect, WSConfig } from '@tdengine/websocket';
|
|
7
|
+
import { tdengine } from '@zerodep-dev/easy-query-ts-tdengine';
|
|
8
|
+
|
|
9
|
+
const db = createDb({ schema, adapter: tdengine(await sqlConnect(conf)) });
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
详见仓库 [easy-query-ts](https://github.com/kenconnet666/easy-query-ts) 的 `docs/features/ts-tdengine.md`。需要同时安装核心包与 `@tdengine/websocket`。许可证:Apache-2.0。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7.1.0-beta","root":[244],"packageJsons":["../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/package.json","../../../node_modules/.pnpm/@types+triple-beam@1.3.5/node_modules/@types/triple-beam/package.json","../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/package.json","../../../node_modules/.pnpm/events@3.3.0/node_modules/events/package.json","../../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/package.json","../../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/package.json","../../../node_modules/.pnpm/triple-beam@1.4.1/node_modules/triple-beam/package.json","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/package.json","../../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/package.json","../../core/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/sql/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/tmq/package.json","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/node_modules/winston/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/assert/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/assert/strict/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/async_hooks/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/buffer/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/child_process/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/cluster/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/console/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/constants/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/crypto/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/dgram/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/diagnostics_channel/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/dns/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/dns/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/domain/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/events/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/fs/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/fs/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/http/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/http2/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/https/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/inspector/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/inspector/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/module/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/net/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/assert/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/compatibility/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/dns/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/fs/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/readline/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/stream/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/timers/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/os/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/path/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/path/posix/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/path/win32/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/perf_hooks/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/punycode/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/querystring/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/readline/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/readline/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/repl/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/stream/consumers/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/stream/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/stream/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/stream/web/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/string_decoder/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/timers/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/timers/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/tls/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/trace_events/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/tty/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/url/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/util/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/util/types/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/v8/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/vm/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/wasi/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/worker_threads/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/zlib/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/assert/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/assert/strict/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/async_hooks/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/buffer/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/child_process/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/cluster/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/console/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/constants/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/crypto/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/dgram/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/diagnostics_channel/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/dns/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/dns/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/domain/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/events/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/fs/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/fs/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/http/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/http2/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/https/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/inspector/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/inspector/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/module/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/net/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/os/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/path/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/path/posix/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/path/win32/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/perf_hooks/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/punycode/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/querystring/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/readline/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/readline/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/repl/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/stream/consumers/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/stream/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/stream/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/stream/web/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/string_decoder/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/timers/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/timers/promises/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/tls/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/trace_events/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/tty/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/url/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/util/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/util/types/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/v8/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/vm/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/wasi/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/worker_threads/package.json","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/zlib/package.json","../../../node_modules/.pnpm/node_modules/@types/assert/package.json","../../../node_modules/.pnpm/node_modules/@types/assert/strict/package.json","../../../node_modules/.pnpm/node_modules/@types/async_hooks/package.json","../../../node_modules/.pnpm/node_modules/@types/child_process/package.json","../../../node_modules/.pnpm/node_modules/@types/cluster/package.json","../../../node_modules/.pnpm/node_modules/@types/console/package.json","../../../node_modules/.pnpm/node_modules/@types/constants/package.json","../../../node_modules/.pnpm/node_modules/@types/crypto/package.json","../../../node_modules/.pnpm/node_modules/@types/dgram/package.json","../../../node_modules/.pnpm/node_modules/@types/diagnostics_channel/package.json","../../../node_modules/.pnpm/node_modules/@types/dns/package.json","../../../node_modules/.pnpm/node_modules/@types/dns/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/domain/package.json","../../../node_modules/.pnpm/node_modules/@types/events/package.json","../../../node_modules/.pnpm/node_modules/@types/fs/package.json","../../../node_modules/.pnpm/node_modules/@types/fs/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/http/package.json","../../../node_modules/.pnpm/node_modules/@types/http2/package.json","../../../node_modules/.pnpm/node_modules/@types/https/package.json","../../../node_modules/.pnpm/node_modules/@types/inspector/package.json","../../../node_modules/.pnpm/node_modules/@types/inspector/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/module/package.json","../../../node_modules/.pnpm/node_modules/@types/net/package.json","../../../node_modules/.pnpm/node_modules/@types/os/package.json","../../../node_modules/.pnpm/node_modules/@types/path/package.json","../../../node_modules/.pnpm/node_modules/@types/path/posix/package.json","../../../node_modules/.pnpm/node_modules/@types/path/win32/package.json","../../../node_modules/.pnpm/node_modules/@types/perf_hooks/package.json","../../../node_modules/.pnpm/node_modules/@types/punycode/package.json","../../../node_modules/.pnpm/node_modules/@types/querystring/package.json","../../../node_modules/.pnpm/node_modules/@types/readline/package.json","../../../node_modules/.pnpm/node_modules/@types/readline/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/repl/package.json","../../../node_modules/.pnpm/node_modules/@types/stream/consumers/package.json","../../../node_modules/.pnpm/node_modules/@types/stream/package.json","../../../node_modules/.pnpm/node_modules/@types/stream/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/stream/web/package.json","../../../node_modules/.pnpm/node_modules/@types/string_decoder/package.json","../../../node_modules/.pnpm/node_modules/@types/timers/package.json","../../../node_modules/.pnpm/node_modules/@types/timers/promises/package.json","../../../node_modules/.pnpm/node_modules/@types/tls/package.json","../../../node_modules/.pnpm/node_modules/@types/trace_events/package.json","../../../node_modules/.pnpm/node_modules/@types/tty/package.json","../../../node_modules/.pnpm/node_modules/@types/url/package.json","../../../node_modules/.pnpm/node_modules/@types/util/package.json","../../../node_modules/.pnpm/node_modules/@types/util/types/package.json","../../../node_modules/.pnpm/node_modules/@types/v8/package.json","../../../node_modules/.pnpm/node_modules/@types/vm/package.json","../../../node_modules/.pnpm/node_modules/@types/wasi/package.json","../../../node_modules/.pnpm/node_modules/@types/worker_threads/package.json","../../../node_modules/.pnpm/node_modules/@types/zlib/package.json","../../../node_modules/.pnpm/node_modules/assert/package.json","../../../node_modules/.pnpm/node_modules/assert/strict/package.json","../../../node_modules/.pnpm/node_modules/async_hooks/package.json","../../../node_modules/.pnpm/node_modules/child_process/package.json","../../../node_modules/.pnpm/node_modules/cluster/package.json","../../../node_modules/.pnpm/node_modules/console/package.json","../../../node_modules/.pnpm/node_modules/constants/package.json","../../../node_modules/.pnpm/node_modules/crypto/package.json","../../../node_modules/.pnpm/node_modules/dgram/package.json","../../../node_modules/.pnpm/node_modules/diagnostics_channel/package.json","../../../node_modules/.pnpm/node_modules/dns/package.json","../../../node_modules/.pnpm/node_modules/dns/promises/package.json","../../../node_modules/.pnpm/node_modules/domain/package.json","../../../node_modules/.pnpm/node_modules/fs/package.json","../../../node_modules/.pnpm/node_modules/fs/promises/package.json","../../../node_modules/.pnpm/node_modules/http/package.json","../../../node_modules/.pnpm/node_modules/http2/package.json","../../../node_modules/.pnpm/node_modules/https/package.json","../../../node_modules/.pnpm/node_modules/inspector/package.json","../../../node_modules/.pnpm/node_modules/inspector/promises/package.json","../../../node_modules/.pnpm/node_modules/module/package.json","../../../node_modules/.pnpm/node_modules/net/package.json","../../../node_modules/.pnpm/node_modules/os/package.json","../../../node_modules/.pnpm/node_modules/path/package.json","../../../node_modules/.pnpm/node_modules/path/posix/package.json","../../../node_modules/.pnpm/node_modules/path/win32/package.json","../../../node_modules/.pnpm/node_modules/perf_hooks/package.json","../../../node_modules/.pnpm/node_modules/punycode/package.json","../../../node_modules/.pnpm/node_modules/querystring/package.json","../../../node_modules/.pnpm/node_modules/readline/package.json","../../../node_modules/.pnpm/node_modules/readline/promises/package.json","../../../node_modules/.pnpm/node_modules/repl/package.json","../../../node_modules/.pnpm/node_modules/stream/consumers/package.json","../../../node_modules/.pnpm/node_modules/stream/package.json","../../../node_modules/.pnpm/node_modules/stream/promises/package.json","../../../node_modules/.pnpm/node_modules/stream/web/package.json","../../../node_modules/.pnpm/node_modules/timers/package.json","../../../node_modules/.pnpm/node_modules/timers/promises/package.json","../../../node_modules/.pnpm/node_modules/tls/package.json","../../../node_modules/.pnpm/node_modules/trace_events/package.json","../../../node_modules/.pnpm/node_modules/tty/package.json","../../../node_modules/.pnpm/node_modules/url/package.json","../../../node_modules/.pnpm/node_modules/util/package.json","../../../node_modules/.pnpm/node_modules/util/types/package.json","../../../node_modules/.pnpm/node_modules/v8/package.json","../../../node_modules/.pnpm/node_modules/vm/package.json","../../../node_modules/.pnpm/node_modules/wasi/package.json","../../../node_modules/.pnpm/node_modules/worker_threads/package.json","../../../node_modules/.pnpm/node_modules/zlib/package.json","../../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/stream/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/http/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/stream/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/config/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/package.json","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/package.json","../../../node_modules/@types/assert/package.json","../../../node_modules/@types/assert/strict/package.json","../../../node_modules/@types/async_hooks/package.json","../../../node_modules/@types/child_process/package.json","../../../node_modules/@types/cluster/package.json","../../../node_modules/@types/console/package.json","../../../node_modules/@types/constants/package.json","../../../node_modules/@types/crypto/package.json","../../../node_modules/@types/dgram/package.json","../../../node_modules/@types/diagnostics_channel/package.json","../../../node_modules/@types/dns/package.json","../../../node_modules/@types/dns/promises/package.json","../../../node_modules/@types/domain/package.json","../../../node_modules/@types/events/package.json","../../../node_modules/@types/fs/package.json","../../../node_modules/@types/fs/promises/package.json","../../../node_modules/@types/http/package.json","../../../node_modules/@types/http2/package.json","../../../node_modules/@types/https/package.json","../../../node_modules/@types/inspector/package.json","../../../node_modules/@types/inspector/promises/package.json","../../../node_modules/@types/module/package.json","../../../node_modules/@types/net/package.json","../../../node_modules/@types/os/package.json","../../../node_modules/@types/path/package.json","../../../node_modules/@types/path/posix/package.json","../../../node_modules/@types/path/win32/package.json","../../../node_modules/@types/perf_hooks/package.json","../../../node_modules/@types/punycode/package.json","../../../node_modules/@types/querystring/package.json","../../../node_modules/@types/readline/package.json","../../../node_modules/@types/readline/promises/package.json","../../../node_modules/@types/repl/package.json","../../../node_modules/@types/stream/consumers/package.json","../../../node_modules/@types/stream/package.json","../../../node_modules/@types/stream/promises/package.json","../../../node_modules/@types/stream/web/package.json","../../../node_modules/@types/string_decoder/package.json","../../../node_modules/@types/timers/package.json","../../../node_modules/@types/timers/promises/package.json","../../../node_modules/@types/tls/package.json","../../../node_modules/@types/trace_events/package.json","../../../node_modules/@types/tty/package.json","../../../node_modules/@types/url/package.json","../../../node_modules/@types/util/package.json","../../../node_modules/@types/util/types/package.json","../../../node_modules/@types/v8/package.json","../../../node_modules/@types/vm/package.json","../../../node_modules/@types/wasi/package.json","../../../node_modules/@types/worker_threads/package.json","../../../node_modules/@types/zlib/package.json","../../../node_modules/assert/package.json","../../../node_modules/assert/strict/package.json","../../../node_modules/async_hooks/package.json","../../../node_modules/child_process/package.json","../../../node_modules/cluster/package.json","../../../node_modules/console/package.json","../../../node_modules/constants/package.json","../../../node_modules/crypto/package.json","../../../node_modules/dgram/package.json","../../../node_modules/diagnostics_channel/package.json","../../../node_modules/dns/package.json","../../../node_modules/dns/promises/package.json","../../../node_modules/domain/package.json","../../../node_modules/events/package.json","../../../node_modules/fs/package.json","../../../node_modules/fs/promises/package.json","../../../node_modules/http/package.json","../../../node_modules/http2/package.json","../../../node_modules/https/package.json","../../../node_modules/inspector/package.json","../../../node_modules/inspector/promises/package.json","../../../node_modules/module/package.json","../../../node_modules/net/package.json","../../../node_modules/os/package.json","../../../node_modules/path/package.json","../../../node_modules/path/posix/package.json","../../../node_modules/path/win32/package.json","../../../node_modules/perf_hooks/package.json","../../../node_modules/punycode/package.json","../../../node_modules/querystring/package.json","../../../node_modules/readline/package.json","../../../node_modules/readline/promises/package.json","../../../node_modules/repl/package.json","../../../node_modules/stream/consumers/package.json","../../../node_modules/stream/package.json","../../../node_modules/stream/promises/package.json","../../../node_modules/stream/web/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/timers/package.json","../../../node_modules/timers/promises/package.json","../../../node_modules/tls/package.json","../../../node_modules/trace_events/package.json","../../../node_modules/tty/package.json","../../../node_modules/url/package.json","../../../node_modules/util/package.json","../../../node_modules/util/types/package.json","../../../node_modules/v8/package.json","../../../node_modules/vm/package.json","../../../node_modules/wasi/package.json","../../../node_modules/worker_threads/package.json","../../../node_modules/zlib/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2025.float16.d.ts","lib.esnext.disposable.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2023.full.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/dsn.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/wsconnector.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/taosresult.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/wsresponse.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/constant.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/wsclient.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/wsconnectorpool.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/client/wseventcallback.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/config.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/utility.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/client-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/round-robin-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/h2c-client.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/socks5-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@7.24.6/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@24.19.2/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+triple-beam@1.3.5/node_modules/@types/triple-beam/index.d.ts","../../../node_modules/.pnpm/logform@2.7.0/node_modules/logform/index.d.ts","../../../node_modules/.pnpm/winston-transport@4.9.0/node_modules/winston-transport/index.d.ts","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/config/index.d.ts","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/index.d.ts","../../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/index.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/log.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/reqid.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/ut8helper.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/tmq/config.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/utils.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/wserror.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/common/wsoptions.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/sql/wsrows.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/sql/wsproto.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/fieldbindparams.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/wscolumninfo.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/wsparamsbase.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/wsstmt.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/sql/wssql.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/tmq/constant.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/tmq/tmqresponse.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/tmq/wstmq.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/index.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/wstableinfo.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/src/stmt/wsproto.d.ts","../../../node_modules/.pnpm/@tdengine+websocket@3.5.0/node_modules/@tdengine/websocket/lib/index.d.ts","../../core/dist/ast.d.ts","../../core/dist/expr.d.ts","../../core/dist/sharding.d.ts","../../core/dist/schema.d.ts","../../core/dist/ddl.d.ts","../../core/dist/dialect.d.ts","../../core/dist/ref.d.ts","../../core/dist/capabilities.d.ts","../../core/dist/session.d.ts","../../core/dist/interceptor.d.ts","../../core/dist/relations.d.ts","../../core/dist/validate.d.ts","../../core/dist/scope.d.ts","../../core/dist/mutation.d.ts","../../core/dist/native.d.ts","../../core/dist/migrate.d.ts","../../core/dist/save.d.ts","../../core/dist/db.d.ts","../../core/dist/table.d.ts","../../core/dist/tree.d.ts","../../core/dist/query.d.ts","../../core/dist/shards.d.ts","../../core/dist/window.d.ts","../../core/dist/view.d.ts","../../core/dist/search.d.ts","../../core/dist/tracing.d.ts","../../core/dist/snapshot.d.ts","../../core/dist/index.d.ts","../src/index.ts"],"fileInfos":[{"version":"f67b7193a32cb9c0e44624d29886b63c","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"7bef8e45599a00823d58da6008f60967","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2123b4157a6fac8fce09937eade1a12c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"5e68b407093924bef76adc68f93f863d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"578851cff881874ddc1b430cade536cc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"393cc39f2b353704243db66686292e49","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"474437d4bba0e8012539209cacd803f2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"e1c7e28ac89b8a663c388c275b41bf44","b46aa5510530e579c9a639e50e9c0b6f","e908ff781f10652091f0391ae3562419","5fe7709bb90696b762993110b159c3e9","eff7aa1ebd760cf6f9bbd9bf0a034044","ee0d9a624df6c2bd1e80ede4378063af","ff28a3c8594e546252d69b0422b66c84","62e402957788bef899f4f112160aff36","dd266dcdbc33bd9b45fddd58370e2b82","f7ca23445cd042bc04dd3c6f9b4f11ef",{"version":"2514e9a2749c0fc18d2f478e9e1e641e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6ae4c332ecb24e76c1e47c0e21d4663d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9a10873e4cfa9ad599551cdc02419e5e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf33440030f0a0fae7d1efd6c293a8d2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9af0a7e3ef1c42cd066b9f8d365cc1ba","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7b772cebc7136c34fc77954aef70519d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9eca652586205dc5b07f9ba57b1c8500","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ec5f75939754ce94652189ec7d0d3058","affectsGlobalScope":true,"impliedNodeFormat":1},"49133c0dfbc32ab95668c3443dea49e5","85c2cf74d24d4069fac4686501a2d7e3","9f970a4ba4bb3ed6326d46b3ddab3f63","f444b82bb192c8ecc7c9a06cba5c1fba","75de66fc4824402123c0d694ccc0a085","ff1283d1b4e6fa719203127857079e2e","fcd1a513c1e5802916fa602e8b8e64bc","520a89183de13d5f66a98ffe05963428","c1ace754853b3b972549a44a2316ca86","ef0307d3b758a0e188f1cf25e8f043d9","705645fe223430c696f47b708d592ca8","28d57c837c94adb42add03d499793cab","8c01a9bbae8449be21b3e018d59a74ac","44d3b7d58481743f4726cf411e667164","679024f8e9f58a112f4badf119c4d612","74d351e4ed233e82c6d74c444c1a6b86","94d8e37d28e92494f484dd9afe8f043c","79db245997e9261ae21e5f3d93e3493b","c3659054228b00c4e2a22d9ebea8b4f0","d7e5f7a0f1f883f28458f684106e7643","c2364011a80b6a9e3cc0e77895bad577","38da5c670190f4a35cbc204ca6c616bf","d95cc0eb29beed58f5ce72db21398f53","ecd53256b1ec7379c73316eaf392a69c","db5a9211b779628398011a5b8f5b8b5d","69c7bb9c3befe9ae37eed0e6a6310fee","1cba93fafccb7b2655f0e75229185e83","69ff24b2981ccbe16bc270d491fd7308","094ecadae30f65a82b77343dde77a666","f75df12d75dd783b03a0329b95abdb25","b438b08b2f0ed94a95a75c8990d9021b","f2becd2589591db92ab14e803eb8bdd5","230b29c24dac9c9800ba909debbaf7c4","df47a5b94616443950e3b594d577dd0f","0468c0ccd0ec7770b76481b165564d62","188234d616a4f50ed9b14c8f84a39f33","4c116bcf0a47ea8fbf4072f380925fa7","213fda99209bff9d0330b6d9f5c9c7f3","add85ec26ba695fc99c698dbec065f8c","5bfde23f96fc502b5413d772c35e1abf","b744265d8ad12b7d4d5c5dc35d18d44e","eff32168b8348b822afeed9cbf61afa7","b3cc2d80116b8a8328ea4d205220a17c",{"version":"dd1cf1cc3aa21cd78b4869a44d98c6d9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"292c9398a407b33b1d9c9812b673387a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"45df94b3c51b898624bacc2bcd6d9eb2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d352f71d1b1bcc12c79dd0e4597537c","affectsGlobalScope":true,"impliedNodeFormat":1},"db11b80743ed5356b81d763a708788e6","39078ea063fcaf72bd3cca7e0d13d017","93dc976fc536951d6e75e90d473572a7",{"version":"03cf0a7b20ee0600da6399bbc30e4235","affectsGlobalScope":true,"impliedNodeFormat":1},"e412aef79ff298b0ade8abe7ac9dcadc","54c5c3dcfdb5f7cf5fbbccfff6ead3fa",{"version":"dc14f078230582a2f8fb2138bfcf4f85","affectsGlobalScope":true,"impliedNodeFormat":1},"b2b472cd0bf0f8d5f022e00ca1c401f4","c7247b0fcf28504e60c5fe77c44451bd","7d3f1abfc001dde996a18bda5ee12934","cc7a57e86f908c313649aea8d90377e1","30d4919f2abc1ea3ce394c64657a076f","6d3d975387ab7676c530b16cc68492b6","6751c8c175fac6bbe7b935582cdfdca7",{"version":"5d57c3010123020fd661bd66a43edddf","affectsGlobalScope":true,"impliedNodeFormat":1},"5b449416b035b624493038053a54c925","98a014ab2526abf44cf008049c433e0c","28089568bb1dc8d2ccdc224ee7e82c4c","dbcca39236d94f35b283ea819ebd6053","dbe700f7f1fa52fd220c7ee2c6617ebc","448b8cb8a4d46c6bd83bc03695c2ad92","06e23abf5b49a76a94e2ed9af001fdba",{"version":"1925bd52d544d2578d3bd42df92793cc","affectsGlobalScope":true,"impliedNodeFormat":1},"a5c47f01706656e366a5e88e1e755d02","8e91e7228778516936913f666d057c19","a20bbb7d11d1e44d2375a0bf69553d15","4e458316a6083cbd2bba2fd29f674dd5",{"version":"a7efd381f4f782ec3dca46fc3e6865ee","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7cab1129e8769c5a485f1bb3401c64ff","affectsGlobalScope":true,"impliedNodeFormat":1},"6b26581aa2587701d570206a0db8c9ee","88a29e2aac8082c0910733950159e1ca","10282f14d9c2a5cbf3bcf2b1c8cebeaf","0f80958d77cd6301b43c1d7904e3e4bc","3bdc645524ab0d2f6795d3a008833bd7","deb50b47eb75a5566532a763fa1324fa","f70dd66001d2985b6db8a68202f1ecb2","5c74012d7de089fb39b8f0ba33a3d53f","c8206d568b54e5ea06131963eecd576a","fc085b507c71f30185cc3e5860abb56f",{"version":"10003f0be2c5ca5d723646217dc7d032","affectsGlobalScope":true,"impliedNodeFormat":1},"dd404118e8bd70aff746f7d31e46270b","6c677e93aa9cfe1b51b85a932ef057f5",{"version":"6b8649a280031d9e86955db721cfad87","affectsGlobalScope":true,"impliedNodeFormat":1},"4bc8f13c472858fb74f77388c0c5d885","146b3ea1fdb5d3bb3836c3a9492a06f4","c72d2516d1e8910caca33c4dff75fcd4","e7650d4278f69463d6a8321c0e393d42",{"version":"75a6ba006597b68cffe4a020ae11a543","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9dcdeb61f51476309b4c4c98da465508","affectsGlobalScope":true,"impliedNodeFormat":1},"b328c646e5308da850932b32b4383059","c072301065f53729701183ab36b4e2db","9268959cff1006c82e6abbd73824db97",{"version":"8f1c048bd5761910f5ea340fe4d792cd","affectsGlobalScope":true,"impliedNodeFormat":1},"cd77311dfd66fca90fa927b84d9ec9d2","eb567c7b5824aab578f75bbccf9f4b05","ec4eccca7dc09c8eac03e58d5704c74c","9eae95ed516d9ffa7c138c55a239f25a","9150a1c64175f21cc5ffe4f8afdd448a","c9aae329d035b694859b8022e838747e","62067cd2bb9809dea904fd97fdffdbf6","bf39dcc21387f108c6f08115ec487500","f685f740e79299cea0ff6b2b6b46c4cd","ca978ff2abec5c38005624e62b048788","0c93100051dd28a8da08c09a9e2ebca1","ef61378b352157f05f165dd31ccec3c1","ef29887f2590bd4af43803ae08b40dfa","eb517ac91fcc64d3061d7135d1deee70","e122d045874b2a922aa2b29d3cee56ff","2de6f6b95d8cb2f7de421f16522e229b","6ffd71cefaf4986125ff45c856b3c942","216010562cba8fa5f95a33c60b28bfa5","8bd90b98284da66cc765b22e31b97de6","e112e9c4134fd75a554e65074869c534","c4b00f934d59d61851e1a79a325f6a31","afe691c7d8e7d834cb304140a2954d2d","96009ec6c5fe6fc6b68961b9d5e33e59","f9552f1b012f6dd33a8935989f28f43b","91be8ff78cc405d10f127af1b748b2ed","8f6bbc57fd76b931543d65c07ca58934","ff9b3cd2f37edb1eace91d01efab22d1","59a642cd9940771d9262143a94053f5e","9daf7e3f419bb41a4d425438d361024f",{"version":"9a1af3d4de3cbe530e5ae26f3c25b4d8","impliedNodeFormat":99},{"version":"0fa33b044ff764e8766581af72c4fc63","impliedNodeFormat":99},{"version":"6bea71240206e3465551f84b724408fb","impliedNodeFormat":99},{"version":"ad2e1b85f762dfa57629ddf01d396b96","impliedNodeFormat":99},{"version":"4182df2145d6e08bdf54352ffc77b74a","impliedNodeFormat":99},{"version":"b5ad8d5165406760c919bb6dd3091809","impliedNodeFormat":99},{"version":"8fa7f14f085fe77b3095ad2968465d22","impliedNodeFormat":99},{"version":"161cf9334f2586b79642fbd0c04c6c04","impliedNodeFormat":99},{"version":"120c7b7517cf9109ebc9999605538bd4","impliedNodeFormat":99},{"version":"9537407e2d7bc331026e31cb6b57e57b","impliedNodeFormat":99},{"version":"ae173954311d7323d80c537f5c68b032","impliedNodeFormat":99},{"version":"9f6025bc7d23025386e25cea27318a68","impliedNodeFormat":99},{"version":"860d432aad2e0f3c3cf826a70cd9511b","impliedNodeFormat":99},{"version":"8e625e8c6c701745caf1b3e454045f1b","impliedNodeFormat":99},{"version":"9c909b1846320ec54d8ceca6aaeb5192","impliedNodeFormat":99},{"version":"e3c5404cd8a20a98557e82a8258f8c39","impliedNodeFormat":99},{"version":"056dd27a70e5b588f0ced7f687904c46","impliedNodeFormat":99},{"version":"d35a481a0351b1748b896a1670c353da","impliedNodeFormat":99},{"version":"5b327bd90afb3edbb4854b5a4986e1de","impliedNodeFormat":99},{"version":"f84094c26c29bb3c34e5c7684faa6796","impliedNodeFormat":99},{"version":"3211e964992ab6ad1b2206628b0470e5","impliedNodeFormat":99},{"version":"5f6f1d539be9fc49d578d374c0dbc103","impliedNodeFormat":99},{"version":"44d127d58b704f7000c54211886ae44e","impliedNodeFormat":99},{"version":"45ac30541a1cd20a7966e3354ed16f97","impliedNodeFormat":99},{"version":"2b6b693f0099c52b65e008637637cd68","impliedNodeFormat":99},{"version":"e37b9d4b44beaac761259d3249d2e621","impliedNodeFormat":99},{"version":"ba52690797e08edcc59c6d2a3c36b447","impliedNodeFormat":99},{"version":"9f36d444c13ab5855638101e09e4e1fd","impliedNodeFormat":99},{"version":"9c5101bdb3d119e5c6213e8d08f41b37","signature":"f7a30bb3104466191da2a98abba262d4","impliedNodeFormat":99}],"fileIdsList":[[71,72,73,74,75,76,77,78,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,195,196,197,198,199,200,201,202,203,206,207,208,209,210,211,212,214],[70,71,73,74,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[70,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[70,71,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[72,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,194],[73,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[70,78,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,198],[78,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,208,211],[72,73,75,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[72,78,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,202,203,207],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,204,205],[72,73,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,206,213],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,202,206],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,206],[72,73,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,209],[72,81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,210],[81,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,129,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[79,80,81,82,83,84,85,86,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187],[81,129,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,129,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189],[81,93,96,99,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,90,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,94,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,92,93,96,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],[81,90,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],[81,92,96,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,87,88,89,91,95,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,105,113,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,88,94,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,123,124,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,88,91,96,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],[81,87,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,90,91,92,94,95,96,97,98,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,124,125,126,127,128,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,116,119,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,105,106,107,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,94,96,106,108,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,95,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,88,90,96,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,100,106,108,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,94,96,99,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,88,92,96,105,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,96,116,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,108,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,88,92,96,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[81,90,96,123,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,191],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,219],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,217,219,220,221,222,223,224,225,226,229,230,231,232,236],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,219,221,226],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,219,220],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,219],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,219,221,222,224],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,219,220],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,219,221,222,223,224,225,226,236],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,221,224],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,219,221,222,223,224,225,226,228,233,234,235],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,219,225,226],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,217,219,222,225],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,219,226,233],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217,218],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,217],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,234],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,221,223,225,226],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,218,219,226,229,233,236],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,221,226,233],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,224],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,219,222,226,233],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,216,217],[81,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,215,243]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"erasableSyntaxOnly":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[215,1],[75,2],[71,3],[76,4],[77,5],[73,6],[78,5],[74,5],[70,5],[195,7],[196,5],[72,8],[197,5],[199,9],[200,5],[201,5],[212,10],[203,5],[202,11],[208,12],[204,5],[205,5],[206,13],[214,14],[207,15],[213,16],[198,3],[209,5],[210,17],[211,18],[134,19],[135,20],[136,21],[81,22],[137,23],[138,24],[139,25],[79,5],[140,26],[141,27],[142,28],[143,29],[144,30],[145,31],[146,32],[147,33],[148,34],[149,35],[150,36],[82,5],[80,5],[151,37],[152,38],[153,39],[188,40],[154,41],[155,42],[156,43],[157,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[167,53],[168,54],[169,55],[170,56],[172,57],[171,58],[173,59],[174,60],[175,61],[176,62],[177,63],[178,64],[179,65],[180,66],[181,67],[182,68],[183,69],[184,70],[185,71],[83,5],[84,5],[85,5],[86,5],[130,72],[131,5],[132,5],[133,5],[186,73],[187,74],[189,5],[67,5],[68,5],[13,5],[11,5],[12,5],[17,5],[16,5],[2,5],[18,5],[19,5],[20,5],[21,5],[22,5],[23,5],[24,5],[25,5],[3,5],[26,5],[27,5],[4,5],[28,5],[32,5],[29,5],[30,5],[31,5],[33,5],[34,5],[35,5],[5,5],[36,5],[37,5],[38,5],[39,5],[6,5],[43,5],[40,5],[41,5],[42,5],[44,5],[7,5],[45,5],[50,5],[51,5],[46,5],[47,5],[48,5],[49,5],[8,5],[55,5],[52,5],[53,5],[54,5],[56,5],[9,5],[57,5],[58,5],[59,5],[61,5],[60,5],[62,5],[63,5],[10,5],[69,5],[64,5],[65,5],[1,5],[66,5],[15,5],[14,5],[158,5],[190,75],[105,76],[118,77],[102,78],[119,5],[128,79],[93,80],[94,81],[92,5],[127,82],[122,83],[126,84],[96,85],[115,86],[95,87],[125,88],[90,89],[91,83],[97,77],[98,5],[104,84],[101,77],[88,90],[129,91],[120,92],[108,93],[107,77],[109,94],[112,95],[106,96],[110,97],[123,82],[99,98],[100,99],[113,100],[89,5],[117,101],[116,77],[103,99],[111,102],[114,103],[121,5],[87,5],[124,104],[191,105],[194,106],[192,82],[193,107],[216,108],[223,5],[233,109],[220,110],[221,111],[217,112],[243,113],[225,114],[231,115],[229,116],[230,117],[236,118],[222,119],[226,120],[232,121],[219,122],[228,123],[240,124],[224,125],[218,112],[237,126],[242,127],[234,123],[241,128],[235,5],[227,108],[239,129],[238,130],[244,131]],"latestChangedDtsFile":"./index.d.ts"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TDengine 3.x(时序库,对应官方的 sql-tsdb),驱动用官方的 @tdengine/websocket(taosAdapter 的 WebSocket 接口)。
|
|
3
|
+
* ```ts
|
|
4
|
+
* import { sqlConnect, WSConfig } from '@tdengine/websocket'
|
|
5
|
+
* const conf = new WSConfig('ws://host:6041'); conf.setUser('root'); conf.setPwd('…'); conf.setDb('power'); conf.setTimezone('UTC')
|
|
6
|
+
* const db = createDb({ schema, adapter: tdengine(await sqlConnect(conf)) })
|
|
7
|
+
* ```
|
|
8
|
+
* 时序库的模型:每张表第一列是 TIMESTAMP 主键,同一时间戳再写一次就是覆盖(只写给出的列)。所以:
|
|
9
|
+
* - 实体的主键必须是一个 datetime 列;建表时排在第一列;列不能声明 NOT NULL、DEFAULT
|
|
10
|
+
* - 没有 UPDATE(报错,改成按时间戳再插入一次);upsert 就是普通插入;删除写成 DELETE FROM t WHERE …(不带别名)
|
|
11
|
+
* - 查询有条件、排序、分页、聚合、分组;没有子查询(IN / EXISTS)、窗口函数、行锁、事务
|
|
12
|
+
* - 语句不带参数:值按字面量写进 SQL(字符串转义引号与反斜杠)
|
|
13
|
+
*/
|
|
14
|
+
import type { WsSql } from '@tdengine/websocket';
|
|
15
|
+
import { Dialect, SqlWriter, type Adapter, type Without, type ColumnOptions, type ConflictNode, type DbTable, type DeleteNode, type Entity, type ForeignKeySpec, type FunctionRenderer, type Node, type QueryRunner, type TableIndex, type UpdateNode } from '@zerodep-dev/easy-query-ts';
|
|
16
|
+
export declare class TdengineDialect extends Dialect {
|
|
17
|
+
readonly name = "tdengine";
|
|
18
|
+
readonly indexIfNotExists = true;
|
|
19
|
+
/** 删除时列名不带别名 */
|
|
20
|
+
private bareColumns;
|
|
21
|
+
quote(identifier: string): string;
|
|
22
|
+
/** 没有绑定参数:值写成字面量 */
|
|
23
|
+
bindParam(value: unknown): string;
|
|
24
|
+
encodeParam(value: unknown, kind?: string): unknown;
|
|
25
|
+
likeEscape(): string;
|
|
26
|
+
node(n: Node, w: SqlWriter): string;
|
|
27
|
+
get rowLocks(): boolean;
|
|
28
|
+
forUpdate(): string;
|
|
29
|
+
update(_q: UpdateNode): string;
|
|
30
|
+
delete(q: DeleteNode, w?: SqlWriter): string;
|
|
31
|
+
/** 同一时间戳再写一次就是覆盖给出的列:merge 就是普通插入;ignore 做不到 */
|
|
32
|
+
onConflict(c: ConflictNode): string;
|
|
33
|
+
identity(): string;
|
|
34
|
+
protected functions(): Record<string, FunctionRenderer>;
|
|
35
|
+
columnType(kind: string, o: ColumnOptions): string;
|
|
36
|
+
/** 列只有名字与类型(没有 NOT NULL、DEFAULT、列注释) */
|
|
37
|
+
columnDefinition(name: string, kind: string, o: ColumnOptions): string;
|
|
38
|
+
/** 时间戳主键排在第一列;没有约束子句 */
|
|
39
|
+
createTable(entity: Entity, ifNotExists?: boolean, foreignKeys?: readonly ForeignKeySpec[]): string;
|
|
40
|
+
protected tableOptions(entity: Entity): string;
|
|
41
|
+
readonly commentStyle: 'none';
|
|
42
|
+
createIndex(table: string, index: TableIndex, ifNotExists: boolean): string;
|
|
43
|
+
addForeignKey(fk: ForeignKeySpec): string;
|
|
44
|
+
/** information_schema.ins_tables / ins_columns(当前库);第一列(时间戳)是主键,其余列都可空 */
|
|
45
|
+
introspect(run: QueryRunner): Promise<DbTable[]>;
|
|
46
|
+
}
|
|
47
|
+
/** sql 是 sqlConnect 建好的连接(WSConfig 里设好库与时区 UTC) */
|
|
48
|
+
/** TDengine 缺的能力:没有 UPDATE、事务、行锁、RETURNING、自增;写同一时间戳就是覆盖 */
|
|
49
|
+
export type TdengineAdapter = Adapter<Without<'update' | 'transactions' | 'lock' | 'forUpdate' | 'skipLocked' | 'noWait' | 'returning' | 'generatedKeys' | 'upsertIgnore'>>;
|
|
50
|
+
export declare function tdengine(sql: WsSql): TdengineAdapter;
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAEL,OAAO,EAEP,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,UAAU,EAEf,KAAK,MAAM,EAEX,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,WAAW,EAEhB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,4BAA4B,CAAC;AAOpC,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,QAAQ,CAAC,IAAI,cAAc;IAC3B,SAAkB,gBAAgB,QAAQ;IAE1C,gBAAgB;IAChB,OAAO,CAAC,WAAW,CAAS;IAEnB,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzC;IAED,oBAAoB;IACX,SAAS,CAAC,KAAK,EAAE,OAAO,G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G,OAAO,CAAC,OAAO,EAAE,CAAC,CA6B9D;CACF;AAkDD,mDAAmD;AACnD,4DAA4D;AAC5D,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,OAAO,CACH,QAAQ,GACR,cAAc,GACd,MAAM,GACN,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,eAAe,GACf,cAAc,CACjB,CACF,CAAC;AAEF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,KAAK,GAAG,eAAe,CAEpD"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { assembleTables, Dialect, sqlString, SqlWriter, } from '@zerodep-dev/easy-query-ts';
|
|
2
|
+
/** 字符串字面量:反斜杠与单引号都要转义 */
|
|
3
|
+
function literal(text) {
|
|
4
|
+
return `'${text.replaceAll('\\', '\\\\').replaceAll("'", "\\'")}'`;
|
|
5
|
+
}
|
|
6
|
+
export class TdengineDialect extends Dialect {
|
|
7
|
+
name = 'tdengine';
|
|
8
|
+
indexIfNotExists = true;
|
|
9
|
+
/** 删除时列名不带别名 */
|
|
10
|
+
bareColumns = false;
|
|
11
|
+
quote(identifier) {
|
|
12
|
+
return `\`${identifier.replace(/`/g, '``')}\``;
|
|
13
|
+
}
|
|
14
|
+
/** 没有绑定参数:值写成字面量 */
|
|
15
|
+
bindParam(value) {
|
|
16
|
+
if (value === null || value === undefined)
|
|
17
|
+
return 'NULL';
|
|
18
|
+
if (typeof value === 'boolean')
|
|
19
|
+
return value ? 'true' : 'false';
|
|
20
|
+
if (typeof value === 'number' || typeof value === 'bigint')
|
|
21
|
+
return String(value);
|
|
22
|
+
if (typeof value === 'string')
|
|
23
|
+
return literal(value);
|
|
24
|
+
throw new Error(`the tdengine dialect cannot write ${typeof value} values into SQL`);
|
|
25
|
+
}
|
|
26
|
+
encodeParam(value, kind) {
|
|
27
|
+
return typeof value === 'boolean' ? value : super.encodeParam(value, kind);
|
|
28
|
+
}
|
|
29
|
+
likeEscape() {
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
node(n, w) {
|
|
33
|
+
if (n.k === 'col' && this.bareColumns)
|
|
34
|
+
return this.quote(n.name);
|
|
35
|
+
return super.node(n, w);
|
|
36
|
+
}
|
|
37
|
+
get rowLocks() {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
forUpdate() {
|
|
41
|
+
throw new Error('row locks are not supported by the tdengine dialect');
|
|
42
|
+
}
|
|
43
|
+
// ---- 写入 ----
|
|
44
|
+
update(_q) {
|
|
45
|
+
throw new Error('TDengine has no UPDATE: insert a row with the same timestamp to overwrite the given columns');
|
|
46
|
+
}
|
|
47
|
+
delete(q, w = new SqlWriter()) {
|
|
48
|
+
if (q.joins?.length)
|
|
49
|
+
throw new Error('deletes through navigations are not supported by the tdengine dialect');
|
|
50
|
+
this.bareColumns = true;
|
|
51
|
+
try {
|
|
52
|
+
const where = q.where.length > 0 ? ` WHERE ${this.conjunction(q.where, w)}` : '';
|
|
53
|
+
return `DELETE FROM ${this.table(q.from.table)}${where}`;
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
this.bareColumns = false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/** 同一时间戳再写一次就是覆盖给出的列:merge 就是普通插入;ignore 做不到 */
|
|
60
|
+
onConflict(c) {
|
|
61
|
+
if (c.update.length === 0)
|
|
62
|
+
throw new Error('onConflict(..).ignore() is not supported by the tdengine dialect');
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
identity() {
|
|
66
|
+
throw new Error('TDengine has no auto-increment columns: the key is the row timestamp');
|
|
67
|
+
}
|
|
68
|
+
// ---- 函数 ----
|
|
69
|
+
functions() {
|
|
70
|
+
return {
|
|
71
|
+
...super.functions(),
|
|
72
|
+
length: (a) => `CHAR_LENGTH(${a[0]})`,
|
|
73
|
+
substring: (a) => `SUBSTR(${a.join(', ')})`,
|
|
74
|
+
now: () => 'NOW()',
|
|
75
|
+
cast_string: (a) => `CAST(${a[0]} AS VARCHAR(4096))`,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
// ---- 建表 ----
|
|
79
|
+
columnType(kind, o) {
|
|
80
|
+
if (o.dbType)
|
|
81
|
+
return o.dbType;
|
|
82
|
+
switch (kind) {
|
|
83
|
+
case 'string':
|
|
84
|
+
return `NCHAR(${o.length ?? 255})`;
|
|
85
|
+
case 'int':
|
|
86
|
+
return 'INT';
|
|
87
|
+
case 'bigint':
|
|
88
|
+
return 'BIGINT';
|
|
89
|
+
case 'decimal':
|
|
90
|
+
return `DECIMAL(${o.precision ?? 18}, ${o.scale ?? 4})`;
|
|
91
|
+
case 'double':
|
|
92
|
+
return 'DOUBLE';
|
|
93
|
+
case 'boolean':
|
|
94
|
+
return 'BOOL';
|
|
95
|
+
case 'datetime':
|
|
96
|
+
return 'TIMESTAMP';
|
|
97
|
+
case 'date':
|
|
98
|
+
return 'VARCHAR(10)';
|
|
99
|
+
case 'time':
|
|
100
|
+
return 'VARCHAR(12)';
|
|
101
|
+
case 'json':
|
|
102
|
+
return 'NCHAR(4096)';
|
|
103
|
+
case 'bytes':
|
|
104
|
+
return 'VARBINARY(4096)';
|
|
105
|
+
default:
|
|
106
|
+
return super.columnType(kind, o);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/** 列只有名字与类型(没有 NOT NULL、DEFAULT、列注释) */
|
|
110
|
+
columnDefinition(name, kind, o) {
|
|
111
|
+
if (o.generated)
|
|
112
|
+
this.identity();
|
|
113
|
+
return `${this.quote(name)} ${this.columnType(kind, o)}`;
|
|
114
|
+
}
|
|
115
|
+
/** 时间戳主键排在第一列;没有约束子句 */
|
|
116
|
+
createTable(entity, ifNotExists = true, foreignKeys = []) {
|
|
117
|
+
if (foreignKeys.length > 0)
|
|
118
|
+
this.addForeignKey(foreignKeys[0]);
|
|
119
|
+
const [key, ...more] = entity.primaryKey;
|
|
120
|
+
if (!key || more.length > 0 || entity.columns[key].codec.kind !== 'datetime')
|
|
121
|
+
throw new Error(`${entity.table} needs a single datetime primary key (the row timestamp) on tdengine`);
|
|
122
|
+
const props = [key, ...Object.keys(entity.columns).filter((p) => p !== key)];
|
|
123
|
+
const columns = props.map((p) => {
|
|
124
|
+
const column = entity.columns[p];
|
|
125
|
+
return this.columnDefinition(entity.columnNames[p], column.codec.kind, column.options);
|
|
126
|
+
});
|
|
127
|
+
return `${this.createTableStart(ifNotExists)} ${this.table(entity.table)} (${columns.join(', ')})${this.tableOptions(entity)}`;
|
|
128
|
+
}
|
|
129
|
+
tableOptions(entity) {
|
|
130
|
+
return entity.comment !== undefined ? ` COMMENT ${sqlString(entity.comment)}` : '';
|
|
131
|
+
}
|
|
132
|
+
commentStyle = 'none';
|
|
133
|
+
createIndex(table, index, ifNotExists) {
|
|
134
|
+
if (index.unique || index.columns.length > 1)
|
|
135
|
+
throw new Error(`only single-column, non-unique indexes are supported by the tdengine dialect (${index.name})`);
|
|
136
|
+
return `CREATE INDEX ${ifNotExists ? 'IF NOT EXISTS ' : ''}${this.quote(index.name)} ON ${this.table(table)} (${this.quote(index.columns[0])})`;
|
|
137
|
+
}
|
|
138
|
+
addForeignKey(fk) {
|
|
139
|
+
throw new Error(`foreign keys are not supported by the tdengine dialect (${fk.name})`);
|
|
140
|
+
}
|
|
141
|
+
/** information_schema.ins_tables / ins_columns(当前库);第一列(时间戳)是主键,其余列都可空 */
|
|
142
|
+
async introspect(run) {
|
|
143
|
+
const tables = await run(`SELECT table_name, table_comment AS \`comment\` FROM information_schema.ins_tables WHERE db_name = DATABASE() ORDER BY table_name`);
|
|
144
|
+
const columns = await run(`SELECT table_name, col_name AS column_name, col_type AS column_type FROM information_schema.ins_columns
|
|
145
|
+
WHERE db_name = DATABASE() AND table_type = 'NORMAL_TABLE'`);
|
|
146
|
+
const first = new Set();
|
|
147
|
+
return assembleTables({
|
|
148
|
+
tables: tables.map((t) => ({ ...t, comment: t['comment'] || null })),
|
|
149
|
+
// ins_columns 按列的顺序给出:每张表的第一列是时间戳主键
|
|
150
|
+
columns: columns.map((c) => {
|
|
151
|
+
const table = String(c['table_name']);
|
|
152
|
+
const key = !first.has(table);
|
|
153
|
+
first.add(table);
|
|
154
|
+
return {
|
|
155
|
+
...c,
|
|
156
|
+
column_type: String(c['column_type']).toLowerCase(),
|
|
157
|
+
is_nullable: !key,
|
|
158
|
+
column_default: null,
|
|
159
|
+
comment: null,
|
|
160
|
+
is_generated: false,
|
|
161
|
+
primary_key: key,
|
|
162
|
+
};
|
|
163
|
+
}),
|
|
164
|
+
indexes: [],
|
|
165
|
+
foreignKeys: [],
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// ---- 驱动 ----
|
|
170
|
+
const TEXT_TYPES = new Set(['NCHAR', 'VARCHAR', 'BINARY', 'VARBINARY', 'JSON', 'GEOMETRY']);
|
|
171
|
+
/** 读出的值:时间戳是毫秒数(bigint)→ UTC 文字,由列的 codec 解码;BIGINT 写成文字 */
|
|
172
|
+
function decode(value, type) {
|
|
173
|
+
if (value === null || value === undefined)
|
|
174
|
+
return null;
|
|
175
|
+
// 驱动把数字列的空值交成字符串 'NULL'
|
|
176
|
+
if (value === 'NULL' && !TEXT_TYPES.has(type))
|
|
177
|
+
return null;
|
|
178
|
+
if (type === 'TIMESTAMP')
|
|
179
|
+
return new Date(Number(value)).toISOString().replace('T', ' ').replace('Z', '');
|
|
180
|
+
if (typeof value === 'bigint')
|
|
181
|
+
return value.toString();
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
class TdengineDriver {
|
|
185
|
+
sql;
|
|
186
|
+
constructor(sql) {
|
|
187
|
+
this.sql = sql;
|
|
188
|
+
}
|
|
189
|
+
async query(sql) {
|
|
190
|
+
const rows = await this.sql.query(sql);
|
|
191
|
+
try {
|
|
192
|
+
const meta = rows.getMeta() ?? [];
|
|
193
|
+
const out = [];
|
|
194
|
+
while (await rows.next()) {
|
|
195
|
+
const data = rows.getData() ?? [];
|
|
196
|
+
out.push(Object.fromEntries(meta.map((m, i) => [m.name, decode(data[i], m.type)])));
|
|
197
|
+
}
|
|
198
|
+
return out;
|
|
199
|
+
}
|
|
200
|
+
finally {
|
|
201
|
+
await rows.close();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async execute(sql) {
|
|
205
|
+
const result = await this.sql.exec(sql);
|
|
206
|
+
return { affected: result.getAffectRows() ?? 0, insertId: undefined };
|
|
207
|
+
}
|
|
208
|
+
/** 没有事务:依次执行 */
|
|
209
|
+
async transaction(work) {
|
|
210
|
+
return work(this);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
export function tdengine(sql) {
|
|
214
|
+
return { dialect: new TdengineDialect(), driver: new TdengineDriver(sql) };
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,cAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,GAiBV,MAAM,4BAA4B,CAAC;AAEpC,yBAAyB;AACzB,SAAS,OAAO,CAAC,IAAY;IAC3B,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;AACrE,CAAC;AAED,MAAM,OAAO,eAAgB,SAAQ,OAAO;IACjC,IAAI,GAAG,UAAU,CAAC;IACT,gBAAgB,GAAG,IAAI,CAAC;IAE1C,gBAAgB;IACR,WAAW,GAAG,KAAK,CAAC;IAEnB,KAAK,CAAC,UAAkB;QAC/B,OAAO,KAAK,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IACjD,CAAC;IAED,oBAAoB;IACX,SAAS,CAAC,KAAc;QAC/B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC;QACzD,IAAI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engine",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "TDengine dialect and driver adapter (@tdengine/websocket) for @zerodep-dev/easy-query-ts",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "lionheart (https://github.com/kenconnet666)",
|
|
7
|
+
"homepage": "https://github.com/kenconnet666/easy-query-ts#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/kenconnet666/easy-query-ts/issues"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/kenconnet666/easy-query-ts.git",
|
|
14
|
+
"directory": "packages/tdengine"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"tdengine",
|
|
18
|
+
"tsdb",
|
|
19
|
+
"orm",
|
|
20
|
+
"easy-query"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"@easy-query-ts/source": "./src/index.ts",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"src"
|
|
32
|
+
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@zerodep-dev/easy-query-ts": "^0.2.1",
|
|
38
|
+
"@tdengine/websocket": "^3.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@zerodep-dev/easy-query-ts": "0.2.1",
|
|
42
|
+
"@zerodep-dev/easy-query-ts-test": "0.2.1",
|
|
43
|
+
"@tdengine/websocket": "3.5.0"
|
|
44
|
+
},
|
|
45
|
+
"type": "module",
|
|
46
|
+
"sideEffects": false,
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsc -b tsconfig.build.json"
|
|
49
|
+
}
|
|
6
50
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TDengine 3.x(时序库,对应官方的 sql-tsdb),驱动用官方的 @tdengine/websocket(taosAdapter 的 WebSocket 接口)。
|
|
3
|
+
* ```ts
|
|
4
|
+
* import { sqlConnect, WSConfig } from '@tdengine/websocket'
|
|
5
|
+
* const conf = new WSConfig('ws://host:6041'); conf.setUser('root'); conf.setPwd('…'); conf.setDb('power'); conf.setTimezone('UTC')
|
|
6
|
+
* const db = createDb({ schema, adapter: tdengine(await sqlConnect(conf)) })
|
|
7
|
+
* ```
|
|
8
|
+
* 时序库的模型:每张表第一列是 TIMESTAMP 主键,同一时间戳再写一次就是覆盖(只写给出的列)。所以:
|
|
9
|
+
* - 实体的主键必须是一个 datetime 列;建表时排在第一列;列不能声明 NOT NULL、DEFAULT
|
|
10
|
+
* - 没有 UPDATE(报错,改成按时间戳再插入一次);upsert 就是普通插入;删除写成 DELETE FROM t WHERE …(不带别名)
|
|
11
|
+
* - 查询有条件、排序、分页、聚合、分组;没有子查询(IN / EXISTS)、窗口函数、行锁、事务
|
|
12
|
+
* - 语句不带参数:值按字面量写进 SQL(字符串转义引号与反斜杠)
|
|
13
|
+
*/
|
|
14
|
+
import type { WsSql } from '@tdengine/websocket';
|
|
15
|
+
import {
|
|
16
|
+
assembleTables,
|
|
17
|
+
Dialect,
|
|
18
|
+
sqlString,
|
|
19
|
+
SqlWriter,
|
|
20
|
+
type Adapter,
|
|
21
|
+
type Without,
|
|
22
|
+
type ColumnOptions,
|
|
23
|
+
type ConflictNode,
|
|
24
|
+
type DbTable,
|
|
25
|
+
type DeleteNode,
|
|
26
|
+
type Driver,
|
|
27
|
+
type Entity,
|
|
28
|
+
type ExecuteResult,
|
|
29
|
+
type ForeignKeySpec,
|
|
30
|
+
type FunctionRenderer,
|
|
31
|
+
type Node,
|
|
32
|
+
type QueryRunner,
|
|
33
|
+
type Session,
|
|
34
|
+
type TableIndex,
|
|
35
|
+
type UpdateNode,
|
|
36
|
+
} from '@zerodep-dev/easy-query-ts';
|
|
37
|
+
|
|
38
|
+
/** 字符串字面量:反斜杠与单引号都要转义 */
|
|
39
|
+
function literal(text: string): string {
|
|
40
|
+
return `'${text.replaceAll('\\', '\\\\').replaceAll("'", "\\'")}'`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class TdengineDialect extends Dialect {
|
|
44
|
+
readonly name = 'tdengine';
|
|
45
|
+
override readonly indexIfNotExists = true;
|
|
46
|
+
|
|
47
|
+
/** 删除时列名不带别名 */
|
|
48
|
+
private bareColumns = false;
|
|
49
|
+
|
|
50
|
+
override quote(identifier: string): string {
|
|
51
|
+
return `\`${identifier.replace(/`/g, '``')}\``;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** 没有绑定参数:值写成字面量 */
|
|
55
|
+
override bindParam(value: unknown): string {
|
|
56
|
+
if (value === null || value === undefined) return 'NULL';
|
|
57
|
+
if (typeof value === 'boolean') return value ? 'true' : 'false';
|
|
58
|
+
if (typeof value === 'number' || typeof value === 'bigint') return String(value);
|
|
59
|
+
if (typeof value === 'string') return literal(value);
|
|
60
|
+
throw new Error(`the tdengine dialect cannot write ${typeof value} values into SQL`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
override encodeParam(value: unknown, kind?: string): unknown {
|
|
64
|
+
return typeof value === 'boolean' ? value : super.encodeParam(value, kind);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
override likeEscape(): string {
|
|
68
|
+
return '';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
override node(n: Node, w: SqlWriter): string {
|
|
72
|
+
if (n.k === 'col' && this.bareColumns) return this.quote(n.name);
|
|
73
|
+
return super.node(n, w);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
override get rowLocks(): boolean {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
override forUpdate(): string {
|
|
81
|
+
throw new Error('row locks are not supported by the tdengine dialect');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ---- 写入 ----
|
|
85
|
+
|
|
86
|
+
override update(_q: UpdateNode): string {
|
|
87
|
+
throw new Error(
|
|
88
|
+
'TDengine has no UPDATE: insert a row with the same timestamp to overwrite the given columns',
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
override delete(q: DeleteNode, w: SqlWriter = new SqlWriter()): string {
|
|
93
|
+
if (q.joins?.length)
|
|
94
|
+
throw new Error('deletes through navigations are not supported by the tdengine dialect');
|
|
95
|
+
this.bareColumns = true;
|
|
96
|
+
try {
|
|
97
|
+
const where = q.where.length > 0 ? ` WHERE ${this.conjunction(q.where, w)}` : '';
|
|
98
|
+
return `DELETE FROM ${this.table(q.from.table)}${where}`;
|
|
99
|
+
} finally {
|
|
100
|
+
this.bareColumns = false;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** 同一时间戳再写一次就是覆盖给出的列:merge 就是普通插入;ignore 做不到 */
|
|
105
|
+
override onConflict(c: ConflictNode): string {
|
|
106
|
+
if (c.update.length === 0)
|
|
107
|
+
throw new Error('onConflict(..).ignore() is not supported by the tdengine dialect');
|
|
108
|
+
return '';
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
override identity(): string {
|
|
112
|
+
throw new Error('TDengine has no auto-increment columns: the key is the row timestamp');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ---- 函数 ----
|
|
116
|
+
|
|
117
|
+
protected override functions(): Record<string, FunctionRenderer> {
|
|
118
|
+
return {
|
|
119
|
+
...super.functions(),
|
|
120
|
+
length: (a) => `CHAR_LENGTH(${a[0]})`,
|
|
121
|
+
substring: (a) => `SUBSTR(${a.join(', ')})`,
|
|
122
|
+
now: () => 'NOW()',
|
|
123
|
+
cast_string: (a) => `CAST(${a[0]} AS VARCHAR(4096))`,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// ---- 建表 ----
|
|
128
|
+
|
|
129
|
+
override columnType(kind: string, o: ColumnOptions): string {
|
|
130
|
+
if (o.dbType) return o.dbType;
|
|
131
|
+
switch (kind) {
|
|
132
|
+
case 'string':
|
|
133
|
+
return `NCHAR(${o.length ?? 255})`;
|
|
134
|
+
case 'int':
|
|
135
|
+
return 'INT';
|
|
136
|
+
case 'bigint':
|
|
137
|
+
return 'BIGINT';
|
|
138
|
+
case 'decimal':
|
|
139
|
+
return `DECIMAL(${o.precision ?? 18}, ${o.scale ?? 4})`;
|
|
140
|
+
case 'double':
|
|
141
|
+
return 'DOUBLE';
|
|
142
|
+
case 'boolean':
|
|
143
|
+
return 'BOOL';
|
|
144
|
+
case 'datetime':
|
|
145
|
+
return 'TIMESTAMP';
|
|
146
|
+
case 'date':
|
|
147
|
+
return 'VARCHAR(10)';
|
|
148
|
+
case 'time':
|
|
149
|
+
return 'VARCHAR(12)';
|
|
150
|
+
case 'json':
|
|
151
|
+
return 'NCHAR(4096)';
|
|
152
|
+
case 'bytes':
|
|
153
|
+
return 'VARBINARY(4096)';
|
|
154
|
+
default:
|
|
155
|
+
return super.columnType(kind, o);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** 列只有名字与类型(没有 NOT NULL、DEFAULT、列注释) */
|
|
160
|
+
override columnDefinition(name: string, kind: string, o: ColumnOptions): string {
|
|
161
|
+
if (o.generated) this.identity();
|
|
162
|
+
return `${this.quote(name)} ${this.columnType(kind, o)}`;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** 时间戳主键排在第一列;没有约束子句 */
|
|
166
|
+
override createTable(
|
|
167
|
+
entity: Entity,
|
|
168
|
+
ifNotExists = true,
|
|
169
|
+
foreignKeys: readonly ForeignKeySpec[] = [],
|
|
170
|
+
): string {
|
|
171
|
+
if (foreignKeys.length > 0) this.addForeignKey(foreignKeys[0]!);
|
|
172
|
+
const [key, ...more] = entity.primaryKey;
|
|
173
|
+
if (!key || more.length > 0 || entity.columns[key]!.codec.kind !== 'datetime')
|
|
174
|
+
throw new Error(
|
|
175
|
+
`${entity.table} needs a single datetime primary key (the row timestamp) on tdengine`,
|
|
176
|
+
);
|
|
177
|
+
const props = [key, ...Object.keys(entity.columns).filter((p) => p !== key)];
|
|
178
|
+
const columns = props.map((p) => {
|
|
179
|
+
const column = entity.columns[p]!;
|
|
180
|
+
return this.columnDefinition(entity.columnNames[p]!, column.codec.kind, column.options);
|
|
181
|
+
});
|
|
182
|
+
return `${this.createTableStart(ifNotExists)} ${this.table(entity.table)} (${columns.join(', ')})${this.tableOptions(entity)}`;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
protected override tableOptions(entity: Entity): string {
|
|
186
|
+
return entity.comment !== undefined ? ` COMMENT ${sqlString(entity.comment)}` : '';
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
override readonly commentStyle = 'none' as const;
|
|
190
|
+
|
|
191
|
+
override createIndex(table: string, index: TableIndex, ifNotExists: boolean): string {
|
|
192
|
+
if (index.unique || index.columns.length > 1)
|
|
193
|
+
throw new Error(
|
|
194
|
+
`only single-column, non-unique indexes are supported by the tdengine dialect (${index.name})`,
|
|
195
|
+
);
|
|
196
|
+
return `CREATE INDEX ${ifNotExists ? 'IF NOT EXISTS ' : ''}${this.quote(index.name)} ON ${this.table(table)} (${this.quote(index.columns[0]!)})`;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
override addForeignKey(fk: ForeignKeySpec): string {
|
|
200
|
+
throw new Error(`foreign keys are not supported by the tdengine dialect (${fk.name})`);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** information_schema.ins_tables / ins_columns(当前库);第一列(时间戳)是主键,其余列都可空 */
|
|
204
|
+
override async introspect(run: QueryRunner): Promise<DbTable[]> {
|
|
205
|
+
const tables = await run(
|
|
206
|
+
`SELECT table_name, table_comment AS \`comment\` FROM information_schema.ins_tables WHERE db_name = DATABASE() ORDER BY table_name`,
|
|
207
|
+
);
|
|
208
|
+
const columns = await run(
|
|
209
|
+
`SELECT table_name, col_name AS column_name, col_type AS column_type FROM information_schema.ins_columns
|
|
210
|
+
WHERE db_name = DATABASE() AND table_type = 'NORMAL_TABLE'`,
|
|
211
|
+
);
|
|
212
|
+
const first = new Set<string>();
|
|
213
|
+
return assembleTables({
|
|
214
|
+
tables: tables.map((t) => ({ ...t, comment: t['comment'] || null })),
|
|
215
|
+
// ins_columns 按列的顺序给出:每张表的第一列是时间戳主键
|
|
216
|
+
columns: columns.map((c) => {
|
|
217
|
+
const table = String(c['table_name']);
|
|
218
|
+
const key = !first.has(table);
|
|
219
|
+
first.add(table);
|
|
220
|
+
return {
|
|
221
|
+
...c,
|
|
222
|
+
column_type: String(c['column_type']).toLowerCase(),
|
|
223
|
+
is_nullable: !key,
|
|
224
|
+
column_default: null,
|
|
225
|
+
comment: null,
|
|
226
|
+
is_generated: false,
|
|
227
|
+
primary_key: key,
|
|
228
|
+
};
|
|
229
|
+
}),
|
|
230
|
+
indexes: [],
|
|
231
|
+
foreignKeys: [],
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// ---- 驱动 ----
|
|
237
|
+
|
|
238
|
+
const TEXT_TYPES = new Set(['NCHAR', 'VARCHAR', 'BINARY', 'VARBINARY', 'JSON', 'GEOMETRY']);
|
|
239
|
+
|
|
240
|
+
/** 读出的值:时间戳是毫秒数(bigint)→ UTC 文字,由列的 codec 解码;BIGINT 写成文字 */
|
|
241
|
+
function decode(value: unknown, type: string): unknown {
|
|
242
|
+
if (value === null || value === undefined) return null;
|
|
243
|
+
// 驱动把数字列的空值交成字符串 'NULL'
|
|
244
|
+
if (value === 'NULL' && !TEXT_TYPES.has(type)) return null;
|
|
245
|
+
if (type === 'TIMESTAMP')
|
|
246
|
+
return new Date(Number(value)).toISOString().replace('T', ' ').replace('Z', '');
|
|
247
|
+
if (typeof value === 'bigint') return value.toString();
|
|
248
|
+
return value;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
class TdengineDriver implements Driver {
|
|
252
|
+
private readonly sql: WsSql;
|
|
253
|
+
|
|
254
|
+
constructor(sql: WsSql) {
|
|
255
|
+
this.sql = sql;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
async query(sql: string): Promise<Record<string, unknown>[]> {
|
|
259
|
+
const rows = await this.sql.query(sql);
|
|
260
|
+
try {
|
|
261
|
+
const meta = rows.getMeta() ?? [];
|
|
262
|
+
const out: Record<string, unknown>[] = [];
|
|
263
|
+
while (await rows.next()) {
|
|
264
|
+
const data = rows.getData() ?? [];
|
|
265
|
+
out.push(Object.fromEntries(meta.map((m, i) => [m.name, decode(data[i], m.type)])));
|
|
266
|
+
}
|
|
267
|
+
return out;
|
|
268
|
+
} finally {
|
|
269
|
+
await rows.close();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
async execute(sql: string): Promise<ExecuteResult> {
|
|
274
|
+
const result = await this.sql.exec(sql);
|
|
275
|
+
return { affected: result.getAffectRows() ?? 0, insertId: undefined };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** 没有事务:依次执行 */
|
|
279
|
+
async transaction<T>(work: (session: Session) => Promise<T>): Promise<T> {
|
|
280
|
+
return work(this);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/** sql 是 sqlConnect 建好的连接(WSConfig 里设好库与时区 UTC) */
|
|
285
|
+
/** TDengine 缺的能力:没有 UPDATE、事务、行锁、RETURNING、自增;写同一时间戳就是覆盖 */
|
|
286
|
+
export type TdengineAdapter = Adapter<
|
|
287
|
+
Without<
|
|
288
|
+
| 'update'
|
|
289
|
+
| 'transactions'
|
|
290
|
+
| 'lock'
|
|
291
|
+
| 'forUpdate'
|
|
292
|
+
| 'skipLocked'
|
|
293
|
+
| 'noWait'
|
|
294
|
+
| 'returning'
|
|
295
|
+
| 'generatedKeys'
|
|
296
|
+
| 'upsertIgnore'
|
|
297
|
+
>
|
|
298
|
+
>;
|
|
299
|
+
|
|
300
|
+
export function tdengine(sql: WsSql): TdengineAdapter {
|
|
301
|
+
return { dialect: new TdengineDialect(), driver: new TdengineDriver(sql) };
|
|
302
|
+
}
|