Method: TableCopy::PG::Destination#max_sequence
- Defined in:
- lib/table_copy/pg/destination.rb
#max_sequence ⇒ Object
58 59 60 61 62 63 64 |
# File 'lib/table_copy/pg/destination.rb', line 58 def max_sequence return unless sequence_field with_conn do |conn| row = conn.exec(max_sequence_sql).first row['max'] if row end end |