Skip to content

DavyJonesLocker/pg_array_parser

Repository files navigation

PgArrayParser

Build StatusCode Climate

Fast PostreSQL array parsing.

Installation

Add this line to your application's Gemfile:

gem'pg_array_parser'

And then execute:

$ bundle 

Or install it yourself as:

$ gem install pg_array_parser 

Usage

Include the PgArrayParser module, which provides the parse_pg_array method.

classMyPostgresParserincludePgArrayParserendparser=MyPostgresParser.newparser.parse_pg_array'{}'# => []parser.parse_pg_array'{1,2,3,4}'# => ["1", "2", "3", "4"]parser.parse_pg_array'{1,{2,3},4}'# => ["1", ["2", "3"], "4"]parser.parse_pg_array'{some,strings that,"May have some ,\'s"}'# => ["some", "strings that", "May have some ,'s"]

Authors

Dan McClaintwitter

Versioning

This gem follows Semantic Versioning

Want to help?

Stable branches are created based upon each minor version. Please make pull requests to specific branches rather than master.

Please make sure you include tests!

Don't use tabs to indent, two spaces are the standard.

Legal

DockYard, LLC © 2012

@dockyard

Licensed under the MIT license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7