Skip to content

Commit 47f904e

Browse files
committed
doc: document how to use extensions in a rails app
[skip ci]
1 parent 59c30ec commit 47f904e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/sqlite3/database.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ module SQLite3
7474
# #enable_load_extension; however it is still necessary to call #enable_load_extensions before any
7575
# subsequently invocations of #load_extension on the initialized Database object.
7676
#
77+
# You can load extensions in a Rails application by using the +extensions:+ configuration option:
78+
#
79+
# # config/database.yml
80+
# development:
81+
# adapter: sqlite3
82+
# extensions:
83+
# - .sqlpkg/nalgeon/crypto/crypto.so # a filesystem path
84+
# - <%= SQLean::UUID.to_path %> # or ruby code returning a path
85+
#
7786
class Database
7887
attr_reader :collations
7988

0 commit comments

Comments
 (0)