Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lib/mongo/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,21 @@ def explicit?
# @example Start a new transaction
# session.start_transaction(options)
#
# @param [ Hash ] options The options for the transaction being started.
#
# @option options [ Hash ] read_concern The read concern options hash, with the following
# optional keys:
# - *:level* -- the read preference level as a symbol; valid values are *:local*, *:majority*,
# and *:snapshot*
# - *:after_cluster_time* -- the cluster time BSON::Document or hash specifying which cluster
# time reads should occur after
# @option options [ Hash ] :write_concern The write concern options. Can be :w =>
# Integer|String, :fsync => Boolean, :j => Boolean.
# @option options [ Hash ] :read The read preference options. The hash may have the following
# items:
# - *:mode* -- read preference specified as a symbol; the only valid value is
# *:primary*.
#
# @raise [ InvalidTransactionOperation ] If a transaction is already in
# progress or if the write concern is unacknowledged.
#
Expand Down