struct

Mongo::Session::TransactionOptions

Inherits Struct / Value / Object

Constructors

new(read_concern : ReadConcern | Nil = nil, write_concern : WriteConcern | Nil = nil, read_preference : ReadPreference | Nil = nil, max_commit_time_ms : Int64 | Nil = nil)
Source

Instance methods

clone
Source
copy_with(read_concern _read_concern = @read_concern, write_concern _write_concern = @write_concern, read_preference _read_preference = @read_preference, max_commit_time_ms _max_commit_time_ms = @max_commit_time_ms)
Source
max_commit_time_ms

The maximum amount of time to allow a single commitTransaction command to run.

read_concern

The readConcern to use for this transaction.

read_preference

The readPreference to use for this transaction.

write_concern

The writeConcern to use for this transaction.