.Live[T](table, diff)
Initiate a live query from a SurrealQL statement.
Method Syntaxdb.Live[UUID](table, diff)
Arguments | Description | ||
---|---|---|---|
sql required | Specifies the SurrealQL statements. | ||
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations. |
const string table = "person"; await using var liveQuery = await db.LiveQuery<Person>($"LIVE SELECT * FROM type::table({table});"); // Consume the live query...