A PostgreSQL client library for Ruby https://github.com/ged/ruby-pg
Go to file
Michael Granger 17eb6a7d06 Converted to Hoe
--HG--
rename : README.OS_X => README.OS_X.md
rename : README.ja => README.ja.md
rename : README => README.md
rename : README.windows => README.windows.md
2011-10-07 07:42:14 -07:00
ext Converted to Hoe 2011-10-07 07:42:14 -07:00
lib fixing unused variable warnings for ruby 1.9.3 2011-04-22 11:52:09 -05:00
misc Adding a test file for duplicating the OpenSSL linking problem 2011-09-01 14:59:07 -07:00
sample Added an example of PGconn#get_copy_data. 2011-09-16 14:07:20 -07:00
spec Fixed executable name in spec shebangs (refs #74) 2011-05-30 22:45:31 -07:00
.gemtest Converted to Hoe 2011-10-07 07:42:14 -07:00
.hgignore Ignore the yard cache, handle missing rake-compiler for non-compile-related tasks. 2010-12-01 12:20:22 -08:00
.hgsigs Added signature for changeset 24aa7899c696 2011-04-18 17:27:53 -07:00
.hgtags Added tag v0.11.0 for changeset 3cb8e57c6c80 2011-04-18 17:27:53 -07:00
.irbrc Updated build system 2010-01-03 11:40:46 -08:00
BSD * tried to make it easier to find the license information 2008-03-11 21:35:52 +00:00
Contributors Converted to Hoe 2011-10-07 07:42:14 -07:00
GPL Split 'ruby-pg' module and 'postgres' module 2008-01-07 22:16:13 +00:00
History.md Converted to Hoe 2011-10-07 07:42:14 -07:00
LICENSE Split 'ruby-pg' module and 'postgres' module 2008-01-07 22:16:13 +00:00
Manifest.txt Converted to Hoe 2011-10-07 07:42:14 -07:00
README.OS_X.md Converted to Hoe 2011-10-07 07:42:14 -07:00
README.ja.md Converted to Hoe 2011-10-07 07:42:14 -07:00
README.md Converted to Hoe 2011-10-07 07:42:14 -07:00
README.windows.md Converted to Hoe 2011-10-07 07:42:14 -07:00
Rakefile Converted to Hoe 2011-10-07 07:42:14 -07:00

README.md

pg

Description

Pg is the Ruby interface to the PostgreSQL RDBMS.

It works with PostgreSQL 8.2 and later.

Requirements

  • Ruby 1.8.7-p174 or later.
  • PostgreSQL 8.2.x or later installed.

It may work with earlier versions as well, but those are not regularly tested.

How To Install

Install via RubyGems:

gem install pg

You may need to specify the path to the 'pg_config' program installed with Postgres:

gem install pg -- --with-pg-config=<path to pg_config>

For example, on a Mac with PostgreSQL installed via MacPorts (port install postgresql90):

gem install pg -- \
  --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config

See README.OS_X.md for more information about installing under MacOS X, and README.windows.md for Windows build/installation instructions.

Contributing

To report bugs, suggest features, or check out the source with Mercurial, check out the project page. If you prefer Git, there's also a Github mirror.

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs, and generate the API documentation.

Copying

This library is copyrighted by the authors.

Authors:

Thanks to:

Maintainers:

You may redistribute this software under the terms of the Ruby license, included in the file "LICENSE". The Ruby license also allows distribution under the terms of the GPL, included in the file "GPL".

Portions of the code are from the PostgreSQL project, and are distributed under the terms of the BSD license, included in the file "BSD".

Portions copyright LAIKA, Inc.

Acknowledgments

We are thankful to the people at the ruby-list and ruby-dev mailing lists. And to the people who developed PostgreSQL.