SESSION RESET command¶
The SESSION RESET command resets the schema, graph, or temporary graph in the current session, and deletes all parameters set in the session.
- To view the schema in the current session, use SHOW CURRENT_SCHEMA.
- To view the graph or temporary graph in the current session, use SHOW CURRENT_GRAPH.
- To view the parameters set in the current session, use SHOW PARAMETERS.
Syntax¶
- session_reset_command
session_reset_command ::=
'SESSION' 'RESET' (
'SCHEMA'
| 'GRAPH'
| parameter_name (',' parameter_name)*
| 'ALL PARAMETERS'
)
Parameters¶
SCHEMA¶
Resets the schema in the current session.
- If no home schema is set for the current user, the schema is reset to
/default_schema. - If an accessible home schema is set for the current user, the schema is reset to that home schema.
- If the home schema does not exist or the current user does not have
USAGEon it, the schema in the current session is cleared.
GRAPH¶
Resets the graph in the current session.
- If no home graph is set for the current user, the graph or the temporary graph in the current session is reset to an unassigned state, meaning the session is not associated with any graph or temporary graph.
- If an accessible home graph is set for the current user, the graph in the current session is reset to that home graph.
- If the home graph does not exist or the current user does not have
USAGEon its parent schema, the graph in the current session is cleared.
For more information about Schema USAGE, see Schema access control.
parameter_name¶
Deletes the specified parameter set in the current session.
ALL PARAMETERS¶
Deletes all parameters set in the current session.
Examples¶
The following examples are based on the session settings introduced in the Examples section of SESSION SET.
Reset the schema for the current session¶
SESSION RESET SCHEMA
Reset the graph or temporary graph for the current session¶
SESSION RESET GRAPH
Delete specified parameters¶
SESSION RESET $i_1, $i_2
Delete all parameters¶
SESSION RESET ALL PARAMETERS