connect()
Connects to a local or remote database endpoint.
Arguments
| Argument | Description |
|---|---|
endpoint
| The database endpoint to connect to. |
Example usage
The .connect() method will usually take a String or a type that implements Into<String>. Note that the final .connect() with a Config is possible because of the implementation impl<T> IntoEndpoint for (T, Config)
where T: Into<String>.