@hpcc-js/comms 3.22.1 → 3.23.0

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.
@@ -0,0 +1,164 @@
1
+ import { IConnection, IOptions } from "../../../../connection.ts";
2
+ import { Service } from "../../../../espConnection.ts";
3
+ export declare namespace WsSQL2 {
4
+ type double = number;
5
+ type unsignedInt = number;
6
+ type long = number;
7
+ type uint64 = number;
8
+ interface CloseResultSetRequest {
9
+ CursorId?: string;
10
+ }
11
+ interface Exception {
12
+ Code?: string;
13
+ Audience?: string;
14
+ Source?: string;
15
+ Message?: string;
16
+ }
17
+ interface Exceptions {
18
+ Source?: string;
19
+ Exception?: Exception[];
20
+ }
21
+ interface CloseResultSetResponse {
22
+ Exceptions?: Exceptions;
23
+ Closed?: boolean;
24
+ }
25
+ interface ExecuteQueryRequest {
26
+ SqlText?: string;
27
+ IncludeRuntimeGraph?: boolean;
28
+ IncludeResultSetMetadata?: boolean;
29
+ IncludeDebug?: boolean;
30
+ }
31
+ interface Column {
32
+ ColumnLabel?: string;
33
+ ColumnTypeName?: string;
34
+ Precision?: unsignedInt;
35
+ Scale?: unsignedInt;
36
+ }
37
+ interface ResultSetMetadata {
38
+ Column?: Column[];
39
+ }
40
+ interface ExecuteQueryResponse {
41
+ Exceptions?: Exceptions;
42
+ CursorId?: string;
43
+ InitMs?: double;
44
+ PrepareMs?: double;
45
+ ResultSetMetadata?: ResultSetMetadata;
46
+ }
47
+ interface ExplainQueryRequest {
48
+ SqlText?: string;
49
+ }
50
+ interface ExplainQueryResponse {
51
+ Exceptions?: Exceptions;
52
+ Plan?: string;
53
+ PlanJson?: string;
54
+ ResultSetMetadata?: ResultSetMetadata;
55
+ }
56
+ interface FetchResultSetRequest {
57
+ CursorId?: string;
58
+ FetchSize?: unsignedInt;
59
+ }
60
+ interface Start {
61
+ DuckDBUsedBytes?: long;
62
+ DuckDBTempBytes?: long;
63
+ HeapInUseBytes?: long;
64
+ ResidentBytes?: long;
65
+ PeakResidentBytes?: long;
66
+ }
67
+ interface Current {
68
+ DuckDBUsedBytes?: long;
69
+ DuckDBTempBytes?: long;
70
+ HeapInUseBytes?: long;
71
+ ResidentBytes?: long;
72
+ PeakResidentBytes?: long;
73
+ }
74
+ interface Released {
75
+ DuckDBUsedBytes?: long;
76
+ DuckDBTempBytes?: long;
77
+ HeapInUseBytes?: long;
78
+ ResidentBytes?: long;
79
+ PeakResidentBytes?: long;
80
+ }
81
+ interface Retained {
82
+ DuckDBUsedBytes?: long;
83
+ DuckDBTempBytes?: long;
84
+ HeapInUseBytes?: long;
85
+ ResidentBytes?: long;
86
+ PeakResidentBytes?: long;
87
+ }
88
+ interface ScanObjectsCreated {
89
+ BindData?: long;
90
+ GlobalStates?: long;
91
+ LocalStates?: long;
92
+ }
93
+ interface ScanObjectsLive {
94
+ BindData?: long;
95
+ GlobalStates?: long;
96
+ LocalStates?: long;
97
+ }
98
+ interface DebugInfo {
99
+ Start?: Start;
100
+ Current?: Current;
101
+ Released?: Released;
102
+ Retained?: Retained;
103
+ ScanObjectsCreated?: ScanObjectsCreated;
104
+ ScanObjectsLive?: ScanObjectsLive;
105
+ LeakCheck?: string;
106
+ LeakCheckDetail?: string;
107
+ }
108
+ interface FetchResultSetResponse {
109
+ Exceptions?: Exceptions;
110
+ Rows?: string;
111
+ Complete?: boolean;
112
+ ExecuteMs?: double;
113
+ RuntimeGraph?: string;
114
+ RuntimeGraphJson?: string;
115
+ DebugInfo?: DebugInfo;
116
+ }
117
+ interface LogicalFileMetaRequest {
118
+ LogicalName?: string;
119
+ }
120
+ interface LogicalFileMeta {
121
+ Version?: unsignedInt;
122
+ LogicalName?: string;
123
+ Kind?: string;
124
+ Format?: string;
125
+ Grouped?: boolean;
126
+ FormatCrc?: unsignedInt;
127
+ RecordTranslationMode?: unsignedInt;
128
+ Modified?: long;
129
+ RecordCount?: uint64;
130
+ FormatOptions?: string;
131
+ ProviderOptions?: string;
132
+ EclRecord?: string;
133
+ FileParts?: string;
134
+ SampleSQL?: string;
135
+ }
136
+ interface LogicalFileMetaResponse {
137
+ Exceptions?: Exceptions;
138
+ LogicalFileMeta?: LogicalFileMeta;
139
+ }
140
+ interface WsSQL2PingRequest {
141
+ }
142
+ interface WsSQL2PingResponse {
143
+ }
144
+ interface SplitQueryRequest {
145
+ SqlText?: string;
146
+ }
147
+ interface Statements {
148
+ Statement?: string[];
149
+ }
150
+ interface SplitQueryResponse {
151
+ Exceptions?: Exceptions;
152
+ Statements?: Statements;
153
+ }
154
+ }
155
+ export declare class SQL2ServiceBase extends Service {
156
+ constructor(optsConnection: IOptions | IConnection);
157
+ CloseResultSet(request: WsSQL2.CloseResultSetRequest, abortSignal?: AbortSignal): Promise<WsSQL2.CloseResultSetResponse>;
158
+ ExecuteQuery(request: WsSQL2.ExecuteQueryRequest, abortSignal?: AbortSignal): Promise<WsSQL2.ExecuteQueryResponse>;
159
+ ExplainQuery(request: WsSQL2.ExplainQueryRequest, abortSignal?: AbortSignal): Promise<WsSQL2.ExplainQueryResponse>;
160
+ FetchResultSet(request: WsSQL2.FetchResultSetRequest, abortSignal?: AbortSignal): Promise<WsSQL2.FetchResultSetResponse>;
161
+ LogicalFileMeta(request: WsSQL2.LogicalFileMetaRequest, abortSignal?: AbortSignal): Promise<WsSQL2.LogicalFileMetaResponse>;
162
+ Ping(request: WsSQL2.WsSQL2PingRequest, abortSignal?: AbortSignal): Promise<WsSQL2.WsSQL2PingResponse>;
163
+ SplitQuery(request: WsSQL2.SplitQueryRequest, abortSignal?: AbortSignal): Promise<WsSQL2.SplitQueryResponse>;
164
+ }