No commit activity in last 3 years
No release in over 3 years
Sequel version of Hstore Translate gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 0
~> 10.0
~> 3.0

Runtime

~> 4.3
 Project Readme

Sequel::Hstore::Translate

This gem is port of https://github.com/Leadformance/hstore_translate adapted for sequel.

Installation

Add this line to your application's Gemfile:

gem 'sequel-hstore-translate'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sequel-hstore-translate

Usage

Suppose you have following table

DB.create_table(:test_mods, temp: true) do
  primary_key :id
  column :text_translations, 'public.hstore'
end

Then you should use the plugin this way:

class TestMod < Sequel::Model
  plugin :hstore_translate, :text # one or an array of columns with translations
end

At the moment translations fallback functionality hadn't been implemented.

Development

Pending...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/fiscal-cliff/sequel-hstore-translate.