typedb / typedb-console

TypeDB Console: CLI for TypeDB and TypeDB Cluster
https://typedb.com
Mozilla Public License 2.0
7 stars 16 forks source link

Refactor command to print database schema as database <name> schema #140

Open haikalpribadi opened 3 years ago

haikalpribadi commented 3 years ago

You can't do ./grakn server schema anymore on master. The database schema is now retrievable on Database.schema() (i.e. graknClient.databases().get("name").schema() (implemented in client-java). We need to implement the feature in console to do database <name> schema.

While we're at it, also change the syntax of database delete <name> to database <name> delete.

flyingsilverfin commented 3 years ago

This feature is partially implemented in https://github.com/graknlabs/console/pull/143

however, we implemented it following the existing architecture of:

<command> <subcommand> <args>

which is reversed: to implement this feature properly, we want to flip the notation around for commands that are scoped to a particular database:

database <name> delete database <name> schema