Skip to content

Releases: rainlabs/aerospike_native

Added UDF support

01 Aug 07:58
Compare
Choose a tag to compare

Open following examples:

  • query_udf.rb - apply udf function to query operation
  • scan_udf.rb - apply udf function to scan operation

Added Scan support

25 Jul 18:34
Compare
Choose a tag to compare

Let's try

20.times do |i|
  client.put(AerospikeNative::Key.new(namespace, set, i), {'number' => i, 'key' => 'number', 'testbin' => i.to_s})
end

records = client.scan(namespace, set).select(:number, :key).exec

Added Batch read operations

23 Jul 08:28
Compare
Choose a tag to compare

You can get full records, metadata or specified bins for each record now.
Available list of operations below:

records = client.batch.get_exists(keys) # get metadata
records = client.batch.get(keys)        # get records with all bins
records = client.batch.get(keys, bins)  # get records with specified bins

Support non-native types (bytes)

20 Jul 05:55
Compare
Choose a tag to compare

Now, you can store non-native types as bin value like float, arrays, hashes, or another objects. They will stored as bytes.

Rework query support and added nil bins

18 Jul 20:13
Compare
Choose a tag to compare

New query interface

records = client.query('test', 'test').where(number: [1, 7]).select([:number]).exec({'timeout' => 10})

Fix set nil as bin value

client.put(key, {'bin' => 1, 'test' => nil})

Added log level to stdout logger output

Added logging support and small fixes

14 Jul 08:24
Compare
Choose a tag to compare

Added AerospikeNative::Logger and support for external logger.

Now, you can specify logger and log level

AerospikeNative::Client.set_logger Rails.logger    # stdout by default
AerospikeNative::Client.set_log_level :info       # :debug by default

fixed AerospikeNative::Key.new with integer as value

Full policy support and fixes

12 Jul 08:35
Compare
Choose a tag to compare
  • Added all keys for each policy settings
  • Fixed some query bugs
  • Added rdoc comments

Query support

12 Jul 08:32
Compare
Choose a tag to compare

Added query where support