@tachybase/module-multi-app 1.6.0 → 1.6.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.
Files changed (94) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/mariadb/callback.js +43 -8
  3. package/dist/node_modules/mariadb/check-node.js +30 -0
  4. package/dist/node_modules/mariadb/lib/cluster-callback.js +84 -0
  5. package/dist/node_modules/mariadb/lib/cluster.js +446 -0
  6. package/dist/node_modules/mariadb/lib/cmd/batch-bulk.js +576 -177
  7. package/dist/node_modules/mariadb/lib/cmd/change-user.js +54 -44
  8. package/dist/node_modules/mariadb/lib/cmd/class/ok-packet.js +3 -2
  9. package/dist/node_modules/mariadb/lib/cmd/class/prepare-cache-wrapper.js +46 -0
  10. package/dist/node_modules/mariadb/lib/cmd/class/prepare-result-packet.js +141 -0
  11. package/dist/node_modules/mariadb/lib/cmd/class/prepare-wrapper.js +70 -0
  12. package/dist/node_modules/mariadb/lib/cmd/close-prepare.js +38 -0
  13. package/dist/node_modules/mariadb/lib/cmd/column-definition.js +145 -47
  14. package/dist/node_modules/mariadb/lib/cmd/command.js +41 -75
  15. package/dist/node_modules/mariadb/lib/cmd/decoder/binary-decoder.js +282 -0
  16. package/dist/node_modules/mariadb/lib/cmd/decoder/text-decoder.js +210 -0
  17. package/dist/node_modules/mariadb/lib/cmd/{common-binary-cmd.js → encoder/binary-encoder.js} +34 -77
  18. package/dist/node_modules/mariadb/lib/cmd/encoder/text-encoder.js +311 -0
  19. package/dist/node_modules/mariadb/lib/cmd/execute-stream.js +61 -0
  20. package/dist/node_modules/mariadb/lib/cmd/execute.js +338 -0
  21. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/caching-sha2-password-auth.js +25 -62
  22. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/clear-password-auth.js +39 -6
  23. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/ed25519-password-auth.js +48 -16
  24. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/handshake.js +198 -0
  25. package/dist/node_modules/mariadb/lib/cmd/handshake/{initial-handshake.js → auth/initial-handshake.js} +10 -8
  26. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/native-password-auth.js +22 -9
  27. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/pam-password-auth.js +9 -4
  28. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/parsec-auth.js +115 -0
  29. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/plugin-auth.js +12 -5
  30. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/sha256-password-auth.js +44 -33
  31. package/dist/node_modules/mariadb/lib/cmd/handshake/authentication.js +335 -0
  32. package/dist/node_modules/mariadb/lib/cmd/handshake/client-capabilities.js +20 -19
  33. package/dist/node_modules/mariadb/lib/cmd/handshake/ssl-request.js +6 -3
  34. package/dist/node_modules/mariadb/lib/cmd/parser.js +861 -0
  35. package/dist/node_modules/mariadb/lib/cmd/ping.js +17 -18
  36. package/dist/node_modules/mariadb/lib/cmd/prepare.js +170 -0
  37. package/dist/node_modules/mariadb/lib/cmd/query.js +281 -144
  38. package/dist/node_modules/mariadb/lib/cmd/quit.js +9 -6
  39. package/dist/node_modules/mariadb/lib/cmd/reset.js +15 -19
  40. package/dist/node_modules/mariadb/lib/cmd/stream.js +21 -6
  41. package/dist/node_modules/mariadb/lib/config/cluster-options.js +23 -0
  42. package/dist/node_modules/mariadb/lib/config/connection-options.js +196 -132
  43. package/dist/node_modules/mariadb/lib/config/pool-options.js +27 -19
  44. package/dist/node_modules/mariadb/lib/connection-callback.js +492 -120
  45. package/dist/node_modules/mariadb/lib/connection-promise.js +372 -0
  46. package/dist/node_modules/mariadb/lib/connection.js +1739 -1016
  47. package/dist/node_modules/mariadb/lib/const/capabilities.js +36 -30
  48. package/dist/node_modules/mariadb/lib/const/collations.js +972 -36
  49. package/dist/node_modules/mariadb/lib/const/connection_status.js +3 -0
  50. package/dist/node_modules/mariadb/lib/const/error-code.js +35 -11
  51. package/dist/node_modules/mariadb/lib/const/field-detail.js +3 -0
  52. package/dist/node_modules/mariadb/lib/const/field-type.js +7 -4
  53. package/dist/node_modules/mariadb/lib/const/server-status.js +4 -1
  54. package/dist/node_modules/mariadb/lib/const/state-change.js +3 -0
  55. package/dist/node_modules/mariadb/lib/filtered-cluster-callback.js +136 -0
  56. package/dist/node_modules/mariadb/lib/filtered-cluster.js +118 -0
  57. package/dist/node_modules/mariadb/lib/io/compression-input-stream.js +14 -13
  58. package/dist/node_modules/mariadb/lib/io/compression-output-stream.js +21 -18
  59. package/dist/node_modules/mariadb/lib/io/packet-input-stream.js +75 -64
  60. package/dist/node_modules/mariadb/lib/io/packet-node-encoded.js +13 -9
  61. package/dist/node_modules/mariadb/lib/io/packet-node-iconv.js +12 -10
  62. package/dist/node_modules/mariadb/lib/io/packet-output-stream.js +402 -134
  63. package/dist/node_modules/mariadb/lib/io/packet.js +287 -202
  64. package/dist/node_modules/mariadb/lib/lru-prepare-cache.js +84 -0
  65. package/dist/node_modules/mariadb/lib/misc/connection-information.js +15 -32
  66. package/dist/node_modules/mariadb/lib/misc/errors.js +68 -25
  67. package/dist/node_modules/mariadb/lib/misc/parse.js +207 -711
  68. package/dist/node_modules/mariadb/lib/misc/utils.js +34 -62
  69. package/dist/node_modules/mariadb/lib/pool-callback.js +213 -174
  70. package/dist/node_modules/mariadb/lib/pool-promise.js +228 -94
  71. package/dist/node_modules/mariadb/lib/pool.js +951 -0
  72. package/dist/node_modules/mariadb/package.json +1 -1
  73. package/dist/node_modules/mariadb/promise.js +1 -34
  74. package/dist/node_modules/mariadb/types/callback.d.ts +207 -0
  75. package/dist/node_modules/mariadb/types/index.d.ts +94 -674
  76. package/dist/node_modules/mariadb/types/share.d.ts +804 -0
  77. package/dist/node_modules/qs/package.json +1 -1
  78. package/dist/server/actions/apps.js +2 -2
  79. package/dist/server/app-lifecycle.d.ts +1 -1
  80. package/dist/server/app-lifecycle.js +4 -4
  81. package/dist/server/models/application.d.ts +1 -1
  82. package/package.json +7 -7
  83. package/dist/node_modules/mariadb/lib/cmd/batch-rewrite.js +0 -372
  84. package/dist/node_modules/mariadb/lib/cmd/common-text-cmd.js +0 -427
  85. package/dist/node_modules/mariadb/lib/cmd/handshake/client-handshake-response.js +0 -126
  86. package/dist/node_modules/mariadb/lib/cmd/handshake/handshake.js +0 -292
  87. package/dist/node_modules/mariadb/lib/cmd/resultset.js +0 -607
  88. package/dist/node_modules/mariadb/lib/config/pool-cluster-options.js +0 -19
  89. package/dist/node_modules/mariadb/lib/filtered-pool-cluster.js +0 -81
  90. package/dist/node_modules/mariadb/lib/io/bulk-packet.js +0 -590
  91. package/dist/node_modules/mariadb/lib/io/rewrite-packet.js +0 -481
  92. package/dist/node_modules/mariadb/lib/pool-base.js +0 -611
  93. package/dist/node_modules/mariadb/lib/pool-cluster-callback.js +0 -66
  94. package/dist/node_modules/mariadb/lib/pool-cluster.js +0 -407
@@ -0,0 +1,207 @@
1
+ // SPDX-License-Identifier: LGPL-2.1-or-later
2
+ // Copyright (c) 2015-2025 MariaDB Corporation Ab
3
+
4
+ /*
5
+ * Callback-based API for mariadb-connector-nodejs
6
+ * This file mirrors the structure of the promise-based API in index.d.ts,
7
+ * but all async methods use Node.js-style callbacks as the last argument.
8
+ *
9
+ * Callback signature: (err: SqlError | null, result?: T, meta?: any) => void
10
+ *
11
+ * All types are reused from share.d.ts where possible.
12
+ */
13
+ /* eslint-disable @typescript-eslint/no-explicit-any */
14
+
15
+ import { Readable } from 'stream';
16
+ import { EventEmitter } from 'events';
17
+
18
+ import type {
19
+ ConnectionConfig,
20
+ ImportFileConfig,
21
+ SqlError,
22
+ FieldInfo,
23
+ QueryOptions,
24
+ UpsertResult,
25
+ PoolConfig,
26
+ PoolClusterConfig,
27
+ SqlImportOptions,
28
+ ConnectionInfo,
29
+ UserConnectionConfig
30
+ } from './share';
31
+
32
+ export * from './share';
33
+
34
+ export const version: string;
35
+ export function createConnection(connectionUri: string | ConnectionConfig): Connection;
36
+ export function importFile(config: ImportFileConfig, callback: (err: SqlError | null) => void): void;
37
+
38
+ export interface Prepare {
39
+ id: number;
40
+ execute<T = any>(values: any, callback: (err: SqlError | null, result?: T, meta?: any) => void): void;
41
+ /**
42
+ * Execute query returning a Readable Object that will emit columns/data/end/error events
43
+ * to permit streaming big result-set
44
+ */
45
+ executeStream(values: any): Readable;
46
+ close(): void;
47
+ }
48
+
49
+ export interface Connection extends EventEmitter {
50
+ /** Connection information */
51
+ info: ConnectionInfo | null;
52
+ /** Alias of info.threadId for compatibility */
53
+ readonly threadId: number | null;
54
+
55
+ changeUser(options: UserConnectionConfig, callback: (err: SqlError | null) => void): void;
56
+ beginTransaction(callback: (err: SqlError | null) => void): void;
57
+ commit(callback: (err: SqlError | null) => void): void;
58
+ rollback(callback: (err: SqlError | null) => void): void;
59
+ query<T = any>(
60
+ sql: string | QueryOptions,
61
+ values: any,
62
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
63
+ ): void;
64
+ query<T = any>(
65
+ sql: string | QueryOptions,
66
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
67
+ ): void;
68
+ prepare(sql: string | QueryOptions, callback: (err: SqlError | null, prepare?: Prepare) => void): void;
69
+ execute<T = any>(
70
+ sql: string | QueryOptions,
71
+ values: any,
72
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
73
+ ): void;
74
+ execute<T = any>(
75
+ sql: string | QueryOptions,
76
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
77
+ ): void;
78
+ batch<T = UpsertResult | UpsertResult[]>(
79
+ sql: string | QueryOptions,
80
+ values: any,
81
+ callback: (err: SqlError | null, result?: T) => void
82
+ ): void;
83
+ batch<T = UpsertResult | UpsertResult[]>(
84
+ sql: string | QueryOptions,
85
+ callback: (err: SqlError | null, result?: T) => void
86
+ ): void;
87
+ queryStream(sql: string | QueryOptions, values?: any): Readable;
88
+ ping(callback: (err: SqlError | null) => void): void;
89
+ reset(callback: (err: SqlError | null) => void): void;
90
+ importFile(config: SqlImportOptions, callback: (err: SqlError | null) => void): void;
91
+ isValid(): boolean;
92
+ end(callback: (err: SqlError | null) => void): void;
93
+ close(callback: (err: SqlError | null) => void): void;
94
+ destroy(): void;
95
+ pause(): void;
96
+ resume(): void;
97
+ serverVersion(): string;
98
+ debug(value: boolean): void;
99
+ debugCompress(value: boolean): void;
100
+ escape(value: any): string;
101
+ escapeId(identifier: string): string;
102
+ on(ev: 'end', callback: () => void): Connection;
103
+ on(ev: 'error', callback: (err: SqlError) => void): Connection;
104
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
105
+ listeners(ev: 'end'): (() => void)[];
106
+ listeners(ev: 'error'): ((err: SqlError) => void)[];
107
+ }
108
+
109
+ export interface PoolConnection extends Connection {
110
+ release(callback: (err: SqlError | null) => void): void;
111
+ }
112
+
113
+ export interface Pool {
114
+ closed: boolean;
115
+ getConnection(callback: (err: SqlError | null, conn?: PoolConnection) => void): void;
116
+ query<T = any>(
117
+ sql: string | QueryOptions,
118
+ values: any,
119
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
120
+ ): void;
121
+ query<T = any>(
122
+ sql: string | QueryOptions,
123
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
124
+ ): void;
125
+ batch<T = UpsertResult | UpsertResult[]>(
126
+ sql: string | QueryOptions,
127
+ values: any,
128
+ callback: (err: SqlError | null, result?: T) => void
129
+ ): void;
130
+ batch<T = UpsertResult | UpsertResult[]>(
131
+ sql: string | QueryOptions,
132
+ callback: (err: SqlError | null, result?: T) => void
133
+ ): void;
134
+ execute<T = any>(
135
+ sql: string | QueryOptions,
136
+ values: any,
137
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
138
+ ): void;
139
+ execute<T = any>(
140
+ sql: string | QueryOptions,
141
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
142
+ ): void;
143
+ end(callback: (err: SqlError | null) => void): void;
144
+ importFile(config: SqlImportOptions, callback: (err: SqlError | null) => void): void;
145
+ activeConnections(): number;
146
+ totalConnections(): number;
147
+ idleConnections(): number;
148
+ taskQueueSize(): number;
149
+ escape(value: any): string;
150
+ escapeId(identifier: string): string;
151
+ on(ev: 'acquire', callback: (conn: Connection) => void): Pool;
152
+ on(ev: 'connection', callback: (conn: Connection) => void): Pool;
153
+ on(ev: 'enqueue', callback: () => void): Pool;
154
+ on(ev: 'release', callback: (conn: Connection) => void): Pool;
155
+ }
156
+
157
+ export interface FilteredPoolCluster {
158
+ getConnection(callback: (err: SqlError | null, conn?: PoolConnection) => void): void;
159
+ query<T = any>(
160
+ sql: string | QueryOptions,
161
+ values: any,
162
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
163
+ ): void;
164
+ query<T = any>(
165
+ sql: string | QueryOptions,
166
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
167
+ ): void;
168
+ batch<T = UpsertResult | UpsertResult[]>(
169
+ sql: string | QueryOptions,
170
+ values: any,
171
+ callback: (err: SqlError | null, result?: T) => void
172
+ ): void;
173
+ batch<T = UpsertResult | UpsertResult[]>(
174
+ sql: string | QueryOptions,
175
+ callback: (err: SqlError | null, result?: T) => void
176
+ ): void;
177
+ execute<T = any>(
178
+ sql: string | QueryOptions,
179
+ values: any,
180
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
181
+ ): void;
182
+ execute<T = any>(
183
+ sql: string | QueryOptions,
184
+ callback: (err: SqlError | null, result?: T, meta?: FieldInfo[]) => void
185
+ ): void;
186
+ }
187
+
188
+ export interface PoolCluster {
189
+ add(id: string, config: PoolConfig): void;
190
+ end(callback: (err: SqlError | null) => void): void;
191
+ of(pattern: string, selector?: string): FilteredPoolCluster;
192
+ of(pattern: undefined | null | false, selector: string): FilteredPoolCluster;
193
+ remove(pattern: string): void;
194
+ getConnection(
195
+ pattern: string | undefined | null,
196
+ selector: string | undefined | null,
197
+ callback: (err: SqlError | null, conn?: PoolConnection) => void
198
+ ): void;
199
+ getConnection(
200
+ pattern: string | undefined | null,
201
+ callback: (err: SqlError | null, conn?: PoolConnection) => void
202
+ ): void;
203
+ getConnection(callback: (err: SqlError | null, conn?: PoolConnection) => void): void;
204
+ on(ev: 'remove', callback: (nodekey: string) => void): PoolCluster;
205
+ }
206
+ export function createPool(config: PoolConfig | string): Pool;
207
+ export function createPoolCluster(config?: PoolClusterConfig): PoolCluster;