-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Database#load_extension supports an extension specifier
interface _ExtensionSpecifier def sqlite_extension_path: () → String end So when passed an object that responds to `#sqlite_extension_path`, that method's return value is used as the filesystem path for the extension, allowing a calling convention like: db.load_extension(SQLean::VSV) where prior to this change that would need to be the more verbose: db.load_extension(SQLean::VSV.sqlite_extension_path) I think supporting this calling convention will also make it easier to inject sqlite extensions via a Rails database config file. Stay tuned.
- Loading branch information
1 parent
e609300
commit ceb76cc
Showing
5 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ exclude: | |
- "vendor" | ||
- "ports" | ||
- "tmp" | ||
- "pkg" | ||
hyperlink_all: false | ||
line_numbers: false | ||
locale: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module SQLite3 | ||
# (String) the version of the sqlite3 gem, e.g. "2.1.1" | ||
VERSION = "2.3.0" | ||
VERSION = "2.4.0.dev" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters