Sha256: 425e6eafcc7714a933345effab4f0b7d7731f35cb32b05efe35dfb35655cfd84

Contents?: true

Size: 981 Bytes

Versions: 26

Compression:

Stored size: 981 Bytes

Contents

sequel_bitemporal
=================

Bitemporal versioning for sequel.

Dependencies
------------

* Ruby >= 1.9.2
* gem "sequel", "~> 3.30.0"

Usage
-----

* Declare bitemporality inside your model:

        class HotelPriceVersion < Sequel::Model
        end

        class HotelPrice < Sequel::Model
          plugin :bitemporal, version_class: HotelPriceVersion
        end

* You can now create a hotel price with bitemporal versions:

        price = HotelPrice.new
        price.update_attributes price: 18

* To show all versions:

        price.versions

* To get current version:

        price.current_version

* Look at the specs for more usage patterns.

Build Status
------------

[![Build Status](http://travis-ci.org/TalentBox/sequel_bitemporal.png)](http://travis-ci.org/TalentBox/sequel_bitemporal)

License
-------

sequel_bitemporal is Copyright © 2011 TalentBox SA. It is free software, and may be redistributed under the terms specified in the LICENSE file.

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sequel_bitemporal-0.6.5 README.md
sequel_bitemporal-0.6.4 README.md
sequel_bitemporal-0.6.3 README.md
sequel_bitemporal-0.6.2 README.md
sequel_bitemporal-0.6.1 README.md
sequel_bitemporal-0.5.3 README.md
sequel_bitemporal-0.5.2 README.md
sequel_bitemporal-0.5.1 README.md
sequel_bitemporal-0.5.0 README.md
sequel_bitemporal-0.4.19 README.md
sequel_bitemporal-0.4.18 README.md
sequel_bitemporal-0.4.16 README.md
sequel_bitemporal-0.4.15 README.md
sequel_bitemporal-0.4.14 README.md
sequel_bitemporal-0.4.13 README.md
sequel_bitemporal-0.4.12 README.md
sequel_bitemporal-0.4.11 README.md
sequel_bitemporal-0.4.10 README.md
sequel_bitemporal-0.4.9 README.md
sequel_bitemporal-0.4.8 README.md