SurrealDB Docs Logo

Enter a search query

.Connect()

Connects the client to the underlying endpoint, also improving performance to avoid cold starts.

Method Syntax
await db.Connect()

Arguments

ArgumentsDescription
cancellationToken optional

The cancellationToken enables graceful cancellation of asynchronous operations.

Example usage

await db.Connect();

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install