Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iliavolkovspb opened this issue Aug 30, 2023 · 0 comments
Open

Comments

@iliavolkovspb
Copy link

iliavolkovspb commented Aug 30, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant