SurrealQL statements against the database
$db->select(thing)
Function | 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 |
Function | Description |
---|---|
$db->signup(vars) | Signs this connection up to a specific authentication scope |
$db->signin(vars) | Signs this connection in to a specific authentication scope |
$db->invalidate() | Invalidates the authentication for the current connection |
$db->authenticate(token) | Authenticates the current connection with a JWT token |
$db->info() | Returns the record of an authenticated scope user |