• Start

Languages

/

.NET

/

Methods

Run

The .NET SDK for SurrealDB enables simple and advanced querying of a remote or embedded database.

Runs a SurrealQL function.

Method Syntax
await db.Run(name, version, args)

Arguments

Description

name

The name of the SurrealQL function.

version

The version of the SurrealQL function.

args

The arguments used by the SurrealQL function.

cancellationToken

The cancellationToken enables graceful cancellation of asynchronous operations.

DateTime now = await db.Run<DateTime>("time::now");

string result = await db.Run<string>("string::repeat", ["test", 3]);

Was this page helpful?