Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for an :after_connect option when connection, called with…
… each new connection made This is useful for customizations you want set on every connection that Sequel doesn't already support. For example, on PostgreSQL if you wanted to set the schema_search_path on every connection: DB = Sequel.postgres('dbname', :after_connect=>(proc do |conn| conn.execute('SET search_path TO schema1,schema2') end))
- Loading branch information
1 parent
789b707
commit df6f285
Showing
4 changed files
with
16 additions
and
2 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
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