immudb 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/immudb/client.rb +81 -47
- data/lib/immudb/database.rb +33 -0
- data/lib/immudb/dual_proof.rb +1 -1
- data/lib/immudb/{txe.rb → entry_spec.rb} +7 -11
- data/lib/immudb/grpc/schema_pb.rb +309 -17
- data/lib/immudb/grpc/schema_services_pb.rb +38 -11
- data/lib/immudb/htree.rb +0 -21
- data/lib/immudb/kv_metadata.rb +88 -0
- data/lib/immudb/linear_proof.rb +2 -8
- data/lib/immudb/schema.rb +119 -0
- data/lib/immudb/store.rb +56 -72
- data/lib/immudb/tx.rb +60 -23
- data/lib/immudb/tx_entry.rb +34 -0
- data/lib/immudb/tx_header.rb +62 -0
- data/lib/immudb/version.rb +1 -1
- data/lib/immudb.rb +6 -2
- metadata +10 -5
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: schema.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/protobuf/empty_pb'
|
5
7
|
require 'google/protobuf/struct_pb'
|
6
|
-
require 'google/protobuf'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("schema.proto", :syntax => :proto3) do
|
@@ -52,20 +53,52 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
52
53
|
add_message "immudb.schema.MTLSConfig" do
|
53
54
|
optional :enabled, :bool, 1
|
54
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
|
55
82
|
add_message "immudb.schema.KeyValue" do
|
56
83
|
optional :key, :bytes, 1
|
57
84
|
optional :value, :bytes, 2
|
85
|
+
optional :metadata, :message, 3, "immudb.schema.KVMetadata"
|
58
86
|
end
|
59
87
|
add_message "immudb.schema.Entry" do
|
60
88
|
optional :tx, :uint64, 1
|
61
89
|
optional :key, :bytes, 2
|
62
90
|
optional :value, :bytes, 3
|
63
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
|
64
95
|
end
|
65
96
|
add_message "immudb.schema.Reference" do
|
66
97
|
optional :tx, :uint64, 1
|
67
98
|
optional :key, :bytes, 2
|
68
99
|
optional :atTx, :uint64, 3
|
100
|
+
optional :metadata, :message, 4, "immudb.schema.KVMetadata"
|
101
|
+
optional :revision, :uint64, 5
|
69
102
|
end
|
70
103
|
add_message "immudb.schema.Op" do
|
71
104
|
oneof :operation do
|
@@ -77,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
77
110
|
add_message "immudb.schema.ExecAllRequest" do
|
78
111
|
repeated :Operations, :message, 1, "immudb.schema.Op"
|
79
112
|
optional :noWait, :bool, 2
|
113
|
+
repeated :preconditions, :message, 3, "immudb.schema.Precondition"
|
80
114
|
end
|
81
115
|
add_message "immudb.schema.Entries" do
|
82
116
|
repeated :entries, :message, 1, "immudb.schema.Entry"
|
@@ -109,7 +143,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
109
143
|
optional :publicKey, :bytes, 1
|
110
144
|
optional :signature, :bytes, 2
|
111
145
|
end
|
112
|
-
add_message "immudb.schema.
|
146
|
+
add_message "immudb.schema.TxHeader" do
|
113
147
|
optional :id, :uint64, 1
|
114
148
|
optional :prevAlh, :bytes, 2
|
115
149
|
optional :ts, :int64, 3
|
@@ -117,6 +151,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
117
151
|
optional :eH, :bytes, 5
|
118
152
|
optional :blTxId, :uint64, 6
|
119
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
|
120
158
|
end
|
121
159
|
add_message "immudb.schema.LinearProof" do
|
122
160
|
optional :sourceTxId, :uint64, 1
|
@@ -124,8 +162,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
124
162
|
repeated :terms, :bytes, 3
|
125
163
|
end
|
126
164
|
add_message "immudb.schema.DualProof" do
|
127
|
-
optional :
|
128
|
-
optional :
|
165
|
+
optional :sourceTxHeader, :message, 1, "immudb.schema.TxHeader"
|
166
|
+
optional :targetTxHeader, :message, 2, "immudb.schema.TxHeader"
|
129
167
|
repeated :inclusionProof, :bytes, 3
|
130
168
|
repeated :consistencyProof, :bytes, 4
|
131
169
|
optional :targetBlTxAlh, :bytes, 5
|
@@ -133,14 +171,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
133
171
|
optional :linearProof, :message, 7, "immudb.schema.LinearProof"
|
134
172
|
end
|
135
173
|
add_message "immudb.schema.Tx" do
|
136
|
-
optional :
|
174
|
+
optional :header, :message, 1, "immudb.schema.TxHeader"
|
137
175
|
repeated :entries, :message, 2, "immudb.schema.TxEntry"
|
176
|
+
repeated :kvEntries, :message, 3, "immudb.schema.Entry"
|
177
|
+
repeated :zEntries, :message, 4, "immudb.schema.ZEntry"
|
138
178
|
end
|
139
179
|
add_message "immudb.schema.TxEntry" do
|
140
180
|
optional :key, :bytes, 1
|
141
181
|
optional :hValue, :bytes, 2
|
142
|
-
optional :
|
143
|
-
optional :
|
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
|
144
193
|
end
|
145
194
|
add_message "immudb.schema.VerifiableTx" do
|
146
195
|
optional :tx, :message, 1, "immudb.schema.Tx"
|
@@ -160,16 +209,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
160
209
|
add_message "immudb.schema.SetRequest" do
|
161
210
|
repeated :KVs, :message, 1, "immudb.schema.KeyValue"
|
162
211
|
optional :noWait, :bool, 2
|
212
|
+
repeated :preconditions, :message, 3, "immudb.schema.Precondition"
|
163
213
|
end
|
164
214
|
add_message "immudb.schema.KeyRequest" do
|
165
215
|
optional :key, :bytes, 1
|
166
216
|
optional :atTx, :uint64, 2
|
167
217
|
optional :sinceTx, :uint64, 3
|
218
|
+
optional :noWait, :bool, 4
|
219
|
+
optional :atRevision, :int64, 5
|
168
220
|
end
|
169
221
|
add_message "immudb.schema.KeyListRequest" do
|
170
222
|
repeated :keys, :bytes, 1
|
171
223
|
optional :sinceTx, :uint64, 2
|
172
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
|
173
230
|
add_message "immudb.schema.VerifiableSetRequest" do
|
174
231
|
optional :setRequest, :message, 1, "immudb.schema.SetRequest"
|
175
232
|
optional :proveSinceTx, :uint64, 2
|
@@ -182,6 +239,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
182
239
|
optional :status, :bool, 1
|
183
240
|
optional :version, :string, 2
|
184
241
|
end
|
242
|
+
add_message "immudb.schema.DatabaseHealthResponse" do
|
243
|
+
optional :pendingRequests, :uint32, 1
|
244
|
+
optional :lastRequestCompletedAt, :int64, 2
|
245
|
+
end
|
185
246
|
add_message "immudb.schema.ImmutableState" do
|
186
247
|
optional :db, :string, 1
|
187
248
|
optional :txId, :uint64, 2
|
@@ -194,6 +255,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
194
255
|
optional :atTx, :uint64, 3
|
195
256
|
optional :boundRef, :bool, 4
|
196
257
|
optional :noWait, :bool, 5
|
258
|
+
repeated :preconditions, :message, 6, "immudb.schema.Precondition"
|
197
259
|
end
|
198
260
|
add_message "immudb.schema.VerifiableReferenceRequest" do
|
199
261
|
optional :referenceRequest, :message, 1, "immudb.schema.ReferenceRequest"
|
@@ -236,28 +298,164 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
236
298
|
end
|
237
299
|
add_message "immudb.schema.TxRequest" do
|
238
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"
|
239
312
|
end
|
240
313
|
add_message "immudb.schema.VerifiableTxRequest" do
|
241
314
|
optional :tx, :uint64, 1
|
242
315
|
optional :proveSinceTx, :uint64, 2
|
316
|
+
optional :entriesSpec, :message, 3, "immudb.schema.EntriesSpec"
|
317
|
+
optional :sinceTx, :uint64, 4
|
318
|
+
optional :noWait, :bool, 5
|
243
319
|
end
|
244
320
|
add_message "immudb.schema.TxScanRequest" do
|
245
321
|
optional :initialTx, :uint64, 1
|
246
322
|
optional :limit, :uint32, 2
|
247
323
|
optional :desc, :bool, 3
|
324
|
+
optional :entriesSpec, :message, 4, "immudb.schema.EntriesSpec"
|
325
|
+
optional :sinceTx, :uint64, 5
|
326
|
+
optional :noWait, :bool, 6
|
248
327
|
end
|
249
328
|
add_message "immudb.schema.TxList" do
|
250
329
|
repeated :txs, :message, 1, "immudb.schema.Tx"
|
251
330
|
end
|
331
|
+
add_message "immudb.schema.ExportTxRequest" do
|
332
|
+
optional :tx, :uint64, 1
|
333
|
+
end
|
252
334
|
add_message "immudb.schema.Database" do
|
253
335
|
optional :databaseName, :string, 1
|
254
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
|
255
453
|
add_message "immudb.schema.Table" do
|
256
454
|
optional :tableName, :string, 1
|
257
455
|
end
|
258
456
|
add_message "immudb.schema.SQLGetRequest" do
|
259
457
|
optional :table, :string, 1
|
260
|
-
|
458
|
+
repeated :pkValues, :message, 2, "immudb.schema.SQLValue"
|
261
459
|
optional :atTx, :uint64, 3
|
262
460
|
optional :sinceTx, :uint64, 4
|
263
461
|
end
|
@@ -269,17 +467,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
269
467
|
optional :tx, :uint64, 1
|
270
468
|
optional :key, :bytes, 2
|
271
469
|
optional :value, :bytes, 3
|
470
|
+
optional :metadata, :message, 4, "immudb.schema.KVMetadata"
|
272
471
|
end
|
273
472
|
add_message "immudb.schema.VerifiableSQLEntry" do
|
274
473
|
optional :sqlEntry, :message, 1, "immudb.schema.SQLEntry"
|
275
474
|
optional :verifiableTx, :message, 2, "immudb.schema.VerifiableTx"
|
276
475
|
optional :inclusionProof, :message, 3, "immudb.schema.InclusionProof"
|
277
|
-
optional :DatabaseId, :
|
278
|
-
optional :TableId, :
|
279
|
-
|
280
|
-
map :
|
281
|
-
map :ColIdsByName, :string, :
|
282
|
-
map :ColTypesById, :
|
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
|
283
483
|
end
|
284
484
|
add_message "immudb.schema.UseDatabaseReply" do
|
285
485
|
optional :token, :string, 1
|
@@ -297,6 +497,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
297
497
|
add_message "immudb.schema.DatabaseListResponse" do
|
298
498
|
repeated :databases, :message, 1, "immudb.schema.Database"
|
299
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
|
300
510
|
add_message "immudb.schema.Chunk" do
|
301
511
|
optional :content, :bytes, 1
|
302
512
|
end
|
@@ -319,8 +529,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
319
529
|
optional :value, :message, 2, "immudb.schema.SQLValue"
|
320
530
|
end
|
321
531
|
add_message "immudb.schema.SQLExecResult" do
|
322
|
-
repeated :
|
323
|
-
|
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"
|
324
540
|
end
|
325
541
|
add_message "immudb.schema.SQLQueryResult" do
|
326
542
|
repeated :columns, :message, 2, "immudb.schema.Column"
|
@@ -337,16 +553,44 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
337
553
|
add_message "immudb.schema.SQLValue" do
|
338
554
|
oneof :value do
|
339
555
|
optional :null, :enum, 1, "google.protobuf.NullValue"
|
340
|
-
optional :n, :
|
556
|
+
optional :n, :int64, 2
|
341
557
|
optional :s, :string, 3
|
342
558
|
optional :b, :bool, 4
|
343
559
|
optional :bs, :bytes, 5
|
560
|
+
optional :ts, :int64, 6
|
344
561
|
end
|
345
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
|
346
585
|
add_enum "immudb.schema.PermissionAction" do
|
347
586
|
value :GRANT, 0
|
348
587
|
value :REVOKE, 1
|
349
588
|
end
|
589
|
+
add_enum "immudb.schema.TxMode" do
|
590
|
+
value :ReadOnly, 0
|
591
|
+
value :WriteOnly, 1
|
592
|
+
value :ReadWrite, 2
|
593
|
+
end
|
350
594
|
end
|
351
595
|
end
|
352
596
|
|
@@ -363,6 +607,12 @@ module Immudb
|
|
363
607
|
LoginResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.LoginResponse").msgclass
|
364
608
|
AuthConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.AuthConfig").msgclass
|
365
609
|
MTLSConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.MTLSConfig").msgclass
|
610
|
+
OpenSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.OpenSessionRequest").msgclass
|
611
|
+
OpenSessionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.OpenSessionResponse").msgclass
|
612
|
+
Precondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Precondition").msgclass
|
613
|
+
Precondition::KeyMustExistPrecondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Precondition.KeyMustExistPrecondition").msgclass
|
614
|
+
Precondition::KeyMustNotExistPrecondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Precondition.KeyMustNotExistPrecondition").msgclass
|
615
|
+
Precondition::KeyNotModifiedAfterTXPrecondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Precondition.KeyNotModifiedAfterTXPrecondition").msgclass
|
366
616
|
KeyValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.KeyValue").msgclass
|
367
617
|
Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Entry").msgclass
|
368
618
|
Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Reference").msgclass
|
@@ -375,20 +625,25 @@ module Immudb
|
|
375
625
|
KeyPrefix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.KeyPrefix").msgclass
|
376
626
|
EntryCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.EntryCount").msgclass
|
377
627
|
Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Signature").msgclass
|
628
|
+
TxHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxHeader").msgclass
|
378
629
|
TxMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxMetadata").msgclass
|
379
630
|
LinearProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.LinearProof").msgclass
|
380
631
|
DualProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DualProof").msgclass
|
381
632
|
Tx = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Tx").msgclass
|
382
633
|
TxEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxEntry").msgclass
|
634
|
+
KVMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.KVMetadata").msgclass
|
635
|
+
Expiration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Expiration").msgclass
|
383
636
|
VerifiableTx = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableTx").msgclass
|
384
637
|
VerifiableEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableEntry").msgclass
|
385
638
|
InclusionProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.InclusionProof").msgclass
|
386
639
|
SetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SetRequest").msgclass
|
387
640
|
KeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.KeyRequest").msgclass
|
388
641
|
KeyListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.KeyListRequest").msgclass
|
642
|
+
DeleteKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DeleteKeysRequest").msgclass
|
389
643
|
VerifiableSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableSetRequest").msgclass
|
390
644
|
VerifiableGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableGetRequest").msgclass
|
391
645
|
HealthResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.HealthResponse").msgclass
|
646
|
+
DatabaseHealthResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseHealthResponse").msgclass
|
392
647
|
ImmutableState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ImmutableState").msgclass
|
393
648
|
ReferenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ReferenceRequest").msgclass
|
394
649
|
VerifiableReferenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableReferenceRequest").msgclass
|
@@ -398,10 +653,36 @@ module Immudb
|
|
398
653
|
HistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.HistoryRequest").msgclass
|
399
654
|
VerifiableZAddRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableZAddRequest").msgclass
|
400
655
|
TxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxRequest").msgclass
|
656
|
+
EntriesSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.EntriesSpec").msgclass
|
657
|
+
EntryTypeSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.EntryTypeSpec").msgclass
|
401
658
|
VerifiableTxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableTxRequest").msgclass
|
402
659
|
TxScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxScanRequest").msgclass
|
403
660
|
TxList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxList").msgclass
|
661
|
+
ExportTxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ExportTxRequest").msgclass
|
404
662
|
Database = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Database").msgclass
|
663
|
+
DatabaseSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseSettings").msgclass
|
664
|
+
CreateDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.CreateDatabaseRequest").msgclass
|
665
|
+
CreateDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.CreateDatabaseResponse").msgclass
|
666
|
+
UpdateDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.UpdateDatabaseRequest").msgclass
|
667
|
+
UpdateDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.UpdateDatabaseResponse").msgclass
|
668
|
+
DatabaseSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseSettingsRequest").msgclass
|
669
|
+
DatabaseSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseSettingsResponse").msgclass
|
670
|
+
NullableUint32 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NullableUint32").msgclass
|
671
|
+
NullableUint64 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NullableUint64").msgclass
|
672
|
+
NullableFloat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NullableFloat").msgclass
|
673
|
+
NullableBool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NullableBool").msgclass
|
674
|
+
NullableString = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NullableString").msgclass
|
675
|
+
DatabaseNullableSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseNullableSettings").msgclass
|
676
|
+
ReplicationNullableSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ReplicationNullableSettings").msgclass
|
677
|
+
IndexNullableSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.IndexNullableSettings").msgclass
|
678
|
+
LoadDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.LoadDatabaseRequest").msgclass
|
679
|
+
LoadDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.LoadDatabaseResponse").msgclass
|
680
|
+
UnloadDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.UnloadDatabaseRequest").msgclass
|
681
|
+
UnloadDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.UnloadDatabaseResponse").msgclass
|
682
|
+
DeleteDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DeleteDatabaseRequest").msgclass
|
683
|
+
DeleteDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DeleteDatabaseResponse").msgclass
|
684
|
+
FlushIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.FlushIndexRequest").msgclass
|
685
|
+
FlushIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.FlushIndexResponse").msgclass
|
405
686
|
Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Table").msgclass
|
406
687
|
SQLGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLGetRequest").msgclass
|
407
688
|
VerifiableSQLGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.VerifiableSQLGetRequest").msgclass
|
@@ -411,16 +692,27 @@ module Immudb
|
|
411
692
|
ChangePermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ChangePermissionRequest").msgclass
|
412
693
|
SetActiveUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SetActiveUserRequest").msgclass
|
413
694
|
DatabaseListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseListResponse").msgclass
|
695
|
+
DatabaseListRequestV2 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseListRequestV2").msgclass
|
696
|
+
DatabaseListResponseV2 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseListResponseV2").msgclass
|
697
|
+
DatabaseWithSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DatabaseWithSettings").msgclass
|
414
698
|
Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Chunk").msgclass
|
415
699
|
UseSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.UseSnapshotRequest").msgclass
|
416
700
|
SQLExecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLExecRequest").msgclass
|
417
701
|
SQLQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLQueryRequest").msgclass
|
418
702
|
NamedParam = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NamedParam").msgclass
|
419
703
|
SQLExecResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLExecResult").msgclass
|
704
|
+
CommittedSQLTx = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.CommittedSQLTx").msgclass
|
420
705
|
SQLQueryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLQueryResult").msgclass
|
421
706
|
Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Column").msgclass
|
422
707
|
Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.Row").msgclass
|
423
708
|
SQLValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.SQLValue").msgclass
|
709
|
+
NewTxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NewTxRequest").msgclass
|
710
|
+
NewTxResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.NewTxResponse").msgclass
|
711
|
+
ErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.ErrorInfo").msgclass
|
712
|
+
DebugInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.DebugInfo").msgclass
|
713
|
+
RetryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.RetryInfo").msgclass
|
714
|
+
EntryTypeAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.EntryTypeAction").enummodule
|
424
715
|
PermissionAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.PermissionAction").enummodule
|
716
|
+
TxMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("immudb.schema.TxMode").enummodule
|
425
717
|
end
|
426
718
|
end
|
@@ -18,12 +18,12 @@
|
|
18
18
|
#
|
19
19
|
|
20
20
|
require 'grpc'
|
21
|
+
require_relative 'schema_pb'
|
21
22
|
|
22
23
|
module Immudb
|
23
24
|
module Schema
|
24
25
|
module ImmuService
|
25
26
|
# immudb gRPC & REST service
|
26
|
-
# IMPORTANT: All get and safeget functions return base64-encoded keys and values, while all set and safeset functions expect base64-encoded inputs.
|
27
27
|
class Service
|
28
28
|
|
29
29
|
include ::GRPC::GenericService
|
@@ -35,47 +35,74 @@ module Immudb
|
|
35
35
|
rpc :ListUsers, ::Google::Protobuf::Empty, ::Immudb::Schema::UserList
|
36
36
|
rpc :CreateUser, ::Immudb::Schema::CreateUserRequest, ::Google::Protobuf::Empty
|
37
37
|
rpc :ChangePassword, ::Immudb::Schema::ChangePasswordRequest, ::Google::Protobuf::Empty
|
38
|
+
rpc :ChangePermission, ::Immudb::Schema::ChangePermissionRequest, ::Google::Protobuf::Empty
|
39
|
+
rpc :SetActiveUser, ::Immudb::Schema::SetActiveUserRequest, ::Google::Protobuf::Empty
|
38
40
|
rpc :UpdateAuthConfig, ::Immudb::Schema::AuthConfig, ::Google::Protobuf::Empty
|
41
|
+
# DEPRECATED
|
39
42
|
rpc :UpdateMTLSConfig, ::Immudb::Schema::MTLSConfig, ::Google::Protobuf::Empty
|
43
|
+
# DEPRECATED
|
44
|
+
rpc :OpenSession, ::Immudb::Schema::OpenSessionRequest, ::Immudb::Schema::OpenSessionResponse
|
45
|
+
rpc :CloseSession, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
46
|
+
rpc :KeepAlive, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
47
|
+
rpc :NewTx, ::Immudb::Schema::NewTxRequest, ::Immudb::Schema::NewTxResponse
|
48
|
+
rpc :Commit, ::Google::Protobuf::Empty, ::Immudb::Schema::CommittedSQLTx
|
49
|
+
rpc :Rollback, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
50
|
+
rpc :TxSQLExec, ::Immudb::Schema::SQLExecRequest, ::Google::Protobuf::Empty
|
51
|
+
rpc :TxSQLQuery, ::Immudb::Schema::SQLQueryRequest, ::Immudb::Schema::SQLQueryResult
|
40
52
|
rpc :Login, ::Immudb::Schema::LoginRequest, ::Immudb::Schema::LoginResponse
|
41
53
|
rpc :Logout, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
42
|
-
rpc :Set, ::Immudb::Schema::SetRequest, ::Immudb::Schema::
|
54
|
+
rpc :Set, ::Immudb::Schema::SetRequest, ::Immudb::Schema::TxHeader
|
43
55
|
rpc :VerifiableSet, ::Immudb::Schema::VerifiableSetRequest, ::Immudb::Schema::VerifiableTx
|
44
56
|
rpc :Get, ::Immudb::Schema::KeyRequest, ::Immudb::Schema::Entry
|
45
57
|
rpc :VerifiableGet, ::Immudb::Schema::VerifiableGetRequest, ::Immudb::Schema::VerifiableEntry
|
58
|
+
rpc :Delete, ::Immudb::Schema::DeleteKeysRequest, ::Immudb::Schema::TxHeader
|
46
59
|
rpc :GetAll, ::Immudb::Schema::KeyListRequest, ::Immudb::Schema::Entries
|
47
|
-
rpc :ExecAll, ::Immudb::Schema::ExecAllRequest, ::Immudb::Schema::
|
60
|
+
rpc :ExecAll, ::Immudb::Schema::ExecAllRequest, ::Immudb::Schema::TxHeader
|
48
61
|
rpc :Scan, ::Immudb::Schema::ScanRequest, ::Immudb::Schema::Entries
|
62
|
+
# NOT YET SUPPORTED
|
49
63
|
rpc :Count, ::Immudb::Schema::KeyPrefix, ::Immudb::Schema::EntryCount
|
64
|
+
# NOT YET SUPPORTED
|
50
65
|
rpc :CountAll, ::Google::Protobuf::Empty, ::Immudb::Schema::EntryCount
|
51
66
|
rpc :TxById, ::Immudb::Schema::TxRequest, ::Immudb::Schema::Tx
|
52
67
|
rpc :VerifiableTxById, ::Immudb::Schema::VerifiableTxRequest, ::Immudb::Schema::VerifiableTx
|
53
68
|
rpc :TxScan, ::Immudb::Schema::TxScanRequest, ::Immudb::Schema::TxList
|
54
69
|
rpc :History, ::Immudb::Schema::HistoryRequest, ::Immudb::Schema::Entries
|
55
70
|
rpc :Health, ::Google::Protobuf::Empty, ::Immudb::Schema::HealthResponse
|
71
|
+
rpc :DatabaseHealth, ::Google::Protobuf::Empty, ::Immudb::Schema::DatabaseHealthResponse
|
56
72
|
rpc :CurrentState, ::Google::Protobuf::Empty, ::Immudb::Schema::ImmutableState
|
57
|
-
rpc :SetReference, ::Immudb::Schema::ReferenceRequest, ::Immudb::Schema::
|
73
|
+
rpc :SetReference, ::Immudb::Schema::ReferenceRequest, ::Immudb::Schema::TxHeader
|
58
74
|
rpc :VerifiableSetReference, ::Immudb::Schema::VerifiableReferenceRequest, ::Immudb::Schema::VerifiableTx
|
59
|
-
rpc :ZAdd, ::Immudb::Schema::ZAddRequest, ::Immudb::Schema::
|
75
|
+
rpc :ZAdd, ::Immudb::Schema::ZAddRequest, ::Immudb::Schema::TxHeader
|
60
76
|
rpc :VerifiableZAdd, ::Immudb::Schema::VerifiableZAddRequest, ::Immudb::Schema::VerifiableTx
|
61
77
|
rpc :ZScan, ::Immudb::Schema::ZScanRequest, ::Immudb::Schema::ZEntries
|
78
|
+
# DEPRECATED: kept for backward compatibility
|
62
79
|
rpc :CreateDatabase, ::Immudb::Schema::Database, ::Google::Protobuf::Empty
|
80
|
+
rpc :CreateDatabaseWith, ::Immudb::Schema::DatabaseSettings, ::Google::Protobuf::Empty
|
81
|
+
rpc :CreateDatabaseV2, ::Immudb::Schema::CreateDatabaseRequest, ::Immudb::Schema::CreateDatabaseResponse
|
82
|
+
rpc :LoadDatabase, ::Immudb::Schema::LoadDatabaseRequest, ::Immudb::Schema::LoadDatabaseResponse
|
83
|
+
rpc :UnloadDatabase, ::Immudb::Schema::UnloadDatabaseRequest, ::Immudb::Schema::UnloadDatabaseResponse
|
84
|
+
rpc :DeleteDatabase, ::Immudb::Schema::DeleteDatabaseRequest, ::Immudb::Schema::DeleteDatabaseResponse
|
63
85
|
rpc :DatabaseList, ::Google::Protobuf::Empty, ::Immudb::Schema::DatabaseListResponse
|
86
|
+
rpc :DatabaseListV2, ::Immudb::Schema::DatabaseListRequestV2, ::Immudb::Schema::DatabaseListResponseV2
|
64
87
|
rpc :UseDatabase, ::Immudb::Schema::Database, ::Immudb::Schema::UseDatabaseReply
|
88
|
+
rpc :UpdateDatabase, ::Immudb::Schema::DatabaseSettings, ::Google::Protobuf::Empty
|
89
|
+
rpc :UpdateDatabaseV2, ::Immudb::Schema::UpdateDatabaseRequest, ::Immudb::Schema::UpdateDatabaseResponse
|
90
|
+
rpc :GetDatabaseSettings, ::Google::Protobuf::Empty, ::Immudb::Schema::DatabaseSettings
|
91
|
+
rpc :GetDatabaseSettingsV2, ::Immudb::Schema::DatabaseSettingsRequest, ::Immudb::Schema::DatabaseSettingsResponse
|
92
|
+
rpc :FlushIndex, ::Immudb::Schema::FlushIndexRequest, ::Immudb::Schema::FlushIndexResponse
|
65
93
|
rpc :CompactIndex, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
66
|
-
rpc :ChangePermission, ::Immudb::Schema::ChangePermissionRequest, ::Google::Protobuf::Empty
|
67
|
-
rpc :SetActiveUser, ::Immudb::Schema::SetActiveUserRequest, ::Google::Protobuf::Empty
|
68
94
|
# Streams
|
69
95
|
rpc :streamGet, ::Immudb::Schema::KeyRequest, stream(::Immudb::Schema::Chunk)
|
70
|
-
rpc :streamSet, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::
|
96
|
+
rpc :streamSet, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::TxHeader
|
71
97
|
rpc :streamVerifiableGet, ::Immudb::Schema::VerifiableGetRequest, stream(::Immudb::Schema::Chunk)
|
72
98
|
rpc :streamVerifiableSet, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::VerifiableTx
|
73
99
|
rpc :streamScan, ::Immudb::Schema::ScanRequest, stream(::Immudb::Schema::Chunk)
|
74
100
|
rpc :streamZScan, ::Immudb::Schema::ZScanRequest, stream(::Immudb::Schema::Chunk)
|
75
101
|
rpc :streamHistory, ::Immudb::Schema::HistoryRequest, stream(::Immudb::Schema::Chunk)
|
76
|
-
rpc :streamExecAll, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::
|
77
|
-
#
|
78
|
-
rpc :
|
102
|
+
rpc :streamExecAll, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::TxHeader
|
103
|
+
# Replication
|
104
|
+
rpc :exportTx, ::Immudb::Schema::ExportTxRequest, stream(::Immudb::Schema::Chunk)
|
105
|
+
rpc :replicateTx, stream(::Immudb::Schema::Chunk), ::Immudb::Schema::TxHeader
|
79
106
|
rpc :SQLExec, ::Immudb::Schema::SQLExecRequest, ::Immudb::Schema::SQLExecResult
|
80
107
|
rpc :SQLQuery, ::Immudb::Schema::SQLQueryRequest, ::Immudb::Schema::SQLQueryResult
|
81
108
|
rpc :ListTables, ::Google::Protobuf::Empty, ::Immudb::Schema::SQLQueryResult
|