vaticle / typedb-console

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

Termination of commands and TypeQL queries is better to be consistent #209

Open iliavolkovspb opened 10 months ago

iliavolkovspb commented 10 months ago

Problem to Solve

When inserting data via typedb-console we always should keep in mind that commands shouldn't be terminated with ';', while TypeQL queries should be terminated with ';'

transaction typedb-cloud data write
insert "testuser2" isa user;
commit

Current Workaround

Keep in mind that we shouldn't use ';' for commands (transaction, commit etc.)

Proposed Solution

It would be nice to make it consistent (to ask ';' everywhere, or allow queries and commands to be not terminated)

Additional Information

If I forgot and typed ';' for the command (say "transaction"), misleading error is shown:

transaction typedb-cloud data write;
Unrecognised command, please check help menu