Class: Ductr::Postgres::BasicSource
- Inherits:
-
SequelBase::BasicSource
- Object
- SequelBase::BasicSource
- Ductr::Postgres::BasicSource
- Defined in:
- lib/ductr/postgres/basic_source.rb
Overview
A source control that yields rows usnig the PostgreSQL streaming feature, registered as :basic:
source :some_postgres_database, :basic def select_some_stuff(db) db[:items].limit(42) end
You can select a large number of rows, without worrying about pagination handling or memory usage.