| CARVIEW |
Postgres(Ruby extension library)
Download
Release version ruby-postgres-0.7.1.tar.gz(2003/01/06)
Snapshot gem ruby-postgres-0.7.1.2005.12.21.gem (2005/12/21)
Snapshot version ruby-postgres-20051221.tar.gz (2005/12/21)
Snapshot Win32 gem ruby-postgres-0.7.1.2005.12.21-mswin32.gem (2005/12/21)
What is postgres?
This is the extension library to access a PostgreSQL database from Ruby. This library works with PostgreSQL 6.4 - 8.1; probably works with 6.3 or earlier with slight modification, but not tested at all.
Requirements
Ruby 1.3.4 - 1.8.4.
PostgreSQL 6.4 - 8.1 installed.
How to install ?
Follow instruction below to compile and install:
ruby extconf.rb
make
su (if necessary)
make install
You may need to specify the directory name for the include files and the -lpq library by using
--with-pgsql-include-dir=<include file directory>
--with-pgsql-lib-dir=<library directory>
For example:
ruby extconf.rb --with-pgsql-include-dir=/usr/local/pgsql/include \
--with-pgsql-lib-dir=/usr/local/pgsql/lib
requirement PostgreSQL file
- libpq library (ex. libpq.so)
- libpq-fe.h
- libpq/libpq-fs.h (Large object support)
- postgres_ext.h
How to use ?
You need to specify:
require "postgres"
at the top of your script.
See reference for detail (Documents the latest snapshot release)
Acknowledgement
We are thankful to the people at ruby-list and ruby-dev mailing lists. And to the people who developed PostgreSQL.
Copying
This library is copyrighted by its authors; Yukihiro Matsumoto, and Eiji Matsumoto.
You can redistribute This library and/or modify it under the same term of Ruby. License of Ruby is included with Ruby distribution in the file "README".
Authors
Yukihiro Matsumoto
Author of Ruby
Eiji Matsumoto
One of users who loves Ruby
Noboru Saitou
Previous maintainer
Dave Lee
Current maintainer
mailto: Dave Lee