Class: Ductr::Postgres::BasicDestination
- Inherits:
-
SequelBase::BasicDestination
- Object
- SequelBase::BasicDestination
- Ductr::Postgres::BasicDestination
- Defined in:
- lib/ductr/postgres/basic_destination.rb
Overview
A destination control that that writes rows one by one, registered as :basic:
destination :some_postgres_database, :basic
def select_some_stuff(db, row)
db[:items].where(id: row[:id]).update(**row)
end