SurrealQL statements against the database
db.select(thing) | Selects all records in a table, or a specific record |
db.live(table, diff) | Initiates a live query for a specified table name. |
db.subscribe_Live(query_uuid) | Returns a queue that receives notification messages from a running live query. |
db.kill(query_uuid) | Kill a running live query |
Mutation methods
Method | Description |
---|
db.create(thing,data) | Creates a record in the database |
db.insert(thing,data) | Inserts one or multiple records in the database |
db.update(thing,data) | Updates all records in a table, or a specific record |
db.merge(thing,data) | Modifies all records in a table, or a specific record |
db.patch(thing,data) | Applies JSON Patch changes to all records in a table, or a specific record |
db.delete(thing,data) | Deletes all records, or a specific record |
Authentication methods