Sha256: 7d9aba65e7970bf75e2229d7b6f70d3369002f6962acb048369fa6330267ee49

Contents?: true

Size: 970 Bytes

Versions: 12

Compression:

Stored size: 970 Bytes

Contents

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

[![Build Status](https://travis-ci.org/TalentBox/sequel_bitemporal.png?branch=master)](https://travis-ci.org/TalentBox/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.

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

12 entries across 12 versions & 1 rubygems

Version Path
sequel_bitemporal-0.8.6 README.md
sequel_bitemporal-0.8.5 README.md
sequel_bitemporal-0.8.4 README.md
sequel_bitemporal-0.8.3 README.md
sequel_bitemporal-0.8.2 README.md
sequel_bitemporal-0.8.1 README.md
sequel_bitemporal-0.8.0 README.md
sequel_bitemporal-0.7.8 README.md
sequel_bitemporal-0.7.6 README.md
sequel_bitemporal-0.7.4 README.md
sequel_bitemporal-0.7.3 README.md
sequel_bitemporal-0.7.1 README.md