Skip to content

Commit 77800d1

Browse files
fractaledmindOuYangJinTing
and
OuYangJinTing
committed
Update documentation for ActiveRecord persistence methods that accept +returning+ option to note that this is available for SQLite3 adapter as well
Co-authored-by: OuYangJinTing <[email protected]>
1 parent 354d1c4 commit 77800d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/persistence.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def insert(attributes, returning: nil, unique_by: nil, record_timestamps: nil)
115115
# ==== Options
116116
#
117117
# [:returning]
118-
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
118+
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
119119
# inserted records, which by default is the primary key.
120120
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
121121
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
@@ -205,7 +205,7 @@ def insert!(attributes, returning: nil, record_timestamps: nil)
205205
# ==== Options
206206
#
207207
# [:returning]
208-
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
208+
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
209209
# inserted records, which by default is the primary key.
210210
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
211211
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
@@ -271,7 +271,7 @@ def upsert(attributes, **kwargs)
271271
# ==== Options
272272
#
273273
# [:returning]
274-
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
274+
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
275275
# inserted records, which by default is the primary key.
276276
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
277277
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL

0 commit comments

Comments
 (0)