Registry / database / postgresql-cursor

postgresql-cursor

JSON →
library0.6.10rbrubygemsunverified

Extension to ActiveRecord PostgreSQLAdapter for processing large result sets using a cursor.

gem install postgresql_cursor
INSTALL
IMPORT
SIG · POSTGRESQL-CURSOR
P
postgresql-cursor
databaserubyv0.6.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PostgresqlCursor
require 'postgresql_cursor'

Iterate over large PostgreSQL result sets without loading all rows into memory.

require 'postgresql_cursor' ActiveRecord::Base.connection.execute_cursor('SELECT * FROM large_table') do |row| puts row.inspect end
Debug
Known issues
gotchaRequires PostgreSQL adapter and ActiveRecord.
fix
Ensure you have the pg gem and ActiveRecord installed.
affects: >= 0.6.10
Upgrade
Version history
0.6.10latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
postgresql-cursor — gem install postgresql-cursor · libregistry