SQL Alter Database - aemadrid/orientdb GitHub Wiki

SQL Alter Database

The SQL Alter Database command update database settings.

Syntax

ALTER DATABASE <attribute-name> <attribute-value>

Where:

  • attribute-name between those supported:
  • STATUS database's status between:
  • IMPORTING to set importing status
  • DEFAULTCLUSTERID to set the default cluster. By default is 2 = "default"
  • TYPE to change the database type. This makes only sense when you want to switch from any database to a graph specifying "graph"
  • attribute-value attribute's value to set

Examples

Change the database type to "graph"

    ALTER DATABASE TYPE graph

To know more about other SQL commands look at SQL commands.