Sha256: 36c4b58b50d21bdd13b78432632f9697ac5a9ca71203b9d0ba4e6d75581679fc

Contents?: true

Size: 997 Bytes

Versions: 11

Compression:

Stored size: 997 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](https://travis-ci.org/TalentBox/sequel_bitemporal.png?branch=master)](https://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

11 entries across 11 versions & 1 rubygems

Version Path
sequel_bitemporal-0.7.0 README.md
sequel_bitemporal-0.6.15 README.md
sequel_bitemporal-0.6.14 README.md
sequel_bitemporal-0.6.13 README.md
sequel_bitemporal-0.6.12 README.md
sequel_bitemporal-0.6.11 README.md
sequel_bitemporal-0.6.10 README.md
sequel_bitemporal-0.6.9 README.md
sequel_bitemporal-0.6.8 README.md
sequel_bitemporal-0.6.7 README.md
sequel_bitemporal-0.6.6 README.md