Method: Sequel::Postgres::DatasetMethods#insert_select_sql
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
#insert_select_sql(*values) ⇒ Object
The SQL to use for an insert_select, adds a RETURNING clause to the insert unless the RETURNING clause is already present.
2285 2286 2287 2288 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 2285 def insert_select_sql(*values) ds = opts[:returning] ? self : returning ds.insert_sql(*values) end |