You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
- Vendored sqlite is update to [v3.44.2](https://sqlite.org/releaselog/3_44_2.html). @flavorjones
8
8
9
+
### Added
10
+
11
+
-`Database.new` now accepts a `:default_transaction_mode` option (defaulting to `:deferred`), and `Database#transaction` no longer requires a transaction mode to be specified. This should allow higher-level adapters to more easily choose a transaction mode for a database connection. [#426]@masamitsu-murase
# Create a new Database object that opens the given file. If utf16
75
-
# is +true+, the filename is interpreted as a UTF-16 encoded string.
74
+
# Create a new Database object that opens the given file.
75
+
#
76
+
# Supported permissions +options+:
77
+
# - the default mode is <tt>READWRITE | CREATE</tt>
78
+
# - +:readonly+: boolean (default false), true to set the mode to +READONLY+
79
+
# - +:readwrite+: boolean (default false), true to set the mode to +READWRITE+
80
+
# - +:flags+: set the mode to a combination of SQLite3::Constants::Open flags.
81
+
#
82
+
# Supported encoding +options+:
83
+
# - +:utf16+: boolean (default false), is the filename's encoding UTF-16 (only needed if the filename encoding is not UTF_16LE or BE)
84
+
#
85
+
# Other supported +options+:
86
+
# - +:strict+: boolean (default false), disallow the use of double-quoted string literals (see https://www.sqlite.org/quirks.html#double_quoted_string_literals_are_accepted)
87
+
# - +:results_as_hash+: boolean (default false), return rows as hashes instead of arrays
88
+
# - +:type_translation+: boolean (default false), enable type translation
89
+
# - +:default_transaction_mode+: one of +:deferred+ (default), +:immediate+, or +:exclusive+. If a mode is not specified in a call to #transaction, this will be the default transaction mode.
76
90
#
77
-
# By default, the new database will return result rows as arrays
78
-
# (#results_as_hash) and has type translation disabled (#type_translation=).
0 commit comments