import { Surreal } from "https://deno.land/x/surrealdb@v0.6.0/mod.ts";
Methods
Modifies all records in a table, or a specific record, in the database.
NOTE: This function merges the current document / record data with the specified data.
Deletes all records in a table, or a specific record, from the database.
Applies JSON Patch changes to all records, or a specific record, in the database.
NOTE: This function patches the current document / record data with the specified JSON Patch data.
Selects all records in a table, or a specific record, from the database.
Updates all records in a table, or a specific record, in the database.
NOTE: This function replaces the current document / record data with the specified data.
Static Properties
The Instance static singleton ensures that a single database instance is available across very large or complicated applications. With the singleton, only one connection to the database is instantiated, and the database connection does not have to be shared across components or controllers.