INFO
INFO statement
The INFO statement.
INFO FOR [
ROOT
| NS | NAMESPACE
| DB | DATABASE
| SCOPE @scope
| TABLE @table
];
Example usage
The INFO command outputs information about the setup of the SurrealDB system. There are a number of different INFO commands for retrieving the configuration at the different levels of the database.
System information
The top-level ROOT command returns information regarding the namespaces which exists within the SurrealDB system.
INFO FOR ROOT;
Namespace information
The NS or NAMESPACE command returns information regarding the users, tokens, and databases under the Namespace in use.
INFO FOR NS;
Database information
The DB or DATABASE command returns information regarding the users, tokens, and scopes, and tables under the Database in use.
INFO FOR DB;
Scope information
The SCOPE command returns information regarding the tokens configured under a specific Scope.
INFO FOR SCOPE user;
Table information
The TABLE command returns information regarding the events, fields, indexes, and foreign table configurations on a specific Table.
INFO FOR TABLE user;