Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sequel-hstore-translate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequel-hstore-translate

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 03 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc