ali_ots 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37a5d22183cd846cd63e2e6757483bb1b6d1ff3b
4
- data.tar.gz: 4bcff8d636cfada5927451a319c1a4661d4e5f73
3
+ metadata.gz: 4c338769e4ced44e55b25257752e797165f3e7b2
4
+ data.tar.gz: c7b074ca39ab54563ca33dadefa1c4d8a9a01954
5
5
  SHA512:
6
- metadata.gz: 49d048a417ceab7d76f3fbfe0d8857d334c32db178df7f76f5f58004ba291e0c16a93bf4b2921990e5942bf4d9fd51c584604b0c29986ffb0b39baebcc388e34
7
- data.tar.gz: 757e2b791875c3970f1472cf810570d74e5cf529dfbc4f54c47af4a7713665f5a0efaba8547951efdf499753d1608f222fd2c0aa72dd666a854c5e5b4c862dac
6
+ metadata.gz: 7c382a6742fdf689944bac34e32e37fe2f62f924bd974e8daf93c29347998d5c4507e2e17d7ecce515c7996638bcca4071222bb7be139af048f2278f54654073
7
+ data.tar.gz: c4daf1497ed4006dc36ba18ca121e9afa09f586b0b03e4165e6608f8a2a44944432c43a43579b6c7ae94da74773ea39c8a66922acfb68fcfdf113c6091e7d314
@@ -137,7 +137,7 @@ module AliOts
137
137
  # inclusive_start_primary_keys = [AliOts::Metas::Column.new(name: "id", value: AliOts::Metas::ColumnValue.new(type: AliOts::Metas::Enums::ColumnType::INTEGER, v_int: 1))]
138
138
  # exclusive_end_primary_keys = [AliOts::Metas::Column.new(name: "id", value: AliOts::Metas::ColumnValue.new(type: AliOts::Metas::Enums::ColumnType::INTEGER, v_int: 999))]
139
139
  #
140
- # client.get_range("myTable", direction, inclusive_start_primary_keys, exclusive_end_primary_keys)
140
+ # client.get_range("myTable", inclusive_start_primary_keys, exclusive_end_primary_keys, direction)
141
141
  def get_range(table_name, inclusive_start_primary_keys, exclusive_end_primary_keys, direction = AliOts::Metas::Enums::Direction::FORWARD, columns = [], limit = nil)
142
142
  request_meta = AliOts::Metas::GetRangeRequest.new(table_name: table_name, direction: direction, inclusive_start_primary_key: inclusive_start_primary_keys, exclusive_end_primary_key: exclusive_end_primary_keys, columns_to_get: columns, limit: limit)
143
143
 
@@ -4,6 +4,7 @@ module AliOts
4
4
  #表示一列的数据类型,枚举类型。
5
5
  #INF_MIN和INF_MAX为GetRange操作专用类型,value的type为INF_MIN的Column为小于其它所有Column,value的type为INF_MAX的Column大于其它所有Column。
6
6
  class ColumnType < ::Protobuf::Enum
7
+ set_option :allow_alias
7
8
  define :INF_MIN, 0
8
9
  define :INF_MAX, 1
9
10
  define :INTEGER, 2
@@ -1,3 +1,3 @@
1
1
  module AliOts
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/ali_ots.rb CHANGED
@@ -2,6 +2,7 @@ require 'logger'
2
2
  require 'protobuf'
3
3
  require 'faraday'
4
4
  require 'addressable/uri'
5
+ require 'exception'
5
6
 
6
7
  require 'ali_ots/client'
7
8
  require 'ali_ots/connection'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ali_ots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Backkom