Skip to content

Commit

Permalink
Merge pull request rails#50468 from fractaledmind/ar-persistence-docs
Browse files Browse the repository at this point in the history
SQLite3 +returning+ documentation additions
  • Loading branch information
skipkayhil authored Dec 28, 2023
2 parents 354d1c4 + 77800d1 commit f481353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/lib/active_record/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def insert(attributes, returning: nil, unique_by: nil, record_timestamps: nil)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down Expand Up @@ -205,7 +205,7 @@ def insert!(attributes, returning: nil, record_timestamps: nil)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down Expand Up @@ -271,7 +271,7 @@ def upsert(attributes, **kwargs)
# ==== Options
#
# [:returning]
# (PostgreSQL and MariaDB only) An array of attributes to return for all successfully
# (PostgreSQL, SQLite3, and MariaDB only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
# or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
Expand Down

0 comments on commit f481353

Please sign in to comment.