Sha256: 8bb1c1ae15c819e62df663f7e73a25f61de453e0bc81af673796dccf58f77911

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# postgres-copy

This Gem will enable your AR models to use the PostgreSQL COPY command to import/export data in CSV format.
If you need to tranfer data between a PostgreSQL database and CSV files, the PostgreSQL native CSV parser
will give you a greater performance than using the ruby CSV+INSERT commands.
I have not found time to make accurate benchmarks, but in the use scenario where I have developed the gem
I have had a four-fold performance gain.

## Install

    gem install postgres-copy

## Usage

The gem will add two aditiontal class methods to ActiveRecord::Base as a monkey patch (I'll change this soon):

* pg_copy_to (description yet to be added)
* pg_copy_from (description yet to be added)


## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

## Copyright

Copyright (c) 2011 Diogo Biazus. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-postgres-copy-0.3.6 README.md