swcdb 0.5.9.0 → 0.5.10.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25616d077a484765ee804a22f367ebde951f1c2ab5548a9bae4a7618ea860092
|
4
|
+
data.tar.gz: e920057fc1dc9a712d506c5c42f03f1f36f65074436d48cde3b61e6a2c8a9f68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809705f9a5d47f4f398ff264bda1d157698e86459e09fe63311fac24fee608a70cd74b899f0cf3e33af26fab827cbcc7e1d0fd614121af31073f491870947954
|
7
|
+
data.tar.gz: ef93b99268f6fa697014de9e1bc6bc1c639babda3aad9824efe13a00b56c4e37071da9e2e1945d34bbba7570d6c66268782d3c6710ee21e5b68c7ba7235608d4
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.17.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -233,6 +233,21 @@ module Swcdb
|
|
233
233
|
return
|
234
234
|
end
|
235
235
|
|
236
|
+
def update_by_types(plain, serial, updater_id)
|
237
|
+
send_update_by_types(plain, serial, updater_id)
|
238
|
+
recv_update_by_types()
|
239
|
+
end
|
240
|
+
|
241
|
+
def send_update_by_types(plain, serial, updater_id)
|
242
|
+
send_message('update_by_types', Update_by_types_args, :plain => plain, :serial => serial, :updater_id => updater_id)
|
243
|
+
end
|
244
|
+
|
245
|
+
def recv_update_by_types()
|
246
|
+
result = receive_message(Update_by_types_result)
|
247
|
+
raise result.e unless result.e.nil?
|
248
|
+
return
|
249
|
+
end
|
250
|
+
|
236
251
|
def mng_column(func, schema)
|
237
252
|
send_mng_column(func, schema)
|
238
253
|
recv_mng_column()
|
@@ -519,6 +534,17 @@ module Swcdb
|
|
519
534
|
write_result(result, oprot, 'update_serial', seqid)
|
520
535
|
end
|
521
536
|
|
537
|
+
def process_update_by_types(seqid, iprot, oprot)
|
538
|
+
args = read_args(iprot, Update_by_types_args)
|
539
|
+
result = Update_by_types_result.new()
|
540
|
+
begin
|
541
|
+
@handler.update_by_types(args.plain, args.serial, args.updater_id)
|
542
|
+
rescue ::Swcdb::Thrift::Gen::Exception => e
|
543
|
+
result.e = e
|
544
|
+
end
|
545
|
+
write_result(result, oprot, 'update_by_types', seqid)
|
546
|
+
end
|
547
|
+
|
522
548
|
def process_mng_column(seqid, iprot, oprot)
|
523
549
|
args = read_args(iprot, Mng_column_args)
|
524
550
|
result = Mng_column_result.new()
|
@@ -1106,6 +1132,45 @@ module Swcdb
|
|
1106
1132
|
::Thrift::Struct.generate_accessors self
|
1107
1133
|
end
|
1108
1134
|
|
1135
|
+
class Update_by_types_args
|
1136
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1137
|
+
PLAIN = 1
|
1138
|
+
SERIAL = 2
|
1139
|
+
UPDATER_ID = 3
|
1140
|
+
|
1141
|
+
FIELDS = {
|
1142
|
+
# The PLAIN Cells to update
|
1143
|
+
PLAIN => {:type => ::Thrift::Types::MAP, :name => 'plain', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCell}}},
|
1144
|
+
# The SERIAL Cells to update
|
1145
|
+
SERIAL => {:type => ::Thrift::Types::MAP, :name => 'serial', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellSerial}}},
|
1146
|
+
# The Updater ID to use for write
|
1147
|
+
UPDATER_ID => {:type => ::Thrift::Types::I64, :name => 'updater_id', :default => 0}
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
def struct_fields; FIELDS; end
|
1151
|
+
|
1152
|
+
def validate
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
::Thrift::Struct.generate_accessors self
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
class Update_by_types_result
|
1159
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1160
|
+
E = 1
|
1161
|
+
|
1162
|
+
FIELDS = {
|
1163
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
def struct_fields; FIELDS; end
|
1167
|
+
|
1168
|
+
def validate
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
::Thrift::Struct.generate_accessors self
|
1172
|
+
end
|
1173
|
+
|
1109
1174
|
class Mng_column_args
|
1110
1175
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1111
1176
|
FUNC = 1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.17.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -10,6 +10,10 @@ require 'swcdb/thrift/gen/service_types'
|
|
10
10
|
module Swcdb
|
11
11
|
module Thrift
|
12
12
|
module Gen
|
13
|
+
TIMESTAMP_NULL = -9223372036854775807
|
14
|
+
|
15
|
+
TIMESTAMP_AUTO = -9223372036854775806
|
16
|
+
|
13
17
|
FU_CTRL_DEFAULT = 0
|
14
18
|
|
15
19
|
FU_CTRL_NO_ADD_FIELD = 1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.17.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -112,8 +112,12 @@ module Swcdb
|
|
112
112
|
FOSBS = 17
|
113
113
|
# [ <- ] : -fosupset [fosps] (eq/full ordered superset)
|
114
114
|
FOSPS = 18
|
115
|
-
|
116
|
-
|
115
|
+
# [ :< ] : -fip (fraction include prior)
|
116
|
+
FIP = 19
|
117
|
+
# [ : ] : -fi (fraction include)
|
118
|
+
FI = 20
|
119
|
+
VALUE_MAP = {0 => "NONE", 1 => "PF", 2 => "GT", 3 => "GE", 4 => "EQ", 5 => "LE", 6 => "LT", 7 => "NE", 8 => "RE", 9 => "VGT", 10 => "VGE", 11 => "VLE", 12 => "VLT", 13 => "SBS", 14 => "SPS", 15 => "POSBS", 16 => "POSPS", 17 => "FOSBS", 18 => "FOSPS", 19 => "FIP", 20 => "FI"}
|
120
|
+
VALID_VALUES = Set.new([NONE, PF, GT, GE, EQ, LE, LT, NE, RE, VGT, VGE, VLE, VLT, SBS, SPS, POSBS, POSPS, FOSBS, FOSPS, FIP, FI]).freeze
|
117
121
|
end
|
118
122
|
|
119
123
|
module SpecFlagsOpt
|
@@ -200,7 +204,7 @@ module Swcdb
|
|
200
204
|
BY_UNIQUE = 6
|
201
205
|
# Supported by field-types: LIST_BYTES, LIST_INT64. The field value items have CTRL_VALUE_SET/DEL OP and Comparator
|
202
206
|
BY_COND = 7
|
203
|
-
# Supported by field-types: LIST_BYTES, LIST_INT64. The field value is with Postion
|
207
|
+
# Supported by field-types: LIST_BYTES, LIST_INT64. The field value is with Postion and OP in items
|
204
208
|
BY_INDEX = 8
|
205
209
|
VALUE_MAP = {0 => "REPLACE", 1 => "APPEND", 2 => "PREPEND", 3 => "INSERT", 4 => "OVERWRITE", 5 => "ERASE", 6 => "BY_UNIQUE", 7 => "BY_COND", 8 => "BY_INDEX"}
|
206
210
|
VALID_VALUES = Set.new([REPLACE, APPEND, PREPEND, INSERT, OVERWRITE, ERASE, BY_UNIQUE, BY_COND, BY_INDEX]).freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kashirin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.17.0
|
27
27
|
description: The SWC-DB Ruby module 'swcdb'
|
28
28
|
email: kashirin.alex@gmail.com
|
29
29
|
executables: []
|