SurrealQL function.
Method Syntaxawait db.Run(name, version, args)
Arguments | Description | ||
---|---|---|---|
name required | The name of the SurrealQL function. | ||
version optional | The version of the SurrealQL function. | ||
args optional | The arguments used by the SurrealQL function. | ||
cancellationToken optional | 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]);