Skip to content

Releases: tarantool/crud

0.4.0

02 Dec 11:49

Choose a tag to compare

Bug fixes

  • Fixed typo in error for case when failed to get bucket_id
  • Fixed select by part of sharding key equal. Before this patch
    selecting by equality of partially specified multipart primary index
    value was misinterpreted as a selecting by fully specified key value.
  • Fixed iteration with pairs through empty space returned nil.

Features

  • truncate operation
  • iterator returned by pairs is compatible with luafun

0.3.0

26 Oct 16:10
c5fc183

Choose a tag to compare

Bug fixes

  • Fixed select by primary index name
  • Fixed error handling select with invalid type value
  • Get rid of performing map-reduce for single-replicaset operations

Features

  • Added crud-router Cartridge role
  • Implemented bucket_id option for all operations to specify custom bucket ID. For operations that accepts tuple/object bucket ID can be specified as tuple/object field as well as opts.bucket_id value.

Changes

  • CRUD-router functions are exposed to the global scope, so it's possible to call crud-operations via net.box.call
  • crud.init is removed in favor to crud.init_storage and crud.init_router

Release 0.2.0

07 Oct 13:26

Choose a tag to compare

Bug fixes

  • Select with == conditions bugs
  • Select with conditions by fields with collations

Features

  • CRUD operations:
  • replace
  • upsert

Changes

  • checks is disabled for internal functions by default
  • limit option is renamed to first
  • Reverse pagination (negative first) is supported
  • after option accepts a tuple
  • Output format for CRUD operations changed to set of rows and metadata
  • Insert/replace/upsert methods now accept tuples.
    To process unflattened objects *_object methods are introduced.
  • pairs accepts use_tomap flag to return tuples or objects

Release 0.1.0

23 Sep 09:42
97835b9

Choose a tag to compare

Added

  • Basic CRUD operations:

    • insert
    • get
    • select
    • update
    • delete
  • pairs function to iterate across the distributed space