Class: Ductr::Postgres::BasicDestination

Inherits:
SequelBase::BasicDestination
  • Object
show all
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