immudb 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0200e6229a8e67d2592feb14e0375910e5c62bf358ee826357fc4b0b03b17751
4
- data.tar.gz: dcb8aab1b18fd45882517b7a4aaa76801ec0fdd8881676084df490e57af354b6
3
+ metadata.gz: 47555fa48c310e9080d31003b9873e0701bb1f65826b2db11337362ec9cc78be
4
+ data.tar.gz: ef93a1e33c0fc6d01d9ccfc0f76f8657fc4106dee6aa34c733d089f1b42e834d
5
5
  SHA512:
6
- metadata.gz: a0b20a298d7deb3783b988486c414d7486e242709cbb7b13fbab8579159cdb757ff68f870233a38da5a0aa0813c6c98415967a07bf4f808fc4a48764bec4204b
7
- data.tar.gz: 5d2f796fea4da4e067f197a47469ae6bb95ccb4a24b4e81982948e113c79c7244827be5e33e8010431268975854f6d5802b6610a1f65ccafe71b4b25a356e87e
6
+ metadata.gz: a418bd6b300cd6adac7284b6b683214493c33c3b89e9bad1fc7ccc4dd308d49057a7c1ef796b8d628db8747875b7009574a42f3bf9fcfe8bbd7ceec4672a5a08
7
+ data.tar.gz: ddb0ab3f42816674bcfc44d3dca9cd83e1dff849e1615906ffd648f018b1cf4b781c7d80ff16ce83bae03a4b1e51c7518f671daf332ef1dc58d67cd9e5e1d6b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.0 (2024-07-28)
2
+
3
+ - Dropped support for Ruby < 3.1
4
+
5
+ ## 0.2.1 (2023-10-26)
6
+
7
+ - Added support for immudb 1.9DOM
8
+
1
9
  ## 0.2.0 (2023-05-11)
2
10
 
3
11
  - Dropped support for Ruby < 3
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Ruby client for [immudb](https://github.com/codenotary/immudb)
4
4
 
5
- [![Build Status](https://github.com/ankane/immudb-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/immudb-ruby/actions)
5
+ [![Build Status](https://github.com/ankane/immudb-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/immudb-ruby/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: schema.proto
3
4
 
@@ -6,593 +7,11 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/empty_pb'
7
8
  require 'google/protobuf/struct_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("schema.proto", :syntax => :proto3) do
11
- add_message "immudb.schema.Key" do
12
- optional :key, :bytes, 1
13
- end
14
- add_message "immudb.schema.Permission" do
15
- optional :database, :string, 1
16
- optional :permission, :uint32, 2
17
- end
18
- add_message "immudb.schema.User" do
19
- optional :user, :bytes, 1
20
- repeated :permissions, :message, 3, "immudb.schema.Permission"
21
- optional :createdby, :string, 4
22
- optional :createdat, :string, 5
23
- optional :active, :bool, 6
24
- end
25
- add_message "immudb.schema.UserList" do
26
- repeated :users, :message, 1, "immudb.schema.User"
27
- end
28
- add_message "immudb.schema.CreateUserRequest" do
29
- optional :user, :bytes, 1
30
- optional :password, :bytes, 2
31
- optional :permission, :uint32, 3
32
- optional :database, :string, 4
33
- end
34
- add_message "immudb.schema.UserRequest" do
35
- optional :user, :bytes, 1
36
- end
37
- add_message "immudb.schema.ChangePasswordRequest" do
38
- optional :user, :bytes, 1
39
- optional :oldPassword, :bytes, 2
40
- optional :newPassword, :bytes, 3
41
- end
42
- add_message "immudb.schema.LoginRequest" do
43
- optional :user, :bytes, 1
44
- optional :password, :bytes, 2
45
- end
46
- add_message "immudb.schema.LoginResponse" do
47
- optional :token, :string, 1
48
- optional :warning, :bytes, 2
49
- end
50
- add_message "immudb.schema.AuthConfig" do
51
- optional :kind, :uint32, 1
52
- end
53
- add_message "immudb.schema.MTLSConfig" do
54
- optional :enabled, :bool, 1
55
- end
56
- add_message "immudb.schema.OpenSessionRequest" do
57
- optional :username, :bytes, 1
58
- optional :password, :bytes, 2
59
- optional :databaseName, :string, 3
60
- end
61
- add_message "immudb.schema.OpenSessionResponse" do
62
- optional :sessionID, :string, 1
63
- optional :serverUUID, :string, 2
64
- end
65
- add_message "immudb.schema.Precondition" do
66
- oneof :precondition do
67
- optional :keyMustExist, :message, 1, "immudb.schema.Precondition.KeyMustExistPrecondition"
68
- optional :keyMustNotExist, :message, 2, "immudb.schema.Precondition.KeyMustNotExistPrecondition"
69
- optional :keyNotModifiedAfterTX, :message, 3, "immudb.schema.Precondition.KeyNotModifiedAfterTXPrecondition"
70
- end
71
- end
72
- add_message "immudb.schema.Precondition.KeyMustExistPrecondition" do
73
- optional :key, :bytes, 1
74
- end
75
- add_message "immudb.schema.Precondition.KeyMustNotExistPrecondition" do
76
- optional :key, :bytes, 1
77
- end
78
- add_message "immudb.schema.Precondition.KeyNotModifiedAfterTXPrecondition" do
79
- optional :key, :bytes, 1
80
- optional :txID, :uint64, 2
81
- end
82
- add_message "immudb.schema.KeyValue" do
83
- optional :key, :bytes, 1
84
- optional :value, :bytes, 2
85
- optional :metadata, :message, 3, "immudb.schema.KVMetadata"
86
- end
87
- add_message "immudb.schema.Entry" do
88
- optional :tx, :uint64, 1
89
- optional :key, :bytes, 2
90
- optional :value, :bytes, 3
91
- optional :referencedBy, :message, 4, "immudb.schema.Reference"
92
- optional :metadata, :message, 5, "immudb.schema.KVMetadata"
93
- optional :expired, :bool, 6
94
- optional :revision, :uint64, 7
95
- end
96
- add_message "immudb.schema.Reference" do
97
- optional :tx, :uint64, 1
98
- optional :key, :bytes, 2
99
- optional :atTx, :uint64, 3
100
- optional :metadata, :message, 4, "immudb.schema.KVMetadata"
101
- optional :revision, :uint64, 5
102
- end
103
- add_message "immudb.schema.Op" do
104
- oneof :operation do
105
- optional :kv, :message, 1, "immudb.schema.KeyValue"
106
- optional :zAdd, :message, 2, "immudb.schema.ZAddRequest"
107
- optional :ref, :message, 3, "immudb.schema.ReferenceRequest"
108
- end
109
- end
110
- add_message "immudb.schema.ExecAllRequest" do
111
- repeated :Operations, :message, 1, "immudb.schema.Op"
112
- optional :noWait, :bool, 2
113
- repeated :preconditions, :message, 3, "immudb.schema.Precondition"
114
- end
115
- add_message "immudb.schema.Entries" do
116
- repeated :entries, :message, 1, "immudb.schema.Entry"
117
- end
118
- add_message "immudb.schema.ZEntry" do
119
- optional :set, :bytes, 1
120
- optional :key, :bytes, 2
121
- optional :entry, :message, 3, "immudb.schema.Entry"
122
- optional :score, :double, 4
123
- optional :atTx, :uint64, 5
124
- end
125
- add_message "immudb.schema.ZEntries" do
126
- repeated :entries, :message, 1, "immudb.schema.ZEntry"
127
- end
128
- add_message "immudb.schema.ScanRequest" do
129
- optional :seekKey, :bytes, 1
130
- optional :prefix, :bytes, 2
131
- optional :desc, :bool, 3
132
- optional :limit, :uint64, 4
133
- optional :sinceTx, :uint64, 5
134
- optional :noWait, :bool, 6
135
- end
136
- add_message "immudb.schema.KeyPrefix" do
137
- optional :prefix, :bytes, 1
138
- end
139
- add_message "immudb.schema.EntryCount" do
140
- optional :count, :uint64, 1
141
- end
142
- add_message "immudb.schema.Signature" do
143
- optional :publicKey, :bytes, 1
144
- optional :signature, :bytes, 2
145
- end
146
- add_message "immudb.schema.TxHeader" do
147
- optional :id, :uint64, 1
148
- optional :prevAlh, :bytes, 2
149
- optional :ts, :int64, 3
150
- optional :nentries, :int32, 4
151
- optional :eH, :bytes, 5
152
- optional :blTxId, :uint64, 6
153
- optional :blRoot, :bytes, 7
154
- optional :version, :int32, 8
155
- optional :metadata, :message, 9, "immudb.schema.TxMetadata"
156
- end
157
- add_message "immudb.schema.TxMetadata" do
158
- end
159
- add_message "immudb.schema.LinearProof" do
160
- optional :sourceTxId, :uint64, 1
161
- optional :TargetTxId, :uint64, 2
162
- repeated :terms, :bytes, 3
163
- end
164
- add_message "immudb.schema.DualProof" do
165
- optional :sourceTxHeader, :message, 1, "immudb.schema.TxHeader"
166
- optional :targetTxHeader, :message, 2, "immudb.schema.TxHeader"
167
- repeated :inclusionProof, :bytes, 3
168
- repeated :consistencyProof, :bytes, 4
169
- optional :targetBlTxAlh, :bytes, 5
170
- repeated :lastInclusionProof, :bytes, 6
171
- optional :linearProof, :message, 7, "immudb.schema.LinearProof"
172
- end
173
- add_message "immudb.schema.Tx" do
174
- optional :header, :message, 1, "immudb.schema.TxHeader"
175
- repeated :entries, :message, 2, "immudb.schema.TxEntry"
176
- repeated :kvEntries, :message, 3, "immudb.schema.Entry"
177
- repeated :zEntries, :message, 4, "immudb.schema.ZEntry"
178
- end
179
- add_message "immudb.schema.TxEntry" do
180
- optional :key, :bytes, 1
181
- optional :hValue, :bytes, 2
182
- optional :vLen, :int32, 3
183
- optional :metadata, :message, 4, "immudb.schema.KVMetadata"
184
- optional :value, :bytes, 5
185
- end
186
- add_message "immudb.schema.KVMetadata" do
187
- optional :deleted, :bool, 1
188
- optional :expiration, :message, 2, "immudb.schema.Expiration"
189
- optional :nonIndexable, :bool, 3
190
- end
191
- add_message "immudb.schema.Expiration" do
192
- optional :expiresAt, :int64, 1
193
- end
194
- add_message "immudb.schema.VerifiableTx" do
195
- optional :tx, :message, 1, "immudb.schema.Tx"
196
- optional :dualProof, :message, 2, "immudb.schema.DualProof"
197
- optional :signature, :message, 3, "immudb.schema.Signature"
198
- end
199
- add_message "immudb.schema.VerifiableEntry" do
200
- optional :entry, :message, 1, "immudb.schema.Entry"
201
- optional :verifiableTx, :message, 2, "immudb.schema.VerifiableTx"
202
- optional :inclusionProof, :message, 3, "immudb.schema.InclusionProof"
203
- end
204
- add_message "immudb.schema.InclusionProof" do
205
- optional :leaf, :int32, 1
206
- optional :width, :int32, 2
207
- repeated :terms, :bytes, 3
208
- end
209
- add_message "immudb.schema.SetRequest" do
210
- repeated :KVs, :message, 1, "immudb.schema.KeyValue"
211
- optional :noWait, :bool, 2
212
- repeated :preconditions, :message, 3, "immudb.schema.Precondition"
213
- end
214
- add_message "immudb.schema.KeyRequest" do
215
- optional :key, :bytes, 1
216
- optional :atTx, :uint64, 2
217
- optional :sinceTx, :uint64, 3
218
- optional :noWait, :bool, 4
219
- optional :atRevision, :int64, 5
220
- end
221
- add_message "immudb.schema.KeyListRequest" do
222
- repeated :keys, :bytes, 1
223
- optional :sinceTx, :uint64, 2
224
- end
225
- add_message "immudb.schema.DeleteKeysRequest" do
226
- repeated :keys, :bytes, 1
227
- optional :sinceTx, :uint64, 2
228
- optional :noWait, :bool, 3
229
- end
230
- add_message "immudb.schema.VerifiableSetRequest" do
231
- optional :setRequest, :message, 1, "immudb.schema.SetRequest"
232
- optional :proveSinceTx, :uint64, 2
233
- end
234
- add_message "immudb.schema.VerifiableGetRequest" do
235
- optional :keyRequest, :message, 1, "immudb.schema.KeyRequest"
236
- optional :proveSinceTx, :uint64, 2
237
- end
238
- add_message "immudb.schema.HealthResponse" do
239
- optional :status, :bool, 1
240
- optional :version, :string, 2
241
- end
242
- add_message "immudb.schema.DatabaseHealthResponse" do
243
- optional :pendingRequests, :uint32, 1
244
- optional :lastRequestCompletedAt, :int64, 2
245
- end
246
- add_message "immudb.schema.ImmutableState" do
247
- optional :db, :string, 1
248
- optional :txId, :uint64, 2
249
- optional :txHash, :bytes, 3
250
- optional :signature, :message, 4, "immudb.schema.Signature"
251
- end
252
- add_message "immudb.schema.ReferenceRequest" do
253
- optional :key, :bytes, 1
254
- optional :referencedKey, :bytes, 2
255
- optional :atTx, :uint64, 3
256
- optional :boundRef, :bool, 4
257
- optional :noWait, :bool, 5
258
- repeated :preconditions, :message, 6, "immudb.schema.Precondition"
259
- end
260
- add_message "immudb.schema.VerifiableReferenceRequest" do
261
- optional :referenceRequest, :message, 1, "immudb.schema.ReferenceRequest"
262
- optional :proveSinceTx, :uint64, 2
263
- end
264
- add_message "immudb.schema.ZAddRequest" do
265
- optional :set, :bytes, 1
266
- optional :score, :double, 2
267
- optional :key, :bytes, 3
268
- optional :atTx, :uint64, 4
269
- optional :boundRef, :bool, 5
270
- optional :noWait, :bool, 6
271
- end
272
- add_message "immudb.schema.Score" do
273
- optional :score, :double, 1
274
- end
275
- add_message "immudb.schema.ZScanRequest" do
276
- optional :set, :bytes, 1
277
- optional :seekKey, :bytes, 2
278
- optional :seekScore, :double, 3
279
- optional :seekAtTx, :uint64, 4
280
- optional :inclusiveSeek, :bool, 5
281
- optional :limit, :uint64, 6
282
- optional :desc, :bool, 7
283
- optional :minScore, :message, 8, "immudb.schema.Score"
284
- optional :maxScore, :message, 9, "immudb.schema.Score"
285
- optional :sinceTx, :uint64, 10
286
- optional :noWait, :bool, 11
287
- end
288
- add_message "immudb.schema.HistoryRequest" do
289
- optional :key, :bytes, 1
290
- optional :offset, :uint64, 2
291
- optional :limit, :int32, 3
292
- optional :desc, :bool, 4
293
- optional :sinceTx, :uint64, 5
294
- end
295
- add_message "immudb.schema.VerifiableZAddRequest" do
296
- optional :zAddRequest, :message, 1, "immudb.schema.ZAddRequest"
297
- optional :proveSinceTx, :uint64, 2
298
- end
299
- add_message "immudb.schema.TxRequest" do
300
- optional :tx, :uint64, 1
301
- optional :entriesSpec, :message, 2, "immudb.schema.EntriesSpec"
302
- optional :sinceTx, :uint64, 3
303
- optional :noWait, :bool, 4
304
- end
305
- add_message "immudb.schema.EntriesSpec" do
306
- optional :kvEntriesSpec, :message, 1, "immudb.schema.EntryTypeSpec"
307
- optional :zEntriesSpec, :message, 2, "immudb.schema.EntryTypeSpec"
308
- optional :sqlEntriesSpec, :message, 3, "immudb.schema.EntryTypeSpec"
309
- end
310
- add_message "immudb.schema.EntryTypeSpec" do
311
- optional :action, :enum, 1, "immudb.schema.EntryTypeAction"
312
- end
313
- add_message "immudb.schema.VerifiableTxRequest" do
314
- optional :tx, :uint64, 1
315
- optional :proveSinceTx, :uint64, 2
316
- optional :entriesSpec, :message, 3, "immudb.schema.EntriesSpec"
317
- optional :sinceTx, :uint64, 4
318
- optional :noWait, :bool, 5
319
- end
320
- add_message "immudb.schema.TxScanRequest" do
321
- optional :initialTx, :uint64, 1
322
- optional :limit, :uint32, 2
323
- optional :desc, :bool, 3
324
- optional :entriesSpec, :message, 4, "immudb.schema.EntriesSpec"
325
- optional :sinceTx, :uint64, 5
326
- optional :noWait, :bool, 6
327
- end
328
- add_message "immudb.schema.TxList" do
329
- repeated :txs, :message, 1, "immudb.schema.Tx"
330
- end
331
- add_message "immudb.schema.ExportTxRequest" do
332
- optional :tx, :uint64, 1
333
- end
334
- add_message "immudb.schema.Database" do
335
- optional :databaseName, :string, 1
336
- end
337
- add_message "immudb.schema.DatabaseSettings" do
338
- optional :databaseName, :string, 1
339
- optional :replica, :bool, 2
340
- optional :masterDatabase, :string, 3
341
- optional :masterAddress, :string, 4
342
- optional :masterPort, :uint32, 5
343
- optional :followerUsername, :string, 6
344
- optional :followerPassword, :string, 7
345
- optional :fileSize, :uint32, 8
346
- optional :maxKeyLen, :uint32, 9
347
- optional :maxValueLen, :uint32, 10
348
- optional :maxTxEntries, :uint32, 11
349
- optional :excludeCommitTime, :bool, 12
350
- end
351
- add_message "immudb.schema.CreateDatabaseRequest" do
352
- optional :name, :string, 1
353
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
354
- end
355
- add_message "immudb.schema.CreateDatabaseResponse" do
356
- optional :name, :string, 1
357
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
358
- end
359
- add_message "immudb.schema.UpdateDatabaseRequest" do
360
- optional :database, :string, 1
361
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
362
- end
363
- add_message "immudb.schema.UpdateDatabaseResponse" do
364
- optional :database, :string, 1
365
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
366
- end
367
- add_message "immudb.schema.DatabaseSettingsRequest" do
368
- end
369
- add_message "immudb.schema.DatabaseSettingsResponse" do
370
- optional :database, :string, 1
371
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
372
- end
373
- add_message "immudb.schema.NullableUint32" do
374
- optional :value, :uint32, 1
375
- end
376
- add_message "immudb.schema.NullableUint64" do
377
- optional :value, :uint64, 1
378
- end
379
- add_message "immudb.schema.NullableFloat" do
380
- optional :value, :float, 1
381
- end
382
- add_message "immudb.schema.NullableBool" do
383
- optional :value, :bool, 1
384
- end
385
- add_message "immudb.schema.NullableString" do
386
- optional :value, :string, 1
387
- end
388
- add_message "immudb.schema.DatabaseNullableSettings" do
389
- optional :replicationSettings, :message, 2, "immudb.schema.ReplicationNullableSettings"
390
- optional :fileSize, :message, 8, "immudb.schema.NullableUint32"
391
- optional :maxKeyLen, :message, 9, "immudb.schema.NullableUint32"
392
- optional :maxValueLen, :message, 10, "immudb.schema.NullableUint32"
393
- optional :maxTxEntries, :message, 11, "immudb.schema.NullableUint32"
394
- optional :excludeCommitTime, :message, 12, "immudb.schema.NullableBool"
395
- optional :maxConcurrency, :message, 13, "immudb.schema.NullableUint32"
396
- optional :maxIOConcurrency, :message, 14, "immudb.schema.NullableUint32"
397
- optional :txLogCacheSize, :message, 15, "immudb.schema.NullableUint32"
398
- optional :vLogMaxOpenedFiles, :message, 16, "immudb.schema.NullableUint32"
399
- optional :txLogMaxOpenedFiles, :message, 17, "immudb.schema.NullableUint32"
400
- optional :commitLogMaxOpenedFiles, :message, 18, "immudb.schema.NullableUint32"
401
- optional :indexSettings, :message, 19, "immudb.schema.IndexNullableSettings"
402
- optional :writeTxHeaderVersion, :message, 20, "immudb.schema.NullableUint32"
403
- optional :autoload, :message, 21, "immudb.schema.NullableBool"
404
- end
405
- add_message "immudb.schema.ReplicationNullableSettings" do
406
- optional :replica, :message, 1, "immudb.schema.NullableBool"
407
- optional :masterDatabase, :message, 2, "immudb.schema.NullableString"
408
- optional :masterAddress, :message, 3, "immudb.schema.NullableString"
409
- optional :masterPort, :message, 4, "immudb.schema.NullableUint32"
410
- optional :followerUsername, :message, 5, "immudb.schema.NullableString"
411
- optional :followerPassword, :message, 6, "immudb.schema.NullableString"
412
- end
413
- add_message "immudb.schema.IndexNullableSettings" do
414
- optional :flushThreshold, :message, 1, "immudb.schema.NullableUint32"
415
- optional :syncThreshold, :message, 2, "immudb.schema.NullableUint32"
416
- optional :cacheSize, :message, 3, "immudb.schema.NullableUint32"
417
- optional :maxNodeSize, :message, 4, "immudb.schema.NullableUint32"
418
- optional :maxActiveSnapshots, :message, 5, "immudb.schema.NullableUint32"
419
- optional :renewSnapRootAfter, :message, 6, "immudb.schema.NullableUint64"
420
- optional :compactionThld, :message, 7, "immudb.schema.NullableUint32"
421
- optional :delayDuringCompaction, :message, 8, "immudb.schema.NullableUint32"
422
- optional :nodesLogMaxOpenedFiles, :message, 9, "immudb.schema.NullableUint32"
423
- optional :historyLogMaxOpenedFiles, :message, 10, "immudb.schema.NullableUint32"
424
- optional :commitLogMaxOpenedFiles, :message, 11, "immudb.schema.NullableUint32"
425
- optional :flushBufferSize, :message, 12, "immudb.schema.NullableUint32"
426
- optional :cleanupPercentage, :message, 13, "immudb.schema.NullableFloat"
427
- end
428
- add_message "immudb.schema.LoadDatabaseRequest" do
429
- optional :database, :string, 1
430
- end
431
- add_message "immudb.schema.LoadDatabaseResponse" do
432
- optional :database, :string, 1
433
- end
434
- add_message "immudb.schema.UnloadDatabaseRequest" do
435
- optional :database, :string, 1
436
- end
437
- add_message "immudb.schema.UnloadDatabaseResponse" do
438
- optional :database, :string, 1
439
- end
440
- add_message "immudb.schema.DeleteDatabaseRequest" do
441
- optional :database, :string, 1
442
- end
443
- add_message "immudb.schema.DeleteDatabaseResponse" do
444
- optional :database, :string, 1
445
- end
446
- add_message "immudb.schema.FlushIndexRequest" do
447
- optional :cleanupPercentage, :float, 1
448
- optional :synced, :bool, 2
449
- end
450
- add_message "immudb.schema.FlushIndexResponse" do
451
- optional :database, :string, 1
452
- end
453
- add_message "immudb.schema.Table" do
454
- optional :tableName, :string, 1
455
- end
456
- add_message "immudb.schema.SQLGetRequest" do
457
- optional :table, :string, 1
458
- repeated :pkValues, :message, 2, "immudb.schema.SQLValue"
459
- optional :atTx, :uint64, 3
460
- optional :sinceTx, :uint64, 4
461
- end
462
- add_message "immudb.schema.VerifiableSQLGetRequest" do
463
- optional :sqlGetRequest, :message, 1, "immudb.schema.SQLGetRequest"
464
- optional :proveSinceTx, :uint64, 2
465
- end
466
- add_message "immudb.schema.SQLEntry" do
467
- optional :tx, :uint64, 1
468
- optional :key, :bytes, 2
469
- optional :value, :bytes, 3
470
- optional :metadata, :message, 4, "immudb.schema.KVMetadata"
471
- end
472
- add_message "immudb.schema.VerifiableSQLEntry" do
473
- optional :sqlEntry, :message, 1, "immudb.schema.SQLEntry"
474
- optional :verifiableTx, :message, 2, "immudb.schema.VerifiableTx"
475
- optional :inclusionProof, :message, 3, "immudb.schema.InclusionProof"
476
- optional :DatabaseId, :uint32, 4
477
- optional :TableId, :uint32, 5
478
- repeated :PKIDs, :uint32, 16
479
- map :ColNamesById, :uint32, :string, 8
480
- map :ColIdsByName, :string, :uint32, 9
481
- map :ColTypesById, :uint32, :string, 10
482
- map :ColLenById, :uint32, :int32, 11
483
- end
484
- add_message "immudb.schema.UseDatabaseReply" do
485
- optional :token, :string, 1
486
- end
487
- add_message "immudb.schema.ChangePermissionRequest" do
488
- optional :action, :enum, 1, "immudb.schema.PermissionAction"
489
- optional :username, :string, 2
490
- optional :database, :string, 3
491
- optional :permission, :uint32, 4
492
- end
493
- add_message "immudb.schema.SetActiveUserRequest" do
494
- optional :active, :bool, 1
495
- optional :username, :string, 2
496
- end
497
- add_message "immudb.schema.DatabaseListResponse" do
498
- repeated :databases, :message, 1, "immudb.schema.Database"
499
- end
500
- add_message "immudb.schema.DatabaseListRequestV2" do
501
- end
502
- add_message "immudb.schema.DatabaseListResponseV2" do
503
- repeated :databases, :message, 1, "immudb.schema.DatabaseWithSettings"
504
- end
505
- add_message "immudb.schema.DatabaseWithSettings" do
506
- optional :name, :string, 1
507
- optional :settings, :message, 2, "immudb.schema.DatabaseNullableSettings"
508
- optional :loaded, :bool, 3
509
- end
510
- add_message "immudb.schema.Chunk" do
511
- optional :content, :bytes, 1
512
- end
513
- add_message "immudb.schema.UseSnapshotRequest" do
514
- optional :sinceTx, :uint64, 1
515
- optional :asBeforeTx, :uint64, 2
516
- end
517
- add_message "immudb.schema.SQLExecRequest" do
518
- optional :sql, :string, 1
519
- repeated :params, :message, 2, "immudb.schema.NamedParam"
520
- optional :noWait, :bool, 3
521
- end
522
- add_message "immudb.schema.SQLQueryRequest" do
523
- optional :sql, :string, 1
524
- repeated :params, :message, 2, "immudb.schema.NamedParam"
525
- optional :reuseSnapshot, :bool, 3
526
- end
527
- add_message "immudb.schema.NamedParam" do
528
- optional :name, :string, 1
529
- optional :value, :message, 2, "immudb.schema.SQLValue"
530
- end
531
- add_message "immudb.schema.SQLExecResult" do
532
- repeated :txs, :message, 5, "immudb.schema.CommittedSQLTx"
533
- optional :ongoingTx, :bool, 6
534
- end
535
- add_message "immudb.schema.CommittedSQLTx" do
536
- optional :header, :message, 1, "immudb.schema.TxHeader"
537
- optional :updatedRows, :uint32, 2
538
- map :lastInsertedPKs, :string, :message, 3, "immudb.schema.SQLValue"
539
- map :firstInsertedPKs, :string, :message, 4, "immudb.schema.SQLValue"
540
- end
541
- add_message "immudb.schema.SQLQueryResult" do
542
- repeated :columns, :message, 2, "immudb.schema.Column"
543
- repeated :rows, :message, 1, "immudb.schema.Row"
544
- end
545
- add_message "immudb.schema.Column" do
546
- optional :name, :string, 1
547
- optional :type, :string, 2
548
- end
549
- add_message "immudb.schema.Row" do
550
- repeated :columns, :string, 1
551
- repeated :values, :message, 2, "immudb.schema.SQLValue"
552
- end
553
- add_message "immudb.schema.SQLValue" do
554
- oneof :value do
555
- optional :null, :enum, 1, "google.protobuf.NullValue"
556
- optional :n, :int64, 2
557
- optional :s, :string, 3
558
- optional :b, :bool, 4
559
- optional :bs, :bytes, 5
560
- optional :ts, :int64, 6
561
- end
562
- end
563
- add_message "immudb.schema.NewTxRequest" do
564
- optional :mode, :enum, 1, "immudb.schema.TxMode"
565
- end
566
- add_message "immudb.schema.NewTxResponse" do
567
- optional :transactionID, :string, 1
568
- end
569
- add_message "immudb.schema.ErrorInfo" do
570
- optional :code, :string, 1
571
- optional :cause, :string, 2
572
- end
573
- add_message "immudb.schema.DebugInfo" do
574
- optional :stack, :string, 1
575
- end
576
- add_message "immudb.schema.RetryInfo" do
577
- optional :retry_delay, :int32, 1
578
- end
579
- add_enum "immudb.schema.EntryTypeAction" do
580
- value :EXCLUDE, 0
581
- value :ONLY_DIGEST, 1
582
- value :RAW_VALUE, 2
583
- value :RESOLVE, 3
584
- end
585
- add_enum "immudb.schema.PermissionAction" do
586
- value :GRANT, 0
587
- value :REVOKE, 1
588
- end
589
- add_enum "immudb.schema.TxMode" do
590
- value :ReadOnly, 0
591
- value :WriteOnly, 1
592
- value :ReadWrite, 2
593
- end
594
- end
595
- end
10
+
11
+ descriptor_data = "\n\x0cschema.proto\x12\rimmudb.schema\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x12\n\x03Key\x12\x0b\n\x03key\x18\x01 \x01(\x0c\"2\n\nPermission\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\npermission\x18\x02 \x01(\r\"z\n\x04User\x12\x0c\n\x04user\x18\x01 \x01(\x0c\x12.\n\x0bpermissions\x18\x03 \x03(\x0b\x32\x19.immudb.schema.Permission\x12\x11\n\tcreatedby\x18\x04 \x01(\t\x12\x11\n\tcreatedat\x18\x05 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x06 \x01(\x08\".\n\x08UserList\x12\"\n\x05users\x18\x01 \x03(\x0b\x32\x13.immudb.schema.User\"Y\n\x11\x43reateUserRequest\x12\x0c\n\x04user\x18\x01 \x01(\x0c\x12\x10\n\x08password\x18\x02 \x01(\x0c\x12\x12\n\npermission\x18\x03 \x01(\r\x12\x10\n\x08\x64\x61tabase\x18\x04 \x01(\t\"\x1b\n\x0bUserRequest\x12\x0c\n\x04user\x18\x01 \x01(\x0c\"O\n\x15\x43hangePasswordRequest\x12\x0c\n\x04user\x18\x01 \x01(\x0c\x12\x13\n\x0boldPassword\x18\x02 \x01(\x0c\x12\x13\n\x0bnewPassword\x18\x03 \x01(\x0c\".\n\x0cLoginRequest\x12\x0c\n\x04user\x18\x01 \x01(\x0c\x12\x10\n\x08password\x18\x02 \x01(\x0c\"/\n\rLoginResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x0f\n\x07warning\x18\x02 \x01(\x0c\"\x1a\n\nAuthConfig\x12\x0c\n\x04kind\x18\x01 \x01(\r\"\x1d\n\nMTLSConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"N\n\x12OpenSessionRequest\x12\x10\n\x08username\x18\x01 \x01(\x0c\x12\x10\n\x08password\x18\x02 \x01(\x0c\x12\x14\n\x0c\x64\x61tabaseName\x18\x03 \x01(\t\"<\n\x13OpenSessionResponse\x12\x11\n\tsessionID\x18\x01 \x01(\t\x12\x12\n\nserverUUID\x18\x02 \x01(\t\"\xb5\x03\n\x0cPrecondition\x12L\n\x0ckeyMustExist\x18\x01 \x01(\x0b\x32\x34.immudb.schema.Precondition.KeyMustExistPreconditionH\x00\x12R\n\x0fkeyMustNotExist\x18\x02 \x01(\x0b\x32\x37.immudb.schema.Precondition.KeyMustNotExistPreconditionH\x00\x12^\n\x15keyNotModifiedAfterTX\x18\x03 \x01(\x0b\x32=.immudb.schema.Precondition.KeyNotModifiedAfterTXPreconditionH\x00\x1a\'\n\x18KeyMustExistPrecondition\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x1a*\n\x1bKeyMustNotExistPrecondition\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x1a>\n!KeyNotModifiedAfterTXPrecondition\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0c\n\x04txID\x18\x02 \x01(\x04\x42\x0e\n\x0cprecondition\"S\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12+\n\x08metadata\x18\x03 \x01(\x0b\x32\x19.immudb.schema.KVMetadata\"\xaf\x01\n\x05\x45ntry\x12\n\n\x02tx\x18\x01 \x01(\x04\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12.\n\x0creferencedBy\x18\x04 \x01(\x0b\x32\x18.immudb.schema.Reference\x12+\n\x08metadata\x18\x05 \x01(\x0b\x32\x19.immudb.schema.KVMetadata\x12\x0f\n\x07\x65xpired\x18\x06 \x01(\x08\x12\x10\n\x08revision\x18\x07 \x01(\x04\"q\n\tReference\x12\n\n\x02tx\x18\x01 \x01(\x04\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x0c\n\x04\x61tTx\x18\x03 \x01(\x04\x12+\n\x08metadata\x18\x04 \x01(\x0b\x32\x19.immudb.schema.KVMetadata\x12\x10\n\x08revision\x18\x05 \x01(\x04\"\x94\x01\n\x02Op\x12%\n\x02kv\x18\x01 \x01(\x0b\x32\x17.immudb.schema.KeyValueH\x00\x12*\n\x04zAdd\x18\x02 \x01(\x0b\x32\x1a.immudb.schema.ZAddRequestH\x00\x12.\n\x03ref\x18\x03 \x01(\x0b\x32\x1f.immudb.schema.ReferenceRequestH\x00\x42\x0b\n\toperation\"{\n\x0e\x45xecAllRequest\x12%\n\nOperations\x18\x01 \x03(\x0b\x32\x11.immudb.schema.Op\x12\x0e\n\x06noWait\x18\x02 \x01(\x08\x12\x32\n\rpreconditions\x18\x03 \x03(\x0b\x32\x1b.immudb.schema.Precondition\"0\n\x07\x45ntries\x12%\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x14.immudb.schema.Entry\"d\n\x06ZEntry\x12\x0b\n\x03set\x18\x01 \x01(\x0c\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12#\n\x05\x65ntry\x18\x03 \x01(\x0b\x32\x14.immudb.schema.Entry\x12\r\n\x05score\x18\x04 \x01(\x01\x12\x0c\n\x04\x61tTx\x18\x05 \x01(\x04\"2\n\x08ZEntries\x12&\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.immudb.schema.ZEntry\"l\n\x0bScanRequest\x12\x0f\n\x07seekKey\x18\x01 \x01(\x0c\x12\x0e\n\x06prefix\x18\x02 \x01(\x0c\x12\x0c\n\x04\x64\x65sc\x18\x03 \x01(\x08\x12\r\n\x05limit\x18\x04 \x01(\x04\x12\x0f\n\x07sinceTx\x18\x05 \x01(\x04\x12\x0e\n\x06noWait\x18\x06 \x01(\x08\"\x1b\n\tKeyPrefix\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\"\x1b\n\nEntryCount\x12\r\n\x05\x63ount\x18\x01 \x01(\x04\"1\n\tSignature\x12\x11\n\tpublicKey\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\"\xaf\x01\n\x08TxHeader\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0f\n\x07prevAlh\x18\x02 \x01(\x0c\x12\n\n\x02ts\x18\x03 \x01(\x03\x12\x10\n\x08nentries\x18\x04 \x01(\x05\x12\n\n\x02\x65H\x18\x05 \x01(\x0c\x12\x0e\n\x06\x62lTxId\x18\x06 \x01(\x04\x12\x0e\n\x06\x62lRoot\x18\x07 \x01(\x0c\x12\x0f\n\x07version\x18\x08 \x01(\x05\x12+\n\x08metadata\x18\t \x01(\x0b\x32\x19.immudb.schema.TxMetadata\"\x0c\n\nTxMetadata\"D\n\x0bLinearProof\x12\x12\n\nsourceTxId\x18\x01 \x01(\x04\x12\x12\n\nTargetTxId\x18\x02 \x01(\x04\x12\r\n\x05terms\x18\x03 \x03(\x0c\"\x83\x02\n\tDualProof\x12/\n\x0esourceTxHeader\x18\x01 \x01(\x0b\x32\x17.immudb.schema.TxHeader\x12/\n\x0etargetTxHeader\x18\x02 \x01(\x0b\x32\x17.immudb.schema.TxHeader\x12\x16\n\x0einclusionProof\x18\x03 \x03(\x0c\x12\x18\n\x10\x63onsistencyProof\x18\x04 \x03(\x0c\x12\x15\n\rtargetBlTxAlh\x18\x05 \x01(\x0c\x12\x1a\n\x12lastInclusionProof\x18\x06 \x03(\x0c\x12/\n\x0blinearProof\x18\x07 \x01(\x0b\x32\x1a.immudb.schema.LinearProof\"\xa8\x01\n\x02Tx\x12\'\n\x06header\x18\x01 \x01(\x0b\x32\x17.immudb.schema.TxHeader\x12\'\n\x07\x65ntries\x18\x02 \x03(\x0b\x32\x16.immudb.schema.TxEntry\x12\'\n\tkvEntries\x18\x03 \x03(\x0b\x32\x14.immudb.schema.Entry\x12\'\n\x08zEntries\x18\x04 \x03(\x0b\x32\x15.immudb.schema.ZEntry\"p\n\x07TxEntry\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0e\n\x06hValue\x18\x02 \x01(\x0c\x12\x0c\n\x04vLen\x18\x03 \x01(\x05\x12+\n\x08metadata\x18\x04 \x01(\x0b\x32\x19.immudb.schema.KVMetadata\x12\r\n\x05value\x18\x05 \x01(\x0c\"b\n\nKVMetadata\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\x12-\n\nexpiration\x18\x02 \x01(\x0b\x32\x19.immudb.schema.Expiration\x12\x14\n\x0cnonIndexable\x18\x03 \x01(\x08\"\x1f\n\nExpiration\x12\x11\n\texpiresAt\x18\x01 \x01(\x03\"\x87\x01\n\x0cVerifiableTx\x12\x1d\n\x02tx\x18\x01 \x01(\x0b\x32\x11.immudb.schema.Tx\x12+\n\tdualProof\x18\x02 \x01(\x0b\x32\x18.immudb.schema.DualProof\x12+\n\tsignature\x18\x03 \x01(\x0b\x32\x18.immudb.schema.Signature\"\xa0\x01\n\x0fVerifiableEntry\x12#\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x14.immudb.schema.Entry\x12\x31\n\x0cverifiableTx\x18\x02 \x01(\x0b\x32\x1b.immudb.schema.VerifiableTx\x12\x35\n\x0einclusionProof\x18\x03 \x01(\x0b\x32\x1d.immudb.schema.InclusionProof\"<\n\x0eInclusionProof\x12\x0c\n\x04leaf\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x05\x12\r\n\x05terms\x18\x03 \x03(\x0c\"v\n\nSetRequest\x12$\n\x03KVs\x18\x01 \x03(\x0b\x32\x17.immudb.schema.KeyValue\x12\x0e\n\x06noWait\x18\x02 \x01(\x08\x12\x32\n\rpreconditions\x18\x03 \x03(\x0b\x32\x1b.immudb.schema.Precondition\"\\\n\nKeyRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0c\n\x04\x61tTx\x18\x02 \x01(\x04\x12\x0f\n\x07sinceTx\x18\x03 \x01(\x04\x12\x0e\n\x06noWait\x18\x04 \x01(\x08\x12\x12\n\natRevision\x18\x05 \x01(\x03\"/\n\x0eKeyListRequest\x12\x0c\n\x04keys\x18\x01 \x03(\x0c\x12\x0f\n\x07sinceTx\x18\x02 \x01(\x04\"B\n\x11\x44\x65leteKeysRequest\x12\x0c\n\x04keys\x18\x01 \x03(\x0c\x12\x0f\n\x07sinceTx\x18\x02 \x01(\x04\x12\x0e\n\x06noWait\x18\x03 \x01(\x08\"[\n\x14VerifiableSetRequest\x12-\n\nsetRequest\x18\x01 \x01(\x0b\x32\x19.immudb.schema.SetRequest\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\"[\n\x14VerifiableGetRequest\x12-\n\nkeyRequest\x18\x01 \x01(\x0b\x32\x19.immudb.schema.KeyRequest\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\"1\n\x0eHealthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x08\x12\x0f\n\x07version\x18\x02 \x01(\t\"Q\n\x16\x44\x61tabaseHealthResponse\x12\x17\n\x0fpendingRequests\x18\x01 \x01(\r\x12\x1e\n\x16lastRequestCompletedAt\x18\x02 \x01(\x03\"g\n\x0eImmutableState\x12\n\n\x02\x64\x62\x18\x01 \x01(\t\x12\x0c\n\x04txId\x18\x02 \x01(\x04\x12\x0e\n\x06txHash\x18\x03 \x01(\x0c\x12+\n\tsignature\x18\x04 \x01(\x0b\x32\x18.immudb.schema.Signature\"\x9a\x01\n\x10ReferenceRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x15\n\rreferencedKey\x18\x02 \x01(\x0c\x12\x0c\n\x04\x61tTx\x18\x03 \x01(\x04\x12\x10\n\x08\x62oundRef\x18\x04 \x01(\x08\x12\x0e\n\x06noWait\x18\x05 \x01(\x08\x12\x32\n\rpreconditions\x18\x06 \x03(\x0b\x32\x1b.immudb.schema.Precondition\"m\n\x1aVerifiableReferenceRequest\x12\x39\n\x10referenceRequest\x18\x01 \x01(\x0b\x32\x1f.immudb.schema.ReferenceRequest\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\"f\n\x0bZAddRequest\x12\x0b\n\x03set\x18\x01 \x01(\x0c\x12\r\n\x05score\x18\x02 \x01(\x01\x12\x0b\n\x03key\x18\x03 \x01(\x0c\x12\x0c\n\x04\x61tTx\x18\x04 \x01(\x04\x12\x10\n\x08\x62oundRef\x18\x05 \x01(\x08\x12\x0e\n\x06noWait\x18\x06 \x01(\x08\"\x16\n\x05Score\x12\r\n\x05score\x18\x01 \x01(\x01\"\xf6\x01\n\x0cZScanRequest\x12\x0b\n\x03set\x18\x01 \x01(\x0c\x12\x0f\n\x07seekKey\x18\x02 \x01(\x0c\x12\x11\n\tseekScore\x18\x03 \x01(\x01\x12\x10\n\x08seekAtTx\x18\x04 \x01(\x04\x12\x15\n\rinclusiveSeek\x18\x05 \x01(\x08\x12\r\n\x05limit\x18\x06 \x01(\x04\x12\x0c\n\x04\x64\x65sc\x18\x07 \x01(\x08\x12&\n\x08minScore\x18\x08 \x01(\x0b\x32\x14.immudb.schema.Score\x12&\n\x08maxScore\x18\t \x01(\x0b\x32\x14.immudb.schema.Score\x12\x0f\n\x07sinceTx\x18\n \x01(\x04\x12\x0e\n\x06noWait\x18\x0b \x01(\x08\"[\n\x0eHistoryRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x05\x12\x0c\n\x04\x64\x65sc\x18\x04 \x01(\x08\x12\x0f\n\x07sinceTx\x18\x05 \x01(\x04\"^\n\x15VerifiableZAddRequest\x12/\n\x0bzAddRequest\x18\x01 \x01(\x0b\x32\x1a.immudb.schema.ZAddRequest\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\"i\n\tTxRequest\x12\n\n\x02tx\x18\x01 \x01(\x04\x12/\n\x0b\x65ntriesSpec\x18\x02 \x01(\x0b\x32\x1a.immudb.schema.EntriesSpec\x12\x0f\n\x07sinceTx\x18\x03 \x01(\x04\x12\x0e\n\x06noWait\x18\x04 \x01(\x08\"\xac\x01\n\x0b\x45ntriesSpec\x12\x33\n\rkvEntriesSpec\x18\x01 \x01(\x0b\x32\x1c.immudb.schema.EntryTypeSpec\x12\x32\n\x0czEntriesSpec\x18\x02 \x01(\x0b\x32\x1c.immudb.schema.EntryTypeSpec\x12\x34\n\x0esqlEntriesSpec\x18\x03 \x01(\x0b\x32\x1c.immudb.schema.EntryTypeSpec\"?\n\rEntryTypeSpec\x12.\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x1e.immudb.schema.EntryTypeAction\"\x89\x01\n\x13VerifiableTxRequest\x12\n\n\x02tx\x18\x01 \x01(\x04\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\x12/\n\x0b\x65ntriesSpec\x18\x03 \x01(\x0b\x32\x1a.immudb.schema.EntriesSpec\x12\x0f\n\x07sinceTx\x18\x04 \x01(\x04\x12\x0e\n\x06noWait\x18\x05 \x01(\x08\"\x91\x01\n\rTxScanRequest\x12\x11\n\tinitialTx\x18\x01 \x01(\x04\x12\r\n\x05limit\x18\x02 \x01(\r\x12\x0c\n\x04\x64\x65sc\x18\x03 \x01(\x08\x12/\n\x0b\x65ntriesSpec\x18\x04 \x01(\x0b\x32\x1a.immudb.schema.EntriesSpec\x12\x0f\n\x07sinceTx\x18\x05 \x01(\x04\x12\x0e\n\x06noWait\x18\x06 \x01(\x08\"(\n\x06TxList\x12\x1e\n\x03txs\x18\x01 \x03(\x0b\x32\x11.immudb.schema.Tx\"\x1d\n\x0f\x45xportTxRequest\x12\n\n\x02tx\x18\x01 \x01(\x04\" \n\x08\x44\x61tabase\x12\x14\n\x0c\x64\x61tabaseName\x18\x01 \x01(\t\"\x9b\x02\n\x10\x44\x61tabaseSettings\x12\x14\n\x0c\x64\x61tabaseName\x18\x01 \x01(\t\x12\x0f\n\x07replica\x18\x02 \x01(\x08\x12\x16\n\x0emasterDatabase\x18\x03 \x01(\t\x12\x15\n\rmasterAddress\x18\x04 \x01(\t\x12\x12\n\nmasterPort\x18\x05 \x01(\r\x12\x18\n\x10\x66ollowerUsername\x18\x06 \x01(\t\x12\x18\n\x10\x66ollowerPassword\x18\x07 \x01(\t\x12\x10\n\x08\x66ileSize\x18\x08 \x01(\r\x12\x11\n\tmaxKeyLen\x18\t \x01(\r\x12\x13\n\x0bmaxValueLen\x18\n \x01(\r\x12\x14\n\x0cmaxTxEntries\x18\x0b \x01(\r\x12\x19\n\x11\x65xcludeCommitTime\x18\x0c \x01(\x08\"`\n\x15\x43reateDatabaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\"a\n\x16\x43reateDatabaseResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\"d\n\x15UpdateDatabaseRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\"e\n\x16UpdateDatabaseResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\"\x19\n\x17\x44\x61tabaseSettingsRequest\"g\n\x18\x44\x61tabaseSettingsResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\"\x1f\n\x0eNullableUint32\x12\r\n\x05value\x18\x01 \x01(\r\"\x1f\n\x0eNullableUint64\x12\r\n\x05value\x18\x01 \x01(\x04\"\x1e\n\rNullableFloat\x12\r\n\x05value\x18\x01 \x01(\x02\"\x1d\n\x0cNullableBool\x12\r\n\x05value\x18\x01 \x01(\x08\"\x1f\n\x0eNullableString\x12\r\n\x05value\x18\x01 \x01(\t\"\xee\x06\n\x18\x44\x61tabaseNullableSettings\x12G\n\x13replicationSettings\x18\x02 \x01(\x0b\x32*.immudb.schema.ReplicationNullableSettings\x12/\n\x08\x66ileSize\x18\x08 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x30\n\tmaxKeyLen\x18\t \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x32\n\x0bmaxValueLen\x18\n \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x33\n\x0cmaxTxEntries\x18\x0b \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x36\n\x11\x65xcludeCommitTime\x18\x0c \x01(\x0b\x32\x1b.immudb.schema.NullableBool\x12\x35\n\x0emaxConcurrency\x18\r \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x37\n\x10maxIOConcurrency\x18\x0e \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x35\n\x0etxLogCacheSize\x18\x0f \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x39\n\x12vLogMaxOpenedFiles\x18\x10 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12:\n\x13txLogMaxOpenedFiles\x18\x11 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12>\n\x17\x63ommitLogMaxOpenedFiles\x18\x12 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12;\n\rindexSettings\x18\x13 \x01(\x0b\x32$.immudb.schema.IndexNullableSettings\x12;\n\x14writeTxHeaderVersion\x18\x14 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12-\n\x08\x61utoload\x18\x15 \x01(\x0b\x32\x1b.immudb.schema.NullableBool\"\xdd\x02\n\x1bReplicationNullableSettings\x12,\n\x07replica\x18\x01 \x01(\x0b\x32\x1b.immudb.schema.NullableBool\x12\x35\n\x0emasterDatabase\x18\x02 \x01(\x0b\x32\x1d.immudb.schema.NullableString\x12\x34\n\rmasterAddress\x18\x03 \x01(\x0b\x32\x1d.immudb.schema.NullableString\x12\x31\n\nmasterPort\x18\x04 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x37\n\x10\x66ollowerUsername\x18\x05 \x01(\x0b\x32\x1d.immudb.schema.NullableString\x12\x37\n\x10\x66ollowerPassword\x18\x06 \x01(\x0b\x32\x1d.immudb.schema.NullableString\"\x86\x06\n\x15IndexNullableSettings\x12\x35\n\x0e\x66lushThreshold\x18\x01 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x34\n\rsyncThreshold\x18\x02 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x30\n\tcacheSize\x18\x03 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x32\n\x0bmaxNodeSize\x18\x04 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x39\n\x12maxActiveSnapshots\x18\x05 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x39\n\x12renewSnapRootAfter\x18\x06 \x01(\x0b\x32\x1d.immudb.schema.NullableUint64\x12\x35\n\x0e\x63ompactionThld\x18\x07 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12<\n\x15\x64\x65layDuringCompaction\x18\x08 \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12=\n\x16nodesLogMaxOpenedFiles\x18\t \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12?\n\x18historyLogMaxOpenedFiles\x18\n \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12>\n\x17\x63ommitLogMaxOpenedFiles\x18\x0b \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x36\n\x0f\x66lushBufferSize\x18\x0c \x01(\x0b\x32\x1d.immudb.schema.NullableUint32\x12\x37\n\x11\x63leanupPercentage\x18\r \x01(\x0b\x32\x1c.immudb.schema.NullableFloat\"\'\n\x13LoadDatabaseRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"(\n\x14LoadDatabaseResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\")\n\x15UnloadDatabaseRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"*\n\x16UnloadDatabaseResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\")\n\x15\x44\x65leteDatabaseRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"*\n\x16\x44\x65leteDatabaseResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\">\n\x11\x46lushIndexRequest\x12\x19\n\x11\x63leanupPercentage\x18\x01 \x01(\x02\x12\x0e\n\x06synced\x18\x02 \x01(\x08\"&\n\x12\x46lushIndexResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"\x1a\n\x05Table\x12\x11\n\ttableName\x18\x01 \x01(\t\"h\n\rSQLGetRequest\x12\r\n\x05table\x18\x01 \x01(\t\x12)\n\x08pkValues\x18\x02 \x03(\x0b\x32\x17.immudb.schema.SQLValue\x12\x0c\n\x04\x61tTx\x18\x03 \x01(\x04\x12\x0f\n\x07sinceTx\x18\x04 \x01(\x04\"d\n\x17VerifiableSQLGetRequest\x12\x33\n\rsqlGetRequest\x18\x01 \x01(\x0b\x32\x1c.immudb.schema.SQLGetRequest\x12\x14\n\x0cproveSinceTx\x18\x02 \x01(\x04\"_\n\x08SQLEntry\x12\n\n\x02tx\x18\x01 \x01(\x04\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12+\n\x08metadata\x18\x04 \x01(\x0b\x32\x19.immudb.schema.KVMetadata\"\xdd\x05\n\x12VerifiableSQLEntry\x12)\n\x08sqlEntry\x18\x01 \x01(\x0b\x32\x17.immudb.schema.SQLEntry\x12\x31\n\x0cverifiableTx\x18\x02 \x01(\x0b\x32\x1b.immudb.schema.VerifiableTx\x12\x35\n\x0einclusionProof\x18\x03 \x01(\x0b\x32\x1d.immudb.schema.InclusionProof\x12\x12\n\nDatabaseId\x18\x04 \x01(\r\x12\x0f\n\x07TableId\x18\x05 \x01(\r\x12\r\n\x05PKIDs\x18\x10 \x03(\r\x12I\n\x0c\x43olNamesById\x18\x08 \x03(\x0b\x32\x33.immudb.schema.VerifiableSQLEntry.ColNamesByIdEntry\x12I\n\x0c\x43olIdsByName\x18\t \x03(\x0b\x32\x33.immudb.schema.VerifiableSQLEntry.ColIdsByNameEntry\x12I\n\x0c\x43olTypesById\x18\n \x03(\x0b\x32\x33.immudb.schema.VerifiableSQLEntry.ColTypesByIdEntry\x12\x45\n\nColLenById\x18\x0b \x03(\x0b\x32\x31.immudb.schema.VerifiableSQLEntry.ColLenByIdEntry\x1a\x33\n\x11\x43olNamesByIdEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11\x43olIdsByNameEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\x1a\x33\n\x11\x43olTypesByIdEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0f\x43olLenByIdEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01J\x04\x08\x06\x10\x07\"!\n\x10UseDatabaseReply\x12\r\n\x05token\x18\x01 \x01(\t\"\x82\x01\n\x17\x43hangePermissionRequest\x12/\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x1f.immudb.schema.PermissionAction\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x03 \x01(\t\x12\x12\n\npermission\x18\x04 \x01(\r\"8\n\x14SetActiveUserRequest\x12\x0e\n\x06\x61\x63tive\x18\x01 \x01(\x08\x12\x10\n\x08username\x18\x02 \x01(\t\"B\n\x14\x44\x61tabaseListResponse\x12*\n\tdatabases\x18\x01 \x03(\x0b\x32\x17.immudb.schema.Database\"\x17\n\x15\x44\x61tabaseListRequestV2\"P\n\x16\x44\x61tabaseListResponseV2\x12\x36\n\tdatabases\x18\x01 \x03(\x0b\x32#.immudb.schema.DatabaseWithSettings\"o\n\x14\x44\x61tabaseWithSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x39\n\x08settings\x18\x02 \x01(\x0b\x32\'.immudb.schema.DatabaseNullableSettings\x12\x0e\n\x06loaded\x18\x03 \x01(\x08\"\x18\n\x05\x43hunk\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\"9\n\x12UseSnapshotRequest\x12\x0f\n\x07sinceTx\x18\x01 \x01(\x04\x12\x12\n\nasBeforeTx\x18\x02 \x01(\x04\"X\n\x0eSQLExecRequest\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12)\n\x06params\x18\x02 \x03(\x0b\x32\x19.immudb.schema.NamedParam\x12\x0e\n\x06noWait\x18\x03 \x01(\x08\"`\n\x0fSQLQueryRequest\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12)\n\x06params\x18\x02 \x03(\x0b\x32\x19.immudb.schema.NamedParam\x12\x15\n\rreuseSnapshot\x18\x03 \x01(\x08\"B\n\nNamedParam\x12\x0c\n\x04name\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.immudb.schema.SQLValue\"N\n\rSQLExecResult\x12*\n\x03txs\x18\x05 \x03(\x0b\x32\x1d.immudb.schema.CommittedSQLTx\x12\x11\n\tongoingTx\x18\x06 \x01(\x08\"\x8d\x03\n\x0e\x43ommittedSQLTx\x12\'\n\x06header\x18\x01 \x01(\x0b\x32\x17.immudb.schema.TxHeader\x12\x13\n\x0bupdatedRows\x18\x02 \x01(\r\x12K\n\x0flastInsertedPKs\x18\x03 \x03(\x0b\x32\x32.immudb.schema.CommittedSQLTx.LastInsertedPKsEntry\x12M\n\x10\x66irstInsertedPKs\x18\x04 \x03(\x0b\x32\x33.immudb.schema.CommittedSQLTx.FirstInsertedPKsEntry\x1aO\n\x14LastInsertedPKsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.immudb.schema.SQLValue:\x02\x38\x01\x1aP\n\x15\x46irstInsertedPKsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.immudb.schema.SQLValue:\x02\x38\x01\"Z\n\x0eSQLQueryResult\x12&\n\x07\x63olumns\x18\x02 \x03(\x0b\x32\x15.immudb.schema.Column\x12 \n\x04rows\x18\x01 \x03(\x0b\x32\x12.immudb.schema.Row\"$\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"?\n\x03Row\x12\x0f\n\x07\x63olumns\x18\x01 \x03(\t\x12\'\n\x06values\x18\x02 \x03(\x0b\x32\x17.immudb.schema.SQLValue\"\x82\x01\n\x08SQLValue\x12*\n\x04null\x18\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x0b\n\x01n\x18\x02 \x01(\x03H\x00\x12\x0b\n\x01s\x18\x03 \x01(\tH\x00\x12\x0b\n\x01\x62\x18\x04 \x01(\x08H\x00\x12\x0c\n\x02\x62s\x18\x05 \x01(\x0cH\x00\x12\x0c\n\x02ts\x18\x06 \x01(\x03H\x00\x42\x07\n\x05value\"3\n\x0cNewTxRequest\x12#\n\x04mode\x18\x01 \x01(\x0e\x32\x15.immudb.schema.TxMode\"&\n\rNewTxResponse\x12\x15\n\rtransactionID\x18\x01 \x01(\t\"(\n\tErrorInfo\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t\"\x1a\n\tDebugInfo\x12\r\n\x05stack\x18\x01 \x01(\t\" \n\tRetryInfo\x12\x13\n\x0bretry_delay\x18\x01 \x01(\x05*K\n\x0f\x45ntryTypeAction\x12\x0b\n\x07\x45XCLUDE\x10\x00\x12\x0f\n\x0bONLY_DIGEST\x10\x01\x12\r\n\tRAW_VALUE\x10\x02\x12\x0b\n\x07RESOLVE\x10\x03*)\n\x10PermissionAction\x12\t\n\x05GRANT\x10\x00\x12\n\n\x06REVOKE\x10\x01*4\n\x06TxMode\x12\x0c\n\x08ReadOnly\x10\x00\x12\r\n\tWriteOnly\x10\x01\x12\r\n\tReadWrite\x10\x02\x32\x82(\n\x0bImmuService\x12<\n\tListUsers\x12\x16.google.protobuf.Empty\x1a\x17.immudb.schema.UserList\x12\x46\n\nCreateUser\x12 .immudb.schema.CreateUserRequest\x1a\x16.google.protobuf.Empty\x12N\n\x0e\x43hangePassword\x12$.immudb.schema.ChangePasswordRequest\x1a\x16.google.protobuf.Empty\x12R\n\x10\x43hangePermission\x12&.immudb.schema.ChangePermissionRequest\x1a\x16.google.protobuf.Empty\x12L\n\rSetActiveUser\x12#.immudb.schema.SetActiveUserRequest\x1a\x16.google.protobuf.Empty\x12\x45\n\x10UpdateAuthConfig\x12\x19.immudb.schema.AuthConfig\x1a\x16.google.protobuf.Empty\x12\x45\n\x10UpdateMTLSConfig\x12\x19.immudb.schema.MTLSConfig\x1a\x16.google.protobuf.Empty\x12V\n\x0bOpenSession\x12!.immudb.schema.OpenSessionRequest\x1a\".immudb.schema.OpenSessionResponse\"\x00\x12@\n\x0c\x43loseSession\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12=\n\tKeepAlive\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\x05NewTx\x12\x1b.immudb.schema.NewTxRequest\x1a\x1c.immudb.schema.NewTxResponse\"\x00\x12\x41\n\x06\x43ommit\x12\x16.google.protobuf.Empty\x1a\x1d.immudb.schema.CommittedSQLTx\"\x00\x12<\n\x08Rollback\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\tTxSQLExec\x12\x1d.immudb.schema.SQLExecRequest\x1a\x16.google.protobuf.Empty\"\x00\x12M\n\nTxSQLQuery\x12\x1e.immudb.schema.SQLQueryRequest\x1a\x1d.immudb.schema.SQLQueryResult\"\x00\x12\x42\n\x05Login\x12\x1b.immudb.schema.LoginRequest\x1a\x1c.immudb.schema.LoginResponse\x12\x38\n\x06Logout\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12\x39\n\x03Set\x12\x19.immudb.schema.SetRequest\x1a\x17.immudb.schema.TxHeader\x12Q\n\rVerifiableSet\x12#.immudb.schema.VerifiableSetRequest\x1a\x1b.immudb.schema.VerifiableTx\x12\x36\n\x03Get\x12\x19.immudb.schema.KeyRequest\x1a\x14.immudb.schema.Entry\x12T\n\rVerifiableGet\x12#.immudb.schema.VerifiableGetRequest\x1a\x1e.immudb.schema.VerifiableEntry\x12\x43\n\x06\x44\x65lete\x12 .immudb.schema.DeleteKeysRequest\x1a\x17.immudb.schema.TxHeader\x12?\n\x06GetAll\x12\x1d.immudb.schema.KeyListRequest\x1a\x16.immudb.schema.Entries\x12\x41\n\x07\x45xecAll\x12\x1d.immudb.schema.ExecAllRequest\x1a\x17.immudb.schema.TxHeader\x12:\n\x04Scan\x12\x1a.immudb.schema.ScanRequest\x1a\x16.immudb.schema.Entries\x12<\n\x05\x43ount\x12\x18.immudb.schema.KeyPrefix\x1a\x19.immudb.schema.EntryCount\x12=\n\x08\x43ountAll\x12\x16.google.protobuf.Empty\x1a\x19.immudb.schema.EntryCount\x12\x35\n\x06TxById\x12\x18.immudb.schema.TxRequest\x1a\x11.immudb.schema.Tx\x12S\n\x10VerifiableTxById\x12\".immudb.schema.VerifiableTxRequest\x1a\x1b.immudb.schema.VerifiableTx\x12=\n\x06TxScan\x12\x1c.immudb.schema.TxScanRequest\x1a\x15.immudb.schema.TxList\x12@\n\x07History\x12\x1d.immudb.schema.HistoryRequest\x1a\x16.immudb.schema.Entries\x12?\n\x06Health\x12\x16.google.protobuf.Empty\x1a\x1d.immudb.schema.HealthResponse\x12O\n\x0e\x44\x61tabaseHealth\x12\x16.google.protobuf.Empty\x1a%.immudb.schema.DatabaseHealthResponse\x12\x45\n\x0c\x43urrentState\x12\x16.google.protobuf.Empty\x1a\x1d.immudb.schema.ImmutableState\x12H\n\x0cSetReference\x12\x1f.immudb.schema.ReferenceRequest\x1a\x17.immudb.schema.TxHeader\x12`\n\x16VerifiableSetReference\x12).immudb.schema.VerifiableReferenceRequest\x1a\x1b.immudb.schema.VerifiableTx\x12;\n\x04ZAdd\x12\x1a.immudb.schema.ZAddRequest\x1a\x17.immudb.schema.TxHeader\x12S\n\x0eVerifiableZAdd\x12$.immudb.schema.VerifiableZAddRequest\x1a\x1b.immudb.schema.VerifiableTx\x12=\n\x05ZScan\x12\x1b.immudb.schema.ZScanRequest\x1a\x17.immudb.schema.ZEntries\x12\x41\n\x0e\x43reateDatabase\x12\x17.immudb.schema.Database\x1a\x16.google.protobuf.Empty\x12M\n\x12\x43reateDatabaseWith\x12\x1f.immudb.schema.DatabaseSettings\x1a\x16.google.protobuf.Empty\x12_\n\x10\x43reateDatabaseV2\x12$.immudb.schema.CreateDatabaseRequest\x1a%.immudb.schema.CreateDatabaseResponse\x12W\n\x0cLoadDatabase\x12\".immudb.schema.LoadDatabaseRequest\x1a#.immudb.schema.LoadDatabaseResponse\x12]\n\x0eUnloadDatabase\x12$.immudb.schema.UnloadDatabaseRequest\x1a%.immudb.schema.UnloadDatabaseResponse\x12]\n\x0e\x44\x65leteDatabase\x12$.immudb.schema.DeleteDatabaseRequest\x1a%.immudb.schema.DeleteDatabaseResponse\x12K\n\x0c\x44\x61tabaseList\x12\x16.google.protobuf.Empty\x1a#.immudb.schema.DatabaseListResponse\x12]\n\x0e\x44\x61tabaseListV2\x12$.immudb.schema.DatabaseListRequestV2\x1a%.immudb.schema.DatabaseListResponseV2\x12G\n\x0bUseDatabase\x12\x17.immudb.schema.Database\x1a\x1f.immudb.schema.UseDatabaseReply\x12I\n\x0eUpdateDatabase\x12\x1f.immudb.schema.DatabaseSettings\x1a\x16.google.protobuf.Empty\x12_\n\x10UpdateDatabaseV2\x12$.immudb.schema.UpdateDatabaseRequest\x1a%.immudb.schema.UpdateDatabaseResponse\x12N\n\x13GetDatabaseSettings\x12\x16.google.protobuf.Empty\x1a\x1f.immudb.schema.DatabaseSettings\x12h\n\x15GetDatabaseSettingsV2\x12&.immudb.schema.DatabaseSettingsRequest\x1a\'.immudb.schema.DatabaseSettingsResponse\x12Q\n\nFlushIndex\x12 .immudb.schema.FlushIndexRequest\x1a!.immudb.schema.FlushIndexResponse\x12>\n\x0c\x43ompactIndex\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12@\n\tstreamGet\x12\x19.immudb.schema.KeyRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12>\n\tstreamSet\x12\x14.immudb.schema.Chunk\x1a\x17.immudb.schema.TxHeader\"\x00(\x01\x12T\n\x13streamVerifiableGet\x12#.immudb.schema.VerifiableGetRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12L\n\x13streamVerifiableSet\x12\x14.immudb.schema.Chunk\x1a\x1b.immudb.schema.VerifiableTx\"\x00(\x01\x12\x42\n\nstreamScan\x12\x1a.immudb.schema.ScanRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12\x44\n\x0bstreamZScan\x12\x1b.immudb.schema.ZScanRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12H\n\rstreamHistory\x12\x1d.immudb.schema.HistoryRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12\x42\n\rstreamExecAll\x12\x14.immudb.schema.Chunk\x1a\x17.immudb.schema.TxHeader\"\x00(\x01\x12\x44\n\x08\x65xportTx\x12\x1e.immudb.schema.ExportTxRequest\x1a\x14.immudb.schema.Chunk\"\x00\x30\x01\x12@\n\x0breplicateTx\x12\x14.immudb.schema.Chunk\x1a\x17.immudb.schema.TxHeader\"\x00(\x01\x12\x46\n\x07SQLExec\x12\x1d.immudb.schema.SQLExecRequest\x1a\x1c.immudb.schema.SQLExecResult\x12I\n\x08SQLQuery\x12\x1e.immudb.schema.SQLQueryRequest\x1a\x1d.immudb.schema.SQLQueryResult\x12\x43\n\nListTables\x12\x16.google.protobuf.Empty\x1a\x1d.immudb.schema.SQLQueryResult\x12\x44\n\rDescribeTable\x12\x14.immudb.schema.Table\x1a\x1d.immudb.schema.SQLQueryResult\x12]\n\x10VerifiableSQLGet\x12&.immudb.schema.VerifiableSQLGetRequest\x1a!.immudb.schema.VerifiableSQLEntryB-Z+github.com/codenotary/immudb/pkg/api/schemab\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
596
15
 
597
16
  module Immudb
598
17
  module Schema
@@ -38,6 +38,9 @@ module Immudb
38
38
  mdbs = "".b
39
39
  if !@metadata.nil?
40
40
  mdbs = @metadata.bytes
41
+ if mdbs.nil?
42
+ mdbs = "".b
43
+ end
41
44
  end
42
45
  md.update([mdbs.length].pack("n"))
43
46
  md.update(mdbs)
@@ -22,5 +22,9 @@ module Immudb
22
22
  bi = bi + inner_hash
23
23
  Digest::SHA256.digest(bi)
24
24
  end
25
+
26
+ def bytes
27
+ nil
28
+ end
25
29
  end
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Immudb
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/immudb.rb CHANGED
@@ -4,30 +4,30 @@ require "openssl"
4
4
  require "time"
5
5
 
6
6
  # grpc
7
- require "immudb/grpc/schema_services_pb"
7
+ require_relative "immudb/grpc/schema_services_pb"
8
8
 
9
9
  # modules
10
- require "immudb/client"
11
- require "immudb/constants"
12
- require "immudb/database"
13
- require "immudb/dual_proof"
14
- require "immudb/entry_spec"
15
- require "immudb/htree"
16
- require "immudb/inclusion_proof"
17
- require "immudb/interceptor"
18
- require "immudb/kv"
19
- require "immudb/kv_metadata"
20
- require "immudb/linear_proof"
21
- require "immudb/root_service"
22
- require "immudb/schema"
23
- require "immudb/sql_result"
24
- require "immudb/state"
25
- require "immudb/store"
26
- require "immudb/tx"
27
- require "immudb/tx_entry"
28
- require "immudb/tx_header"
29
- require "immudb/tx_metadata"
30
- require "immudb/version"
10
+ require_relative "immudb/client"
11
+ require_relative "immudb/constants"
12
+ require_relative "immudb/database"
13
+ require_relative "immudb/dual_proof"
14
+ require_relative "immudb/entry_spec"
15
+ require_relative "immudb/htree"
16
+ require_relative "immudb/inclusion_proof"
17
+ require_relative "immudb/interceptor"
18
+ require_relative "immudb/kv"
19
+ require_relative "immudb/kv_metadata"
20
+ require_relative "immudb/linear_proof"
21
+ require_relative "immudb/root_service"
22
+ require_relative "immudb/schema"
23
+ require_relative "immudb/sql_result"
24
+ require_relative "immudb/state"
25
+ require_relative "immudb/store"
26
+ require_relative "immudb/tx"
27
+ require_relative "immudb/tx_entry"
28
+ require_relative "immudb/tx_header"
29
+ require_relative "immudb/tx_metadata"
30
+ require_relative "immudb/version"
31
31
 
32
32
  module Immudb
33
33
  class Error < StandardError; end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immudb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2024-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: grpc
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,14 +83,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
83
  requirements:
70
84
  - - ">="
71
85
  - !ruby/object:Gem::Version
72
- version: '3'
86
+ version: '3.1'
73
87
  required_rubygems_version: !ruby/object:Gem::Requirement
74
88
  requirements:
75
89
  - - ">="
76
90
  - !ruby/object:Gem::Version
77
91
  version: '0'
78
92
  requirements: []
79
- rubygems_version: 3.4.10
93
+ rubygems_version: 3.5.11
80
94
  signing_key:
81
95
  specification_version: 4
82
96
  summary: Ruby client for immudb