import { default } from "https://deno.land/x/surrealdb@v1.0.0-beta.2/mod.ts";
Methods
Send a raw message to the SurrealDB instance
Creates a record in the database.
Deletes all records in a table, or a specific record, from the database.
Selects everything from the $auth variable.
SELECT * FROM $auth;
Make sure the user actually has the permission to select their own record, otherwise you'll get back an empty result.
Inserts one or multiple records in the database.
Start a live query and listen for the responses
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.
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.
Runs a set of SurrealQL statements against the database.
Runs a set of SurrealQL statements against the database.
Selects all records in a table, or a specific record, from the database.
Listen for live query responses by it's uuid
Listen for live query responses by it's uuid
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.
Switch to a specific namespace and database.
Methods
Send a raw message to the SurrealDB instance
Creates a record in the database.
Deletes all records in a table, or a specific record, from the database.
Selects everything from the $auth variable.
SELECT * FROM $auth;
Make sure the user actually has the permission to select their own record, otherwise you'll get back an empty result.
Inserts one or multiple records in the database.
Start a live query and listen for the responses
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.
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.
Runs a set of SurrealQL statements against the database.
Runs a set of SurrealQL statements against the database.
Selects all records in a table, or a specific record, from the database.
Listen for live query responses by it's uuid
Listen for live query responses by it's uuid
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.
Switch to a specific namespace and database.