Connects to a database endpoint. The URL scheme selects the transport (http, https, ws, or wss).
Arguments
| Argument | Description |
|---|---|
endpoint | The database endpoint to connect to, ending in /rpc. |
connect_options | An optional ConnectOptions carrying the namespace, database, credentials, TLS setting, and wire format. |
Example usage
connect() returns a Bool.