@use-tusk/drift-schemas 0.1.10
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/README.md +22 -0
- package/dist/backend/onboarding_service.cjs +6 -0
- package/dist/backend/onboarding_service.client.cjs +30 -0
- package/dist/backend/onboarding_service.client.cjs.map +1 -0
- package/dist/backend/onboarding_service.client.d.cts +39 -0
- package/dist/backend/onboarding_service.client.d.cts.map +1 -0
- package/dist/backend/onboarding_service.client.d.ts +39 -0
- package/dist/backend/onboarding_service.client.d.ts.map +1 -0
- package/dist/backend/onboarding_service.client.js +28 -0
- package/dist/backend/onboarding_service.client.js.map +1 -0
- package/dist/backend/onboarding_service.d.cts +2 -0
- package/dist/backend/onboarding_service.d.ts +2 -0
- package/dist/backend/onboarding_service.js +3 -0
- package/dist/backend/span_export_service.cjs +9 -0
- package/dist/backend/span_export_service.client.cjs +32 -0
- package/dist/backend/span_export_service.client.cjs.map +1 -0
- package/dist/backend/span_export_service.client.d.cts +38 -0
- package/dist/backend/span_export_service.client.d.cts.map +1 -0
- package/dist/backend/span_export_service.client.d.ts +38 -0
- package/dist/backend/span_export_service.client.d.ts.map +1 -0
- package/dist/backend/span_export_service.client.js +30 -0
- package/dist/backend/span_export_service.client.js.map +1 -0
- package/dist/backend/span_export_service.d.cts +6 -0
- package/dist/backend/span_export_service.d.ts +6 -0
- package/dist/backend/span_export_service.js +7 -0
- package/dist/backend/test_run_service.cjs +49 -0
- package/dist/backend/test_run_service.client.cjs +100 -0
- package/dist/backend/test_run_service.client.cjs.map +1 -0
- package/dist/backend/test_run_service.client.d.cts +133 -0
- package/dist/backend/test_run_service.client.d.cts.map +1 -0
- package/dist/backend/test_run_service.client.d.ts +133 -0
- package/dist/backend/test_run_service.client.d.ts.map +1 -0
- package/dist/backend/test_run_service.client.js +98 -0
- package/dist/backend/test_run_service.client.js.map +1 -0
- package/dist/backend/test_run_service.d.cts +6 -0
- package/dist/backend/test_run_service.d.ts +6 -0
- package/dist/backend/test_run_service.js +7 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/communication-CJHE2gJz.cjs +787 -0
- package/dist/communication-CJHE2gJz.cjs.map +1 -0
- package/dist/communication-D_MVOCQQ.d.cts +325 -0
- package/dist/communication-D_MVOCQQ.d.cts.map +1 -0
- package/dist/communication-Np8Uorqu.js +725 -0
- package/dist/communication-Np8Uorqu.js.map +1 -0
- package/dist/communication-bKx0B3ai.d.ts +325 -0
- package/dist/communication-bKx0B3ai.d.ts.map +1 -0
- package/dist/core/communication.cjs +16 -0
- package/dist/core/communication.client.cjs +48 -0
- package/dist/core/communication.client.cjs.map +1 -0
- package/dist/core/communication.client.d.cts +59 -0
- package/dist/core/communication.client.d.cts.map +1 -0
- package/dist/core/communication.client.d.ts +59 -0
- package/dist/core/communication.client.d.ts.map +1 -0
- package/dist/core/communication.client.js +46 -0
- package/dist/core/communication.client.js.map +1 -0
- package/dist/core/communication.d.cts +6 -0
- package/dist/core/communication.d.ts +6 -0
- package/dist/core/communication.js +7 -0
- package/dist/core/span.cjs +13 -0
- package/dist/core/span.d.cts +5 -0
- package/dist/core/span.d.ts +5 -0
- package/dist/core/span.js +6 -0
- package/dist/duration-2zPogS5a.d.ts +109 -0
- package/dist/duration-2zPogS5a.d.ts.map +1 -0
- package/dist/duration-B3fwb4jB.js +96 -0
- package/dist/duration-B3fwb4jB.js.map +1 -0
- package/dist/duration-C9RVKjpO.d.cts +109 -0
- package/dist/duration-C9RVKjpO.d.cts.map +1 -0
- package/dist/duration-DXK3bnoh.cjs +103 -0
- package/dist/duration-DXK3bnoh.cjs.map +1 -0
- package/dist/google/protobuf/duration.cjs +3 -0
- package/dist/google/protobuf/duration.d.cts +2 -0
- package/dist/google/protobuf/duration.d.ts +2 -0
- package/dist/google/protobuf/duration.js +3 -0
- package/dist/google/protobuf/struct.cjs +6 -0
- package/dist/google/protobuf/struct.d.cts +2 -0
- package/dist/google/protobuf/struct.d.ts +2 -0
- package/dist/google/protobuf/struct.js +3 -0
- package/dist/google/protobuf/timestamp.cjs +3 -0
- package/dist/google/protobuf/timestamp.d.cts +2 -0
- package/dist/google/protobuf/timestamp.d.ts +2 -0
- package/dist/google/protobuf/timestamp.js +3 -0
- package/dist/onboarding_service-AomDhJCy.js +145 -0
- package/dist/onboarding_service-AomDhJCy.js.map +1 -0
- package/dist/onboarding_service-C0YdBJhl.d.cts +71 -0
- package/dist/onboarding_service-C0YdBJhl.d.cts.map +1 -0
- package/dist/onboarding_service-Ccl8QTd4.cjs +171 -0
- package/dist/onboarding_service-Ccl8QTd4.cjs.map +1 -0
- package/dist/onboarding_service-kegV5UqG.d.ts +71 -0
- package/dist/onboarding_service-kegV5UqG.d.ts.map +1 -0
- package/dist/postgresql/postgresql.cjs +1476 -0
- package/dist/postgresql/postgresql.cjs.map +1 -0
- package/dist/postgresql/postgresql.d.cts +639 -0
- package/dist/postgresql/postgresql.d.cts.map +1 -0
- package/dist/postgresql/postgresql.d.ts +639 -0
- package/dist/postgresql/postgresql.d.ts.map +1 -0
- package/dist/postgresql/postgresql.js +1461 -0
- package/dist/postgresql/postgresql.js.map +1 -0
- package/dist/span-BOpbAPMC.d.ts +396 -0
- package/dist/span-BOpbAPMC.d.ts.map +1 -0
- package/dist/span-DdxaadRr.cjs +827 -0
- package/dist/span-DdxaadRr.cjs.map +1 -0
- package/dist/span-DwoKrEhp.js +778 -0
- package/dist/span-DwoKrEhp.js.map +1 -0
- package/dist/span-EQEkCEbn.d.cts +396 -0
- package/dist/span-EQEkCEbn.d.cts.map +1 -0
- package/dist/span_export_service-CbSVaHwu.d.cts +73 -0
- package/dist/span_export_service-CbSVaHwu.d.cts.map +1 -0
- package/dist/span_export_service-DzOsX7Of.d.ts +73 -0
- package/dist/span_export_service-DzOsX7Of.d.ts.map +1 -0
- package/dist/span_export_service-ZbWxkZSp.js +161 -0
- package/dist/span_export_service-ZbWxkZSp.js.map +1 -0
- package/dist/span_export_service-rOsqG9c6.cjs +181 -0
- package/dist/span_export_service-rOsqG9c6.cjs.map +1 -0
- package/dist/struct-BArXEwH6.d.ts +183 -0
- package/dist/struct-BArXEwH6.d.ts.map +1 -0
- package/dist/struct-B_Dk4HR1.cjs +379 -0
- package/dist/struct-B_Dk4HR1.cjs.map +1 -0
- package/dist/struct-ByyMh9ro.d.cts +183 -0
- package/dist/struct-ByyMh9ro.d.cts.map +1 -0
- package/dist/struct-LJz5_MGH.js +354 -0
- package/dist/struct-LJz5_MGH.js.map +1 -0
- package/dist/test_run_service-5Yml6s_N.d.ts +1179 -0
- package/dist/test_run_service-5Yml6s_N.d.ts.map +1 -0
- package/dist/test_run_service-BVhrRxO_.js +2559 -0
- package/dist/test_run_service-BVhrRxO_.js.map +1 -0
- package/dist/test_run_service-DAflWX54.d.cts +1179 -0
- package/dist/test_run_service-DAflWX54.d.cts.map +1 -0
- package/dist/test_run_service-Dkjv1XDs.cjs +2819 -0
- package/dist/test_run_service-Dkjv1XDs.cjs.map +1 -0
- package/dist/timestamp-2doLREh_.d.ts +152 -0
- package/dist/timestamp-2doLREh_.d.ts.map +1 -0
- package/dist/timestamp-C1kA6yb7.d.cts +152 -0
- package/dist/timestamp-C1kA6yb7.d.cts.map +1 -0
- package/dist/timestamp-CN7C70ih.js +121 -0
- package/dist/timestamp-CN7C70ih.js.map +1 -0
- package/dist/timestamp-Dfs_RIb3.cjs +128 -0
- package/dist/timestamp-Dfs_RIb3.cjs.map +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,1476 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_struct = require('../struct-B_Dk4HR1.cjs');
|
|
3
|
+
const require_timestamp = require('../timestamp-Dfs_RIb3.cjs');
|
|
4
|
+
let __protobuf_ts_runtime = require("@protobuf-ts/runtime");
|
|
5
|
+
__protobuf_ts_runtime = require_chunk.__toESM(__protobuf_ts_runtime);
|
|
6
|
+
|
|
7
|
+
//#region generated/ts/postgresql/postgresql.ts
|
|
8
|
+
/**
|
|
9
|
+
* Transaction state enumeration
|
|
10
|
+
*
|
|
11
|
+
* @generated from protobuf enum tusk.drift.instrumentation.postgresql.v1.TransactionState
|
|
12
|
+
*/
|
|
13
|
+
let TransactionState = /* @__PURE__ */ function(TransactionState$1) {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf enum value: TRANSACTION_STATE_UNSPECIFIED = 0;
|
|
16
|
+
*/
|
|
17
|
+
TransactionState$1[TransactionState$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
18
|
+
/**
|
|
19
|
+
* Not in a transaction
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf enum value: TRANSACTION_STATE_IDLE = 1;
|
|
22
|
+
*/
|
|
23
|
+
TransactionState$1[TransactionState$1["IDLE"] = 1] = "IDLE";
|
|
24
|
+
/**
|
|
25
|
+
* Transaction active
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf enum value: TRANSACTION_STATE_ACTIVE = 2;
|
|
28
|
+
*/
|
|
29
|
+
TransactionState$1[TransactionState$1["ACTIVE"] = 2] = "ACTIVE";
|
|
30
|
+
/**
|
|
31
|
+
* Idle in transaction
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf enum value: TRANSACTION_STATE_IDLE_IN_TRANSACTION = 3;
|
|
34
|
+
*/
|
|
35
|
+
TransactionState$1[TransactionState$1["IDLE_IN_TRANSACTION"] = 3] = "IDLE_IN_TRANSACTION";
|
|
36
|
+
/**
|
|
37
|
+
* Idle in failed transaction
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf enum value: TRANSACTION_STATE_IDLE_IN_FAILED_TRANSACTION = 4;
|
|
40
|
+
*/
|
|
41
|
+
TransactionState$1[TransactionState$1["IDLE_IN_FAILED_TRANSACTION"] = 4] = "IDLE_IN_FAILED_TRANSACTION";
|
|
42
|
+
return TransactionState$1;
|
|
43
|
+
}({});
|
|
44
|
+
/**
|
|
45
|
+
* PostgreSQL isolation levels
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf enum tusk.drift.instrumentation.postgresql.v1.IsolationLevel
|
|
48
|
+
*/
|
|
49
|
+
let IsolationLevel = /* @__PURE__ */ function(IsolationLevel$1) {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf enum value: ISOLATION_LEVEL_UNSPECIFIED = 0;
|
|
52
|
+
*/
|
|
53
|
+
IsolationLevel$1[IsolationLevel$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
54
|
+
/**
|
|
55
|
+
* @generated from protobuf enum value: ISOLATION_LEVEL_READ_UNCOMMITTED = 1;
|
|
56
|
+
*/
|
|
57
|
+
IsolationLevel$1[IsolationLevel$1["READ_UNCOMMITTED"] = 1] = "READ_UNCOMMITTED";
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf enum value: ISOLATION_LEVEL_READ_COMMITTED = 2;
|
|
60
|
+
*/
|
|
61
|
+
IsolationLevel$1[IsolationLevel$1["READ_COMMITTED"] = 2] = "READ_COMMITTED";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf enum value: ISOLATION_LEVEL_REPEATABLE_READ = 3;
|
|
64
|
+
*/
|
|
65
|
+
IsolationLevel$1[IsolationLevel$1["REPEATABLE_READ"] = 3] = "REPEATABLE_READ";
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf enum value: ISOLATION_LEVEL_SERIALIZABLE = 4;
|
|
68
|
+
*/
|
|
69
|
+
IsolationLevel$1[IsolationLevel$1["SERIALIZABLE"] = 4] = "SERIALIZABLE";
|
|
70
|
+
return IsolationLevel$1;
|
|
71
|
+
}({});
|
|
72
|
+
var PostgreSQLQuery$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
73
|
+
constructor() {
|
|
74
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery", [
|
|
75
|
+
{
|
|
76
|
+
no: 1,
|
|
77
|
+
name: "text",
|
|
78
|
+
kind: "scalar",
|
|
79
|
+
T: 9
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
no: 2,
|
|
83
|
+
name: "values",
|
|
84
|
+
kind: "scalar",
|
|
85
|
+
repeat: 2,
|
|
86
|
+
T: 9
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
no: 3,
|
|
90
|
+
name: "client_type",
|
|
91
|
+
kind: "scalar",
|
|
92
|
+
T: 9
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
no: 4,
|
|
96
|
+
name: "connection",
|
|
97
|
+
kind: "message",
|
|
98
|
+
T: () => PostgreSQLConnection
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
no: 5,
|
|
102
|
+
name: "options",
|
|
103
|
+
kind: "message",
|
|
104
|
+
T: () => QueryOptions
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
no: 6,
|
|
108
|
+
name: "query_id",
|
|
109
|
+
kind: "scalar",
|
|
110
|
+
T: 9
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
no: 7,
|
|
114
|
+
name: "tags",
|
|
115
|
+
kind: "map",
|
|
116
|
+
K: 9,
|
|
117
|
+
V: {
|
|
118
|
+
kind: "scalar",
|
|
119
|
+
T: 9
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]);
|
|
123
|
+
}
|
|
124
|
+
create(value) {
|
|
125
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
126
|
+
message.text = "";
|
|
127
|
+
message.values = [];
|
|
128
|
+
message.clientType = "";
|
|
129
|
+
message.queryId = "";
|
|
130
|
+
message.tags = {};
|
|
131
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
132
|
+
return message;
|
|
133
|
+
}
|
|
134
|
+
internalBinaryRead(reader, length, options, target) {
|
|
135
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
let [fieldNo, wireType] = reader.tag();
|
|
138
|
+
switch (fieldNo) {
|
|
139
|
+
case 1:
|
|
140
|
+
message.text = reader.string();
|
|
141
|
+
break;
|
|
142
|
+
case 2:
|
|
143
|
+
message.values.push(reader.string());
|
|
144
|
+
break;
|
|
145
|
+
case 3:
|
|
146
|
+
message.clientType = reader.string();
|
|
147
|
+
break;
|
|
148
|
+
case 4:
|
|
149
|
+
message.connection = PostgreSQLConnection.internalBinaryRead(reader, reader.uint32(), options, message.connection);
|
|
150
|
+
break;
|
|
151
|
+
case 5:
|
|
152
|
+
message.options = QueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
|
|
153
|
+
break;
|
|
154
|
+
case 6:
|
|
155
|
+
message.queryId = reader.string();
|
|
156
|
+
break;
|
|
157
|
+
case 7:
|
|
158
|
+
this.binaryReadMap7(message.tags, reader, options);
|
|
159
|
+
break;
|
|
160
|
+
default:
|
|
161
|
+
let u = options.readUnknownField;
|
|
162
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
163
|
+
let d = reader.skip(wireType);
|
|
164
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
}
|
|
169
|
+
binaryReadMap7(map, reader, options) {
|
|
170
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
171
|
+
while (reader.pos < end) {
|
|
172
|
+
let [fieldNo, wireType] = reader.tag();
|
|
173
|
+
switch (fieldNo) {
|
|
174
|
+
case 1:
|
|
175
|
+
key = reader.string();
|
|
176
|
+
break;
|
|
177
|
+
case 2:
|
|
178
|
+
val = reader.string();
|
|
179
|
+
break;
|
|
180
|
+
default: throw new globalThis.Error("unknown map entry field for tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery.tags");
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
map[key ?? ""] = val ?? "";
|
|
184
|
+
}
|
|
185
|
+
internalBinaryWrite(message, writer, options) {
|
|
186
|
+
if (message.text !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.text);
|
|
187
|
+
for (let i = 0; i < message.values.length; i++) writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.values[i]);
|
|
188
|
+
if (message.clientType !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.clientType);
|
|
189
|
+
if (message.connection) PostgreSQLConnection.internalBinaryWrite(message.connection, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
190
|
+
if (message.options) QueryOptions.internalBinaryWrite(message.options, writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
191
|
+
if (message.queryId !== "") writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.queryId);
|
|
192
|
+
for (let k of globalThis.Object.keys(message.tags)) writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(k).tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.tags[k]).join();
|
|
193
|
+
let u = options.writeUnknownFields;
|
|
194
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
195
|
+
return writer;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery
|
|
200
|
+
*/
|
|
201
|
+
const PostgreSQLQuery = new PostgreSQLQuery$Type();
|
|
202
|
+
var PostgreSQLConnection$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
203
|
+
constructor() {
|
|
204
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLConnection", [
|
|
205
|
+
{
|
|
206
|
+
no: 1,
|
|
207
|
+
name: "database_name",
|
|
208
|
+
kind: "scalar",
|
|
209
|
+
T: 9
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
no: 2,
|
|
213
|
+
name: "username",
|
|
214
|
+
kind: "scalar",
|
|
215
|
+
T: 9
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
no: 3,
|
|
219
|
+
name: "host",
|
|
220
|
+
kind: "scalar",
|
|
221
|
+
T: 9
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
no: 4,
|
|
225
|
+
name: "port",
|
|
226
|
+
kind: "scalar",
|
|
227
|
+
T: 5
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
no: 5,
|
|
231
|
+
name: "application_name",
|
|
232
|
+
kind: "scalar",
|
|
233
|
+
T: 9
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
no: 6,
|
|
237
|
+
name: "connection_id",
|
|
238
|
+
kind: "scalar",
|
|
239
|
+
T: 9
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
no: 7,
|
|
243
|
+
name: "ssl_enabled",
|
|
244
|
+
kind: "scalar",
|
|
245
|
+
T: 8
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
no: 8,
|
|
249
|
+
name: "server_version",
|
|
250
|
+
kind: "scalar",
|
|
251
|
+
T: 9
|
|
252
|
+
}
|
|
253
|
+
]);
|
|
254
|
+
}
|
|
255
|
+
create(value) {
|
|
256
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
257
|
+
message.databaseName = "";
|
|
258
|
+
message.username = "";
|
|
259
|
+
message.host = "";
|
|
260
|
+
message.port = 0;
|
|
261
|
+
message.applicationName = "";
|
|
262
|
+
message.connectionId = "";
|
|
263
|
+
message.sslEnabled = false;
|
|
264
|
+
message.serverVersion = "";
|
|
265
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
266
|
+
return message;
|
|
267
|
+
}
|
|
268
|
+
internalBinaryRead(reader, length, options, target) {
|
|
269
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
270
|
+
while (reader.pos < end) {
|
|
271
|
+
let [fieldNo, wireType] = reader.tag();
|
|
272
|
+
switch (fieldNo) {
|
|
273
|
+
case 1:
|
|
274
|
+
message.databaseName = reader.string();
|
|
275
|
+
break;
|
|
276
|
+
case 2:
|
|
277
|
+
message.username = reader.string();
|
|
278
|
+
break;
|
|
279
|
+
case 3:
|
|
280
|
+
message.host = reader.string();
|
|
281
|
+
break;
|
|
282
|
+
case 4:
|
|
283
|
+
message.port = reader.int32();
|
|
284
|
+
break;
|
|
285
|
+
case 5:
|
|
286
|
+
message.applicationName = reader.string();
|
|
287
|
+
break;
|
|
288
|
+
case 6:
|
|
289
|
+
message.connectionId = reader.string();
|
|
290
|
+
break;
|
|
291
|
+
case 7:
|
|
292
|
+
message.sslEnabled = reader.bool();
|
|
293
|
+
break;
|
|
294
|
+
case 8:
|
|
295
|
+
message.serverVersion = reader.string();
|
|
296
|
+
break;
|
|
297
|
+
default:
|
|
298
|
+
let u = options.readUnknownField;
|
|
299
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
300
|
+
let d = reader.skip(wireType);
|
|
301
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return message;
|
|
305
|
+
}
|
|
306
|
+
internalBinaryWrite(message, writer, options) {
|
|
307
|
+
if (message.databaseName !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.databaseName);
|
|
308
|
+
if (message.username !== "") writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.username);
|
|
309
|
+
if (message.host !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.host);
|
|
310
|
+
if (message.port !== 0) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).int32(message.port);
|
|
311
|
+
if (message.applicationName !== "") writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.applicationName);
|
|
312
|
+
if (message.connectionId !== "") writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.connectionId);
|
|
313
|
+
if (message.sslEnabled !== false) writer.tag(7, __protobuf_ts_runtime.WireType.Varint).bool(message.sslEnabled);
|
|
314
|
+
if (message.serverVersion !== "") writer.tag(8, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.serverVersion);
|
|
315
|
+
let u = options.writeUnknownFields;
|
|
316
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
317
|
+
return writer;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLConnection
|
|
322
|
+
*/
|
|
323
|
+
const PostgreSQLConnection = new PostgreSQLConnection$Type();
|
|
324
|
+
var QueryOptions$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
325
|
+
constructor() {
|
|
326
|
+
super("tusk.drift.instrumentation.postgresql.v1.QueryOptions", [
|
|
327
|
+
{
|
|
328
|
+
no: 1,
|
|
329
|
+
name: "statement_timeout",
|
|
330
|
+
kind: "scalar",
|
|
331
|
+
T: 5
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
no: 2,
|
|
335
|
+
name: "query_timeout",
|
|
336
|
+
kind: "scalar",
|
|
337
|
+
T: 5
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
no: 3,
|
|
341
|
+
name: "binary_mode",
|
|
342
|
+
kind: "scalar",
|
|
343
|
+
T: 8
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
no: 4,
|
|
347
|
+
name: "cursor_name",
|
|
348
|
+
kind: "scalar",
|
|
349
|
+
T: 9
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
no: 5,
|
|
353
|
+
name: "fetch_size",
|
|
354
|
+
kind: "scalar",
|
|
355
|
+
T: 5
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
no: 6,
|
|
359
|
+
name: "read_only",
|
|
360
|
+
kind: "scalar",
|
|
361
|
+
T: 8
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
no: 7,
|
|
365
|
+
name: "custom_options",
|
|
366
|
+
kind: "map",
|
|
367
|
+
K: 9,
|
|
368
|
+
V: {
|
|
369
|
+
kind: "scalar",
|
|
370
|
+
T: 9
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
]);
|
|
374
|
+
}
|
|
375
|
+
create(value) {
|
|
376
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
377
|
+
message.statementTimeout = 0;
|
|
378
|
+
message.queryTimeout = 0;
|
|
379
|
+
message.binaryMode = false;
|
|
380
|
+
message.cursorName = "";
|
|
381
|
+
message.fetchSize = 0;
|
|
382
|
+
message.readOnly = false;
|
|
383
|
+
message.customOptions = {};
|
|
384
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
385
|
+
return message;
|
|
386
|
+
}
|
|
387
|
+
internalBinaryRead(reader, length, options, target) {
|
|
388
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
389
|
+
while (reader.pos < end) {
|
|
390
|
+
let [fieldNo, wireType] = reader.tag();
|
|
391
|
+
switch (fieldNo) {
|
|
392
|
+
case 1:
|
|
393
|
+
message.statementTimeout = reader.int32();
|
|
394
|
+
break;
|
|
395
|
+
case 2:
|
|
396
|
+
message.queryTimeout = reader.int32();
|
|
397
|
+
break;
|
|
398
|
+
case 3:
|
|
399
|
+
message.binaryMode = reader.bool();
|
|
400
|
+
break;
|
|
401
|
+
case 4:
|
|
402
|
+
message.cursorName = reader.string();
|
|
403
|
+
break;
|
|
404
|
+
case 5:
|
|
405
|
+
message.fetchSize = reader.int32();
|
|
406
|
+
break;
|
|
407
|
+
case 6:
|
|
408
|
+
message.readOnly = reader.bool();
|
|
409
|
+
break;
|
|
410
|
+
case 7:
|
|
411
|
+
this.binaryReadMap7(message.customOptions, reader, options);
|
|
412
|
+
break;
|
|
413
|
+
default:
|
|
414
|
+
let u = options.readUnknownField;
|
|
415
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
416
|
+
let d = reader.skip(wireType);
|
|
417
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return message;
|
|
421
|
+
}
|
|
422
|
+
binaryReadMap7(map, reader, options) {
|
|
423
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
424
|
+
while (reader.pos < end) {
|
|
425
|
+
let [fieldNo, wireType] = reader.tag();
|
|
426
|
+
switch (fieldNo) {
|
|
427
|
+
case 1:
|
|
428
|
+
key = reader.string();
|
|
429
|
+
break;
|
|
430
|
+
case 2:
|
|
431
|
+
val = reader.string();
|
|
432
|
+
break;
|
|
433
|
+
default: throw new globalThis.Error("unknown map entry field for tusk.drift.instrumentation.postgresql.v1.QueryOptions.custom_options");
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
map[key ?? ""] = val ?? "";
|
|
437
|
+
}
|
|
438
|
+
internalBinaryWrite(message, writer, options) {
|
|
439
|
+
if (message.statementTimeout !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.statementTimeout);
|
|
440
|
+
if (message.queryTimeout !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.queryTimeout);
|
|
441
|
+
if (message.binaryMode !== false) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).bool(message.binaryMode);
|
|
442
|
+
if (message.cursorName !== "") writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.cursorName);
|
|
443
|
+
if (message.fetchSize !== 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.fetchSize);
|
|
444
|
+
if (message.readOnly !== false) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).bool(message.readOnly);
|
|
445
|
+
for (let k of globalThis.Object.keys(message.customOptions)) writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).fork().tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(k).tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.customOptions[k]).join();
|
|
446
|
+
let u = options.writeUnknownFields;
|
|
447
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
448
|
+
return writer;
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.QueryOptions
|
|
453
|
+
*/
|
|
454
|
+
const QueryOptions = new QueryOptions$Type();
|
|
455
|
+
var PostgreSQLResult$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
456
|
+
constructor() {
|
|
457
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLResult", [
|
|
458
|
+
{
|
|
459
|
+
no: 1,
|
|
460
|
+
name: "command",
|
|
461
|
+
kind: "scalar",
|
|
462
|
+
T: 9
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
no: 2,
|
|
466
|
+
name: "row_count",
|
|
467
|
+
kind: "scalar",
|
|
468
|
+
T: 5
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
no: 3,
|
|
472
|
+
name: "oid",
|
|
473
|
+
kind: "scalar",
|
|
474
|
+
opt: true,
|
|
475
|
+
T: 5
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
no: 4,
|
|
479
|
+
name: "rows",
|
|
480
|
+
kind: "message",
|
|
481
|
+
repeat: 2,
|
|
482
|
+
T: () => require_struct.Struct
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
no: 5,
|
|
486
|
+
name: "fields",
|
|
487
|
+
kind: "message",
|
|
488
|
+
repeat: 2,
|
|
489
|
+
T: () => PostgreSQLField
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
no: 6,
|
|
493
|
+
name: "execution_info",
|
|
494
|
+
kind: "message",
|
|
495
|
+
T: () => QueryExecutionInfo
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
no: 7,
|
|
499
|
+
name: "error",
|
|
500
|
+
kind: "message",
|
|
501
|
+
T: () => PostgreSQLError
|
|
502
|
+
}
|
|
503
|
+
]);
|
|
504
|
+
}
|
|
505
|
+
create(value) {
|
|
506
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
507
|
+
message.command = "";
|
|
508
|
+
message.rowCount = 0;
|
|
509
|
+
message.rows = [];
|
|
510
|
+
message.fields = [];
|
|
511
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
512
|
+
return message;
|
|
513
|
+
}
|
|
514
|
+
internalBinaryRead(reader, length, options, target) {
|
|
515
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
516
|
+
while (reader.pos < end) {
|
|
517
|
+
let [fieldNo, wireType] = reader.tag();
|
|
518
|
+
switch (fieldNo) {
|
|
519
|
+
case 1:
|
|
520
|
+
message.command = reader.string();
|
|
521
|
+
break;
|
|
522
|
+
case 2:
|
|
523
|
+
message.rowCount = reader.int32();
|
|
524
|
+
break;
|
|
525
|
+
case 3:
|
|
526
|
+
message.oid = reader.int32();
|
|
527
|
+
break;
|
|
528
|
+
case 4:
|
|
529
|
+
message.rows.push(require_struct.Struct.internalBinaryRead(reader, reader.uint32(), options));
|
|
530
|
+
break;
|
|
531
|
+
case 5:
|
|
532
|
+
message.fields.push(PostgreSQLField.internalBinaryRead(reader, reader.uint32(), options));
|
|
533
|
+
break;
|
|
534
|
+
case 6:
|
|
535
|
+
message.executionInfo = QueryExecutionInfo.internalBinaryRead(reader, reader.uint32(), options, message.executionInfo);
|
|
536
|
+
break;
|
|
537
|
+
case 7:
|
|
538
|
+
message.error = PostgreSQLError.internalBinaryRead(reader, reader.uint32(), options, message.error);
|
|
539
|
+
break;
|
|
540
|
+
default:
|
|
541
|
+
let u = options.readUnknownField;
|
|
542
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
543
|
+
let d = reader.skip(wireType);
|
|
544
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return message;
|
|
548
|
+
}
|
|
549
|
+
internalBinaryWrite(message, writer, options) {
|
|
550
|
+
if (message.command !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.command);
|
|
551
|
+
if (message.rowCount !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.rowCount);
|
|
552
|
+
if (message.oid !== void 0) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).int32(message.oid);
|
|
553
|
+
for (let i = 0; i < message.rows.length; i++) require_struct.Struct.internalBinaryWrite(message.rows[i], writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
554
|
+
for (let i = 0; i < message.fields.length; i++) PostgreSQLField.internalBinaryWrite(message.fields[i], writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
555
|
+
if (message.executionInfo) QueryExecutionInfo.internalBinaryWrite(message.executionInfo, writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
556
|
+
if (message.error) PostgreSQLError.internalBinaryWrite(message.error, writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
557
|
+
let u = options.writeUnknownFields;
|
|
558
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
559
|
+
return writer;
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLResult
|
|
564
|
+
*/
|
|
565
|
+
const PostgreSQLResult = new PostgreSQLResult$Type();
|
|
566
|
+
var PostgreSQLField$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
567
|
+
constructor() {
|
|
568
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLField", [
|
|
569
|
+
{
|
|
570
|
+
no: 1,
|
|
571
|
+
name: "name",
|
|
572
|
+
kind: "scalar",
|
|
573
|
+
T: 9
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
no: 2,
|
|
577
|
+
name: "table_id",
|
|
578
|
+
kind: "scalar",
|
|
579
|
+
T: 5
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
no: 3,
|
|
583
|
+
name: "column_id",
|
|
584
|
+
kind: "scalar",
|
|
585
|
+
T: 5
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
no: 4,
|
|
589
|
+
name: "data_type_id",
|
|
590
|
+
kind: "scalar",
|
|
591
|
+
T: 5
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
no: 5,
|
|
595
|
+
name: "data_type_size",
|
|
596
|
+
kind: "scalar",
|
|
597
|
+
T: 5
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
no: 6,
|
|
601
|
+
name: "data_type_modifier",
|
|
602
|
+
kind: "scalar",
|
|
603
|
+
T: 5
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
no: 7,
|
|
607
|
+
name: "format",
|
|
608
|
+
kind: "scalar",
|
|
609
|
+
T: 9
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
no: 8,
|
|
613
|
+
name: "data_type_name",
|
|
614
|
+
kind: "scalar",
|
|
615
|
+
T: 9
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
no: 9,
|
|
619
|
+
name: "nullable",
|
|
620
|
+
kind: "scalar",
|
|
621
|
+
T: 8
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
no: 10,
|
|
625
|
+
name: "primary_key",
|
|
626
|
+
kind: "scalar",
|
|
627
|
+
T: 8
|
|
628
|
+
}
|
|
629
|
+
]);
|
|
630
|
+
}
|
|
631
|
+
create(value) {
|
|
632
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
633
|
+
message.name = "";
|
|
634
|
+
message.tableId = 0;
|
|
635
|
+
message.columnId = 0;
|
|
636
|
+
message.dataTypeId = 0;
|
|
637
|
+
message.dataTypeSize = 0;
|
|
638
|
+
message.dataTypeModifier = 0;
|
|
639
|
+
message.format = "";
|
|
640
|
+
message.dataTypeName = "";
|
|
641
|
+
message.nullable = false;
|
|
642
|
+
message.primaryKey = false;
|
|
643
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
644
|
+
return message;
|
|
645
|
+
}
|
|
646
|
+
internalBinaryRead(reader, length, options, target) {
|
|
647
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
648
|
+
while (reader.pos < end) {
|
|
649
|
+
let [fieldNo, wireType] = reader.tag();
|
|
650
|
+
switch (fieldNo) {
|
|
651
|
+
case 1:
|
|
652
|
+
message.name = reader.string();
|
|
653
|
+
break;
|
|
654
|
+
case 2:
|
|
655
|
+
message.tableId = reader.int32();
|
|
656
|
+
break;
|
|
657
|
+
case 3:
|
|
658
|
+
message.columnId = reader.int32();
|
|
659
|
+
break;
|
|
660
|
+
case 4:
|
|
661
|
+
message.dataTypeId = reader.int32();
|
|
662
|
+
break;
|
|
663
|
+
case 5:
|
|
664
|
+
message.dataTypeSize = reader.int32();
|
|
665
|
+
break;
|
|
666
|
+
case 6:
|
|
667
|
+
message.dataTypeModifier = reader.int32();
|
|
668
|
+
break;
|
|
669
|
+
case 7:
|
|
670
|
+
message.format = reader.string();
|
|
671
|
+
break;
|
|
672
|
+
case 8:
|
|
673
|
+
message.dataTypeName = reader.string();
|
|
674
|
+
break;
|
|
675
|
+
case 9:
|
|
676
|
+
message.nullable = reader.bool();
|
|
677
|
+
break;
|
|
678
|
+
case 10:
|
|
679
|
+
message.primaryKey = reader.bool();
|
|
680
|
+
break;
|
|
681
|
+
default:
|
|
682
|
+
let u = options.readUnknownField;
|
|
683
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
684
|
+
let d = reader.skip(wireType);
|
|
685
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return message;
|
|
689
|
+
}
|
|
690
|
+
internalBinaryWrite(message, writer, options) {
|
|
691
|
+
if (message.name !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.name);
|
|
692
|
+
if (message.tableId !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.tableId);
|
|
693
|
+
if (message.columnId !== 0) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).int32(message.columnId);
|
|
694
|
+
if (message.dataTypeId !== 0) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).int32(message.dataTypeId);
|
|
695
|
+
if (message.dataTypeSize !== 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.dataTypeSize);
|
|
696
|
+
if (message.dataTypeModifier !== 0) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).int32(message.dataTypeModifier);
|
|
697
|
+
if (message.format !== "") writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.format);
|
|
698
|
+
if (message.dataTypeName !== "") writer.tag(8, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.dataTypeName);
|
|
699
|
+
if (message.nullable !== false) writer.tag(9, __protobuf_ts_runtime.WireType.Varint).bool(message.nullable);
|
|
700
|
+
if (message.primaryKey !== false) writer.tag(10, __protobuf_ts_runtime.WireType.Varint).bool(message.primaryKey);
|
|
701
|
+
let u = options.writeUnknownFields;
|
|
702
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
703
|
+
return writer;
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLField
|
|
708
|
+
*/
|
|
709
|
+
const PostgreSQLField = new PostgreSQLField$Type();
|
|
710
|
+
var QueryExecutionInfo$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
711
|
+
constructor() {
|
|
712
|
+
super("tusk.drift.instrumentation.postgresql.v1.QueryExecutionInfo", [
|
|
713
|
+
{
|
|
714
|
+
no: 1,
|
|
715
|
+
name: "parse_time_ms",
|
|
716
|
+
kind: "scalar",
|
|
717
|
+
T: 3,
|
|
718
|
+
L: 0
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
no: 2,
|
|
722
|
+
name: "plan_time_ms",
|
|
723
|
+
kind: "scalar",
|
|
724
|
+
T: 3,
|
|
725
|
+
L: 0
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
no: 3,
|
|
729
|
+
name: "execute_time_ms",
|
|
730
|
+
kind: "scalar",
|
|
731
|
+
T: 3,
|
|
732
|
+
L: 0
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
no: 4,
|
|
736
|
+
name: "total_time_ms",
|
|
737
|
+
kind: "scalar",
|
|
738
|
+
T: 3,
|
|
739
|
+
L: 0
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
no: 5,
|
|
743
|
+
name: "rows_examined",
|
|
744
|
+
kind: "scalar",
|
|
745
|
+
T: 3,
|
|
746
|
+
L: 0
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
no: 6,
|
|
750
|
+
name: "rows_returned",
|
|
751
|
+
kind: "scalar",
|
|
752
|
+
T: 3,
|
|
753
|
+
L: 0
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
no: 7,
|
|
757
|
+
name: "bytes_sent",
|
|
758
|
+
kind: "scalar",
|
|
759
|
+
T: 3,
|
|
760
|
+
L: 0
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
no: 8,
|
|
764
|
+
name: "bytes_received",
|
|
765
|
+
kind: "scalar",
|
|
766
|
+
T: 3,
|
|
767
|
+
L: 0
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
no: 9,
|
|
771
|
+
name: "execution_plan",
|
|
772
|
+
kind: "scalar",
|
|
773
|
+
T: 9
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
no: 10,
|
|
777
|
+
name: "notices",
|
|
778
|
+
kind: "scalar",
|
|
779
|
+
repeat: 2,
|
|
780
|
+
T: 9
|
|
781
|
+
}
|
|
782
|
+
]);
|
|
783
|
+
}
|
|
784
|
+
create(value) {
|
|
785
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
786
|
+
message.parseTimeMs = 0n;
|
|
787
|
+
message.planTimeMs = 0n;
|
|
788
|
+
message.executeTimeMs = 0n;
|
|
789
|
+
message.totalTimeMs = 0n;
|
|
790
|
+
message.rowsExamined = 0n;
|
|
791
|
+
message.rowsReturned = 0n;
|
|
792
|
+
message.bytesSent = 0n;
|
|
793
|
+
message.bytesReceived = 0n;
|
|
794
|
+
message.executionPlan = "";
|
|
795
|
+
message.notices = [];
|
|
796
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
797
|
+
return message;
|
|
798
|
+
}
|
|
799
|
+
internalBinaryRead(reader, length, options, target) {
|
|
800
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
801
|
+
while (reader.pos < end) {
|
|
802
|
+
let [fieldNo, wireType] = reader.tag();
|
|
803
|
+
switch (fieldNo) {
|
|
804
|
+
case 1:
|
|
805
|
+
message.parseTimeMs = reader.int64().toBigInt();
|
|
806
|
+
break;
|
|
807
|
+
case 2:
|
|
808
|
+
message.planTimeMs = reader.int64().toBigInt();
|
|
809
|
+
break;
|
|
810
|
+
case 3:
|
|
811
|
+
message.executeTimeMs = reader.int64().toBigInt();
|
|
812
|
+
break;
|
|
813
|
+
case 4:
|
|
814
|
+
message.totalTimeMs = reader.int64().toBigInt();
|
|
815
|
+
break;
|
|
816
|
+
case 5:
|
|
817
|
+
message.rowsExamined = reader.int64().toBigInt();
|
|
818
|
+
break;
|
|
819
|
+
case 6:
|
|
820
|
+
message.rowsReturned = reader.int64().toBigInt();
|
|
821
|
+
break;
|
|
822
|
+
case 7:
|
|
823
|
+
message.bytesSent = reader.int64().toBigInt();
|
|
824
|
+
break;
|
|
825
|
+
case 8:
|
|
826
|
+
message.bytesReceived = reader.int64().toBigInt();
|
|
827
|
+
break;
|
|
828
|
+
case 9:
|
|
829
|
+
message.executionPlan = reader.string();
|
|
830
|
+
break;
|
|
831
|
+
case 10:
|
|
832
|
+
message.notices.push(reader.string());
|
|
833
|
+
break;
|
|
834
|
+
default:
|
|
835
|
+
let u = options.readUnknownField;
|
|
836
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
837
|
+
let d = reader.skip(wireType);
|
|
838
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return message;
|
|
842
|
+
}
|
|
843
|
+
internalBinaryWrite(message, writer, options) {
|
|
844
|
+
if (message.parseTimeMs !== 0n) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int64(message.parseTimeMs);
|
|
845
|
+
if (message.planTimeMs !== 0n) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int64(message.planTimeMs);
|
|
846
|
+
if (message.executeTimeMs !== 0n) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).int64(message.executeTimeMs);
|
|
847
|
+
if (message.totalTimeMs !== 0n) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).int64(message.totalTimeMs);
|
|
848
|
+
if (message.rowsExamined !== 0n) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int64(message.rowsExamined);
|
|
849
|
+
if (message.rowsReturned !== 0n) writer.tag(6, __protobuf_ts_runtime.WireType.Varint).int64(message.rowsReturned);
|
|
850
|
+
if (message.bytesSent !== 0n) writer.tag(7, __protobuf_ts_runtime.WireType.Varint).int64(message.bytesSent);
|
|
851
|
+
if (message.bytesReceived !== 0n) writer.tag(8, __protobuf_ts_runtime.WireType.Varint).int64(message.bytesReceived);
|
|
852
|
+
if (message.executionPlan !== "") writer.tag(9, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.executionPlan);
|
|
853
|
+
for (let i = 0; i < message.notices.length; i++) writer.tag(10, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.notices[i]);
|
|
854
|
+
let u = options.writeUnknownFields;
|
|
855
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
856
|
+
return writer;
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.QueryExecutionInfo
|
|
861
|
+
*/
|
|
862
|
+
const QueryExecutionInfo = new QueryExecutionInfo$Type();
|
|
863
|
+
var PostgreSQLError$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
864
|
+
constructor() {
|
|
865
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLError", [
|
|
866
|
+
{
|
|
867
|
+
no: 1,
|
|
868
|
+
name: "sql_state",
|
|
869
|
+
kind: "scalar",
|
|
870
|
+
T: 9
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
no: 2,
|
|
874
|
+
name: "message",
|
|
875
|
+
kind: "scalar",
|
|
876
|
+
T: 9
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
no: 3,
|
|
880
|
+
name: "detail",
|
|
881
|
+
kind: "scalar",
|
|
882
|
+
T: 9
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
no: 4,
|
|
886
|
+
name: "hint",
|
|
887
|
+
kind: "scalar",
|
|
888
|
+
T: 9
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
no: 5,
|
|
892
|
+
name: "position",
|
|
893
|
+
kind: "scalar",
|
|
894
|
+
T: 9
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
no: 6,
|
|
898
|
+
name: "where",
|
|
899
|
+
kind: "scalar",
|
|
900
|
+
T: 9
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
no: 7,
|
|
904
|
+
name: "schema_name",
|
|
905
|
+
kind: "scalar",
|
|
906
|
+
T: 9
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
no: 8,
|
|
910
|
+
name: "table_name",
|
|
911
|
+
kind: "scalar",
|
|
912
|
+
T: 9
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
no: 9,
|
|
916
|
+
name: "column_name",
|
|
917
|
+
kind: "scalar",
|
|
918
|
+
T: 9
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
no: 10,
|
|
922
|
+
name: "constraint_name",
|
|
923
|
+
kind: "scalar",
|
|
924
|
+
T: 9
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
no: 11,
|
|
928
|
+
name: "data_type_name",
|
|
929
|
+
kind: "scalar",
|
|
930
|
+
T: 9
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
no: 12,
|
|
934
|
+
name: "file",
|
|
935
|
+
kind: "scalar",
|
|
936
|
+
T: 9
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
no: 13,
|
|
940
|
+
name: "line",
|
|
941
|
+
kind: "scalar",
|
|
942
|
+
T: 9
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
no: 14,
|
|
946
|
+
name: "routine",
|
|
947
|
+
kind: "scalar",
|
|
948
|
+
T: 9
|
|
949
|
+
}
|
|
950
|
+
]);
|
|
951
|
+
}
|
|
952
|
+
create(value) {
|
|
953
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
954
|
+
message.sqlState = "";
|
|
955
|
+
message.message = "";
|
|
956
|
+
message.detail = "";
|
|
957
|
+
message.hint = "";
|
|
958
|
+
message.position = "";
|
|
959
|
+
message.where = "";
|
|
960
|
+
message.schemaName = "";
|
|
961
|
+
message.tableName = "";
|
|
962
|
+
message.columnName = "";
|
|
963
|
+
message.constraintName = "";
|
|
964
|
+
message.dataTypeName = "";
|
|
965
|
+
message.file = "";
|
|
966
|
+
message.line = "";
|
|
967
|
+
message.routine = "";
|
|
968
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
969
|
+
return message;
|
|
970
|
+
}
|
|
971
|
+
internalBinaryRead(reader, length, options, target) {
|
|
972
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
973
|
+
while (reader.pos < end) {
|
|
974
|
+
let [fieldNo, wireType] = reader.tag();
|
|
975
|
+
switch (fieldNo) {
|
|
976
|
+
case 1:
|
|
977
|
+
message.sqlState = reader.string();
|
|
978
|
+
break;
|
|
979
|
+
case 2:
|
|
980
|
+
message.message = reader.string();
|
|
981
|
+
break;
|
|
982
|
+
case 3:
|
|
983
|
+
message.detail = reader.string();
|
|
984
|
+
break;
|
|
985
|
+
case 4:
|
|
986
|
+
message.hint = reader.string();
|
|
987
|
+
break;
|
|
988
|
+
case 5:
|
|
989
|
+
message.position = reader.string();
|
|
990
|
+
break;
|
|
991
|
+
case 6:
|
|
992
|
+
message.where = reader.string();
|
|
993
|
+
break;
|
|
994
|
+
case 7:
|
|
995
|
+
message.schemaName = reader.string();
|
|
996
|
+
break;
|
|
997
|
+
case 8:
|
|
998
|
+
message.tableName = reader.string();
|
|
999
|
+
break;
|
|
1000
|
+
case 9:
|
|
1001
|
+
message.columnName = reader.string();
|
|
1002
|
+
break;
|
|
1003
|
+
case 10:
|
|
1004
|
+
message.constraintName = reader.string();
|
|
1005
|
+
break;
|
|
1006
|
+
case 11:
|
|
1007
|
+
message.dataTypeName = reader.string();
|
|
1008
|
+
break;
|
|
1009
|
+
case 12:
|
|
1010
|
+
message.file = reader.string();
|
|
1011
|
+
break;
|
|
1012
|
+
case 13:
|
|
1013
|
+
message.line = reader.string();
|
|
1014
|
+
break;
|
|
1015
|
+
case 14:
|
|
1016
|
+
message.routine = reader.string();
|
|
1017
|
+
break;
|
|
1018
|
+
default:
|
|
1019
|
+
let u = options.readUnknownField;
|
|
1020
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1021
|
+
let d = reader.skip(wireType);
|
|
1022
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
return message;
|
|
1026
|
+
}
|
|
1027
|
+
internalBinaryWrite(message, writer, options) {
|
|
1028
|
+
if (message.sqlState !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.sqlState);
|
|
1029
|
+
if (message.message !== "") writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.message);
|
|
1030
|
+
if (message.detail !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.detail);
|
|
1031
|
+
if (message.hint !== "") writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.hint);
|
|
1032
|
+
if (message.position !== "") writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.position);
|
|
1033
|
+
if (message.where !== "") writer.tag(6, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.where);
|
|
1034
|
+
if (message.schemaName !== "") writer.tag(7, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.schemaName);
|
|
1035
|
+
if (message.tableName !== "") writer.tag(8, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.tableName);
|
|
1036
|
+
if (message.columnName !== "") writer.tag(9, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.columnName);
|
|
1037
|
+
if (message.constraintName !== "") writer.tag(10, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.constraintName);
|
|
1038
|
+
if (message.dataTypeName !== "") writer.tag(11, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.dataTypeName);
|
|
1039
|
+
if (message.file !== "") writer.tag(12, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.file);
|
|
1040
|
+
if (message.line !== "") writer.tag(13, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.line);
|
|
1041
|
+
if (message.routine !== "") writer.tag(14, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.routine);
|
|
1042
|
+
let u = options.writeUnknownFields;
|
|
1043
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1044
|
+
return writer;
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
/**
|
|
1048
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLError
|
|
1049
|
+
*/
|
|
1050
|
+
const PostgreSQLError = new PostgreSQLError$Type();
|
|
1051
|
+
var PostgreSQLPreparedStatement$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1052
|
+
constructor() {
|
|
1053
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLPreparedStatement", [
|
|
1054
|
+
{
|
|
1055
|
+
no: 1,
|
|
1056
|
+
name: "statement_name",
|
|
1057
|
+
kind: "scalar",
|
|
1058
|
+
T: 9
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
no: 2,
|
|
1062
|
+
name: "query_text",
|
|
1063
|
+
kind: "scalar",
|
|
1064
|
+
T: 9
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
no: 3,
|
|
1068
|
+
name: "parameter_types",
|
|
1069
|
+
kind: "message",
|
|
1070
|
+
repeat: 2,
|
|
1071
|
+
T: () => PostgreSQLParameterType
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
no: 4,
|
|
1075
|
+
name: "prepared_at",
|
|
1076
|
+
kind: "message",
|
|
1077
|
+
T: () => require_timestamp.Timestamp
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
no: 5,
|
|
1081
|
+
name: "execution_count",
|
|
1082
|
+
kind: "scalar",
|
|
1083
|
+
T: 5
|
|
1084
|
+
}
|
|
1085
|
+
]);
|
|
1086
|
+
}
|
|
1087
|
+
create(value) {
|
|
1088
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1089
|
+
message.statementName = "";
|
|
1090
|
+
message.queryText = "";
|
|
1091
|
+
message.parameterTypes = [];
|
|
1092
|
+
message.executionCount = 0;
|
|
1093
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1094
|
+
return message;
|
|
1095
|
+
}
|
|
1096
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1097
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1098
|
+
while (reader.pos < end) {
|
|
1099
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1100
|
+
switch (fieldNo) {
|
|
1101
|
+
case 1:
|
|
1102
|
+
message.statementName = reader.string();
|
|
1103
|
+
break;
|
|
1104
|
+
case 2:
|
|
1105
|
+
message.queryText = reader.string();
|
|
1106
|
+
break;
|
|
1107
|
+
case 3:
|
|
1108
|
+
message.parameterTypes.push(PostgreSQLParameterType.internalBinaryRead(reader, reader.uint32(), options));
|
|
1109
|
+
break;
|
|
1110
|
+
case 4:
|
|
1111
|
+
message.preparedAt = require_timestamp.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.preparedAt);
|
|
1112
|
+
break;
|
|
1113
|
+
case 5:
|
|
1114
|
+
message.executionCount = reader.int32();
|
|
1115
|
+
break;
|
|
1116
|
+
default:
|
|
1117
|
+
let u = options.readUnknownField;
|
|
1118
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1119
|
+
let d = reader.skip(wireType);
|
|
1120
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
return message;
|
|
1124
|
+
}
|
|
1125
|
+
internalBinaryWrite(message, writer, options) {
|
|
1126
|
+
if (message.statementName !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.statementName);
|
|
1127
|
+
if (message.queryText !== "") writer.tag(2, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.queryText);
|
|
1128
|
+
for (let i = 0; i < message.parameterTypes.length; i++) PostgreSQLParameterType.internalBinaryWrite(message.parameterTypes[i], writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1129
|
+
if (message.preparedAt) require_timestamp.Timestamp.internalBinaryWrite(message.preparedAt, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1130
|
+
if (message.executionCount !== 0) writer.tag(5, __protobuf_ts_runtime.WireType.Varint).int32(message.executionCount);
|
|
1131
|
+
let u = options.writeUnknownFields;
|
|
1132
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1133
|
+
return writer;
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLPreparedStatement
|
|
1138
|
+
*/
|
|
1139
|
+
const PostgreSQLPreparedStatement = new PostgreSQLPreparedStatement$Type();
|
|
1140
|
+
var PostgreSQLParameterType$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1141
|
+
constructor() {
|
|
1142
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLParameterType", [
|
|
1143
|
+
{
|
|
1144
|
+
no: 1,
|
|
1145
|
+
name: "position",
|
|
1146
|
+
kind: "scalar",
|
|
1147
|
+
T: 5
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
no: 2,
|
|
1151
|
+
name: "data_type_id",
|
|
1152
|
+
kind: "scalar",
|
|
1153
|
+
T: 5
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
no: 3,
|
|
1157
|
+
name: "data_type_name",
|
|
1158
|
+
kind: "scalar",
|
|
1159
|
+
T: 9
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
no: 4,
|
|
1163
|
+
name: "nullable",
|
|
1164
|
+
kind: "scalar",
|
|
1165
|
+
T: 8
|
|
1166
|
+
}
|
|
1167
|
+
]);
|
|
1168
|
+
}
|
|
1169
|
+
create(value) {
|
|
1170
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1171
|
+
message.position = 0;
|
|
1172
|
+
message.dataTypeId = 0;
|
|
1173
|
+
message.dataTypeName = "";
|
|
1174
|
+
message.nullable = false;
|
|
1175
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1176
|
+
return message;
|
|
1177
|
+
}
|
|
1178
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1179
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1180
|
+
while (reader.pos < end) {
|
|
1181
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1182
|
+
switch (fieldNo) {
|
|
1183
|
+
case 1:
|
|
1184
|
+
message.position = reader.int32();
|
|
1185
|
+
break;
|
|
1186
|
+
case 2:
|
|
1187
|
+
message.dataTypeId = reader.int32();
|
|
1188
|
+
break;
|
|
1189
|
+
case 3:
|
|
1190
|
+
message.dataTypeName = reader.string();
|
|
1191
|
+
break;
|
|
1192
|
+
case 4:
|
|
1193
|
+
message.nullable = reader.bool();
|
|
1194
|
+
break;
|
|
1195
|
+
default:
|
|
1196
|
+
let u = options.readUnknownField;
|
|
1197
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1198
|
+
let d = reader.skip(wireType);
|
|
1199
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
return message;
|
|
1203
|
+
}
|
|
1204
|
+
internalBinaryWrite(message, writer, options) {
|
|
1205
|
+
if (message.position !== 0) writer.tag(1, __protobuf_ts_runtime.WireType.Varint).int32(message.position);
|
|
1206
|
+
if (message.dataTypeId !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.dataTypeId);
|
|
1207
|
+
if (message.dataTypeName !== "") writer.tag(3, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.dataTypeName);
|
|
1208
|
+
if (message.nullable !== false) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).bool(message.nullable);
|
|
1209
|
+
let u = options.writeUnknownFields;
|
|
1210
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1211
|
+
return writer;
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
/**
|
|
1215
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLParameterType
|
|
1216
|
+
*/
|
|
1217
|
+
const PostgreSQLParameterType = new PostgreSQLParameterType$Type();
|
|
1218
|
+
var PostgreSQLTransaction$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1219
|
+
constructor() {
|
|
1220
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLTransaction", [
|
|
1221
|
+
{
|
|
1222
|
+
no: 1,
|
|
1223
|
+
name: "transaction_id",
|
|
1224
|
+
kind: "scalar",
|
|
1225
|
+
T: 9
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
no: 2,
|
|
1229
|
+
name: "state",
|
|
1230
|
+
kind: "enum",
|
|
1231
|
+
T: () => [
|
|
1232
|
+
"tusk.drift.instrumentation.postgresql.v1.TransactionState",
|
|
1233
|
+
TransactionState,
|
|
1234
|
+
"TRANSACTION_STATE_"
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
no: 3,
|
|
1239
|
+
name: "isolation_level",
|
|
1240
|
+
kind: "enum",
|
|
1241
|
+
T: () => [
|
|
1242
|
+
"tusk.drift.instrumentation.postgresql.v1.IsolationLevel",
|
|
1243
|
+
IsolationLevel,
|
|
1244
|
+
"ISOLATION_LEVEL_"
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
no: 4,
|
|
1249
|
+
name: "read_only",
|
|
1250
|
+
kind: "scalar",
|
|
1251
|
+
T: 8
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
no: 5,
|
|
1255
|
+
name: "started_at",
|
|
1256
|
+
kind: "message",
|
|
1257
|
+
T: () => require_timestamp.Timestamp
|
|
1258
|
+
}
|
|
1259
|
+
]);
|
|
1260
|
+
}
|
|
1261
|
+
create(value) {
|
|
1262
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1263
|
+
message.transactionId = "";
|
|
1264
|
+
message.state = 0;
|
|
1265
|
+
message.isolationLevel = 0;
|
|
1266
|
+
message.readOnly = false;
|
|
1267
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1268
|
+
return message;
|
|
1269
|
+
}
|
|
1270
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1271
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1272
|
+
while (reader.pos < end) {
|
|
1273
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1274
|
+
switch (fieldNo) {
|
|
1275
|
+
case 1:
|
|
1276
|
+
message.transactionId = reader.string();
|
|
1277
|
+
break;
|
|
1278
|
+
case 2:
|
|
1279
|
+
message.state = reader.int32();
|
|
1280
|
+
break;
|
|
1281
|
+
case 3:
|
|
1282
|
+
message.isolationLevel = reader.int32();
|
|
1283
|
+
break;
|
|
1284
|
+
case 4:
|
|
1285
|
+
message.readOnly = reader.bool();
|
|
1286
|
+
break;
|
|
1287
|
+
case 5:
|
|
1288
|
+
message.startedAt = require_timestamp.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
1289
|
+
break;
|
|
1290
|
+
default:
|
|
1291
|
+
let u = options.readUnknownField;
|
|
1292
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1293
|
+
let d = reader.skip(wireType);
|
|
1294
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
return message;
|
|
1298
|
+
}
|
|
1299
|
+
internalBinaryWrite(message, writer, options) {
|
|
1300
|
+
if (message.transactionId !== "") writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).string(message.transactionId);
|
|
1301
|
+
if (message.state !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.state);
|
|
1302
|
+
if (message.isolationLevel !== 0) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).int32(message.isolationLevel);
|
|
1303
|
+
if (message.readOnly !== false) writer.tag(4, __protobuf_ts_runtime.WireType.Varint).bool(message.readOnly);
|
|
1304
|
+
if (message.startedAt) require_timestamp.Timestamp.internalBinaryWrite(message.startedAt, writer.tag(5, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1305
|
+
let u = options.writeUnknownFields;
|
|
1306
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1307
|
+
return writer;
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
/**
|
|
1311
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLTransaction
|
|
1312
|
+
*/
|
|
1313
|
+
const PostgreSQLTransaction = new PostgreSQLTransaction$Type();
|
|
1314
|
+
var PostgreSQLBatch$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1315
|
+
constructor() {
|
|
1316
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatch", [
|
|
1317
|
+
{
|
|
1318
|
+
no: 1,
|
|
1319
|
+
name: "queries",
|
|
1320
|
+
kind: "message",
|
|
1321
|
+
repeat: 2,
|
|
1322
|
+
T: () => PostgreSQLQuery
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
no: 2,
|
|
1326
|
+
name: "stop_on_error",
|
|
1327
|
+
kind: "scalar",
|
|
1328
|
+
T: 8
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
no: 3,
|
|
1332
|
+
name: "return_results",
|
|
1333
|
+
kind: "scalar",
|
|
1334
|
+
T: 8
|
|
1335
|
+
}
|
|
1336
|
+
]);
|
|
1337
|
+
}
|
|
1338
|
+
create(value) {
|
|
1339
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1340
|
+
message.queries = [];
|
|
1341
|
+
message.stopOnError = false;
|
|
1342
|
+
message.returnResults = false;
|
|
1343
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1344
|
+
return message;
|
|
1345
|
+
}
|
|
1346
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1347
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1348
|
+
while (reader.pos < end) {
|
|
1349
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1350
|
+
switch (fieldNo) {
|
|
1351
|
+
case 1:
|
|
1352
|
+
message.queries.push(PostgreSQLQuery.internalBinaryRead(reader, reader.uint32(), options));
|
|
1353
|
+
break;
|
|
1354
|
+
case 2:
|
|
1355
|
+
message.stopOnError = reader.bool();
|
|
1356
|
+
break;
|
|
1357
|
+
case 3:
|
|
1358
|
+
message.returnResults = reader.bool();
|
|
1359
|
+
break;
|
|
1360
|
+
default:
|
|
1361
|
+
let u = options.readUnknownField;
|
|
1362
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1363
|
+
let d = reader.skip(wireType);
|
|
1364
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
return message;
|
|
1368
|
+
}
|
|
1369
|
+
internalBinaryWrite(message, writer, options) {
|
|
1370
|
+
for (let i = 0; i < message.queries.length; i++) PostgreSQLQuery.internalBinaryWrite(message.queries[i], writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1371
|
+
if (message.stopOnError !== false) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).bool(message.stopOnError);
|
|
1372
|
+
if (message.returnResults !== false) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).bool(message.returnResults);
|
|
1373
|
+
let u = options.writeUnknownFields;
|
|
1374
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1375
|
+
return writer;
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatch
|
|
1380
|
+
*/
|
|
1381
|
+
const PostgreSQLBatch = new PostgreSQLBatch$Type();
|
|
1382
|
+
var PostgreSQLBatchResult$Type = class extends __protobuf_ts_runtime.MessageType {
|
|
1383
|
+
constructor() {
|
|
1384
|
+
super("tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatchResult", [
|
|
1385
|
+
{
|
|
1386
|
+
no: 1,
|
|
1387
|
+
name: "results",
|
|
1388
|
+
kind: "message",
|
|
1389
|
+
repeat: 2,
|
|
1390
|
+
T: () => PostgreSQLResult
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
no: 2,
|
|
1394
|
+
name: "successful_queries",
|
|
1395
|
+
kind: "scalar",
|
|
1396
|
+
T: 5
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
no: 3,
|
|
1400
|
+
name: "failed_queries",
|
|
1401
|
+
kind: "scalar",
|
|
1402
|
+
T: 5
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
no: 4,
|
|
1406
|
+
name: "first_error",
|
|
1407
|
+
kind: "message",
|
|
1408
|
+
T: () => PostgreSQLError
|
|
1409
|
+
}
|
|
1410
|
+
]);
|
|
1411
|
+
}
|
|
1412
|
+
create(value) {
|
|
1413
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1414
|
+
message.results = [];
|
|
1415
|
+
message.successfulQueries = 0;
|
|
1416
|
+
message.failedQueries = 0;
|
|
1417
|
+
if (value !== void 0) (0, __protobuf_ts_runtime.reflectionMergePartial)(this, message, value);
|
|
1418
|
+
return message;
|
|
1419
|
+
}
|
|
1420
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1421
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1422
|
+
while (reader.pos < end) {
|
|
1423
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1424
|
+
switch (fieldNo) {
|
|
1425
|
+
case 1:
|
|
1426
|
+
message.results.push(PostgreSQLResult.internalBinaryRead(reader, reader.uint32(), options));
|
|
1427
|
+
break;
|
|
1428
|
+
case 2:
|
|
1429
|
+
message.successfulQueries = reader.int32();
|
|
1430
|
+
break;
|
|
1431
|
+
case 3:
|
|
1432
|
+
message.failedQueries = reader.int32();
|
|
1433
|
+
break;
|
|
1434
|
+
case 4:
|
|
1435
|
+
message.firstError = PostgreSQLError.internalBinaryRead(reader, reader.uint32(), options, message.firstError);
|
|
1436
|
+
break;
|
|
1437
|
+
default:
|
|
1438
|
+
let u = options.readUnknownField;
|
|
1439
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1440
|
+
let d = reader.skip(wireType);
|
|
1441
|
+
if (u !== false) (u === true ? __protobuf_ts_runtime.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
return message;
|
|
1445
|
+
}
|
|
1446
|
+
internalBinaryWrite(message, writer, options) {
|
|
1447
|
+
for (let i = 0; i < message.results.length; i++) PostgreSQLResult.internalBinaryWrite(message.results[i], writer.tag(1, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1448
|
+
if (message.successfulQueries !== 0) writer.tag(2, __protobuf_ts_runtime.WireType.Varint).int32(message.successfulQueries);
|
|
1449
|
+
if (message.failedQueries !== 0) writer.tag(3, __protobuf_ts_runtime.WireType.Varint).int32(message.failedQueries);
|
|
1450
|
+
if (message.firstError) PostgreSQLError.internalBinaryWrite(message.firstError, writer.tag(4, __protobuf_ts_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
1451
|
+
let u = options.writeUnknownFields;
|
|
1452
|
+
if (u !== false) (u == true ? __protobuf_ts_runtime.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1453
|
+
return writer;
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
/**
|
|
1457
|
+
* @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatchResult
|
|
1458
|
+
*/
|
|
1459
|
+
const PostgreSQLBatchResult = new PostgreSQLBatchResult$Type();
|
|
1460
|
+
|
|
1461
|
+
//#endregion
|
|
1462
|
+
exports.IsolationLevel = IsolationLevel;
|
|
1463
|
+
exports.PostgreSQLBatch = PostgreSQLBatch;
|
|
1464
|
+
exports.PostgreSQLBatchResult = PostgreSQLBatchResult;
|
|
1465
|
+
exports.PostgreSQLConnection = PostgreSQLConnection;
|
|
1466
|
+
exports.PostgreSQLError = PostgreSQLError;
|
|
1467
|
+
exports.PostgreSQLField = PostgreSQLField;
|
|
1468
|
+
exports.PostgreSQLParameterType = PostgreSQLParameterType;
|
|
1469
|
+
exports.PostgreSQLPreparedStatement = PostgreSQLPreparedStatement;
|
|
1470
|
+
exports.PostgreSQLQuery = PostgreSQLQuery;
|
|
1471
|
+
exports.PostgreSQLResult = PostgreSQLResult;
|
|
1472
|
+
exports.PostgreSQLTransaction = PostgreSQLTransaction;
|
|
1473
|
+
exports.QueryExecutionInfo = QueryExecutionInfo;
|
|
1474
|
+
exports.QueryOptions = QueryOptions;
|
|
1475
|
+
exports.TransactionState = TransactionState;
|
|
1476
|
+
//# sourceMappingURL=postgresql.cjs.map
|