GeezerVison is showing github.com — Add analog of INFO CLASS command · Issue #888 · ArcadeData/arcadedb
Add analog of INFO CLASS command #888
Description
We need to have analog of INFO CLASS command in OrientDB that display detailed class schema including properties attributes:
orientdb> INFO CLASS OUser
CLASS 'OUser'
Super classes........: [OIdentity]
Default cluster......: ouser (id=5)
Supported cluster ids: [5]
Cluster selection....: round-robin
Oversize.............: 0.0
PROPERTIES
----------+---------+--------------+-----------+----------+----------+-----+-----+
NAME | TYPE | LINKED TYPE/ | MANDATORY | READONLY | NOT NULL | MIN | MAX |
| | CLASS | | | | | |
----------+---------+--------------+-----------+----------+----------+-----+-----+
password | STRING | null | true | false | true | | |
roles | LINKSET | ORole | false | false | false | | |
name | STRING | null | true | false | true | | |
status | STRING | null | true | false | true | | |
----------+---------+--------------+-----------+----------+----------+-----+-----+
INDEXES (1 altogether)
-------------------------------+----------------+
NAME | PROPERTIES |
-------------------------------+----------------+
OUser.name | name |
-------------------------------+----------------+
Related topic #882
Activity
lvca commented on Mar 1, 2023
I was able to support the command. This is the output from an existing database sued for benchmarks:
{pokec}> info type User
VERTEX TYPE 'User'
Super types.......: []
Buckets...........: [User_0, User_1, User_2, User_3, User_4, User_5, User_6, User_7]
Bucket selection..: thread
PROPERTIES
+----+----+---------+--------+--------+----+----+------+
|NAME|TYPE|MANDATORY|READONLY|NOT NULL|MIN |MAX |CUSTOM|
+----+----+---------+--------+--------+----+----+------+
|id |LONG|false |false |false | | |{} |
+----+----+---------+--------+--------+----+----+------+
INDEXES (1 altogether)
+--------+--------+------+----------+
|NAME |TYPE |UNIQUE|PROPERTIES|
+--------+--------+------+----------+
|User[id]|LSM_TREE|true |[id] |
+--------+--------+------+----------+
So in ArcadeDB the new command from console is info type <name>, while with OrientDB was info class <name>.
I've also added more information to the records returned by the select from schema:types.
Reacted by Alexey Dubkov
Reacted by Alexey Dubkov
adubkov commented on Mar 1, 2023
Metadata
Metadata
Development
No branches or pull requestsIssue actions