Module: Sequel::Postgres::Streaming::AdapterMethods
- Defined in:
- lib/sequel/extensions/pg_streaming.rb
Instance Attribute Summary collapse
-
#single_row_mode ⇒ Object
Whether the next query on this connection should use single_row_mode.
Instance Method Summary collapse
-
#send_prepared_statement(ps_name, args) ⇒ Object
Send the prepared statement on this connection using single row mode.
Instance Attribute Details
#single_row_mode ⇒ Object
Whether the next query on this connection should use single_row_mode.
63 64 65 |
# File 'lib/sequel/extensions/pg_streaming.rb', line 63 def single_row_mode @single_row_mode end |
Instance Method Details
#send_prepared_statement(ps_name, args) ⇒ Object
Send the prepared statement on this connection using single row mode.
67 68 69 70 71 72 |
# File 'lib/sequel/extensions/pg_streaming.rb', line 67 def send_prepared_statement(ps_name, args) send_query_prepared(ps_name, args) set_single_row_mode block self end |