Console - LIST CLASSES

Displays all configured classes in the current database.

Syntax:

  • Long Syntax:

    1. LIST CLASSES
  • Short Syntax:

    1. CLASSES

Example

  • List current classes in the database:

    1. orientdb> LIST CLASSES
    2.  
    3. CLASSES
    4. -------------+------+-------------+-----------
    5. NAME | ID | CLUSTERS | ELEMENTS
    6. -------------+------+-------------+-----------
    7. Person | 0 | person | 7
    8. Animal | 1 | animal | 5
    9. AnimalRace | 2 | AnimalRace | 0
    10. AnimalType | 3 | AnimalType | 1
    11. OrderItem | 4 | OrderItem | 0
    12. Order | 5 | Order | 0
    13. City | 6 | City | 3
    14. -------------+------+-------------+-----------
    15. TOTAL 16
    16. -----------------------------------------------

For more information on other commands, see Console Commands.