SurrealQL statements against the database
db.RawQuery<T>(sql, vars) | Runs a set of SurrealQL statements against the database, based on a raw SurrealQL query |
db.Select<T>(thing) | Selects all records in a table, or a specific record |
db.LiveQuery<T>(sql) | Initiate a live query from a SurrealQL statement |
db.LiveRawQuery<T>(sql) | Initiate a live query from a SurrealQL statement, based on a raw SurrealQL query |
db.LiveTable<T>(table, diff) | Initiate a live query from a table |
db.ListenLive<T>(queryUuid) | Listen responses from an existing live query |
db.Kill(queryUuid) | Kill a running live query |
Mutation methods
Method | Description |
---|
db.Create<T>(thing, data) | Creates a record in the database |
db.Insert<T>(thing, data) | Inserts one or multiple records in the database |
db.Update<T>(thing, data) | Updates all records in a table, or a specific record |
db.Upsert<T>(thing, data) | Creates or updates a specific record |
db.Merge<T>(thing, data) | Modifies all records in a table, or a specific record |
db.Patch<T>(thing, data) | Applies JSON Patch changes to all records in a table, or a specific record |
db.Delete(thing) | Deletes all records, or a specific record |
Authentication methods