.Version()Retrieves the version of the SurrealDB instance.
Method Syntaxawait db.Version()
| Arguments | Description | ||
|---|---|---|---|
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations. |
string version = await db.Version(); // Will return "surrealdb-1.1.1"