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

Feature: Remember previously specified NS and DB in command-line REPL #35

Closed
2 tasks done
tobiemh opened this issue Aug 13, 2022 · 3 comments · Fixed by #1561
Closed
2 tasks done

Feature: Remember previously specified NS and DB in command-line REPL #35

tobiemh opened this issue Aug 13, 2022 · 3 comments · Fixed by #1561
Assignees
Labels
feature New feature or request good first issue Good for newcomers
Milestone

Comments

@tobiemh
Copy link
Member

tobiemh commented Aug 13, 2022

Is your feature request related to a problem?

The original points for this issue can be seen in #32.

Once the --ns and --db arguments are made optional in the SurrealDB command-line REPL (#34), then if the Namespace or Database has not yet been specified, each query must include a USE NS ... DB ... statement before any other statement, can be run.

Describe the solution

The SurrealDB command-line should remember the last specified Namespace or Database which have been set with USE NS and USE DB.

Alternative methods

No alternative methods.

SurrealDB version

surreal 1.0.0-beta.6 for macos on aarch64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tobiemh tobiemh self-assigned this Aug 13, 2022
@tobiemh tobiemh added feature New feature or request good first issue Good for newcomers labels Aug 13, 2022
@gabrielgrover
Copy link

@tobiemh Is this currently being worked on? Been looking for a way to contribute and thought this would be a good one.

@ansarizafar
Copy link

It would be great If command-line REPL can show currently used/selected Namespace and Database in prompt

namespace.database>
OR
namespace/database>

@tobiemh tobiemh added this to the v1.0.0-beta.9 milestone Dec 30, 2022
@rushmorem
Copy link
Collaborator

Hi @tobiemh. Kindly assign this to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
None yet
4 participants