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
Instead the user, password, host, db name, and any other parameters should be passed in to the Connection initializer as keyword args, possibly augmented with ENV and defaults, and passed as keyword arguments to Sequel.
Using a connection string/URI as the main parameter shifts the responsibility for percent-escaping credentials onto the caller.
Instead the user, password, host, db name, and any other parameters should be passed in to the
Connection
initializer as keyword args, possibly augmented withENV
and defaults, and passed as keyword arguments to Sequel.Using a connection string/URI as the main parameter shifts the responsibility for percent-escaping credentials onto the caller.
See https://github.com/hathitrust/rights_database/blob/main/lib/rights_database/db.rb for a representative implementation.
The connection string may be maintained for backward compatibility but should be deprecated and should loudly say so if possible.
The text was updated successfully, but these errors were encountered: