-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ConnectOptions to build a connection string from a builder #174
Comments
Here are some notes. https://gist.github.com/rust-play/8434ec3de09f776f4376972824c6190e cc @g-s-k |
One thought, though it may be off-base, is that associated types on a driver's So, for example... |
No, you're totally right. That is better. This would also keep it even more separate and allow for say SQLite to just use a I'm currently working on some refactoring efforts for postgres so I'll roll this into it. I wouldn't mind help on SQLite after I push up what I have. |
This is now been refactored to separate option types. We can accept additional database specific option knobs quite easily now. |
As of 0.3
Proposal
ConnectOptions
TryFrom<&str>
forConnectOptions
to parse URI and DSN connection stringsO: TryInto<ConnectOptions>
url
crate should not be used for parsing; in particular, a schema should not be a required pieceAdditional ideas:
PgConnectOptionsExt
would provide assl_mode
method to set thesslmode
parameter.The text was updated successfully, but these errors were encountered: