Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the motivation?
We recently introduced a new API for
surrealdb
. This is the first commit in a series of commits to update the server to use the that API.What does this change do?
It updates the
cli::sql
module to the new API.One positive side-effect of this is that it is now possible to use the REPL without having to spin up a server first. This is because the connection string now allows using any database engine supported by SurrealDB. That includes the embedded ones. This means that one can now run
or just
which will embedded an in-memory database and run queries against that.
Another positive side effect is that the REPL now fully supports
LET
andUSE
statements regardless of the database engine you are using.What is your testing strategy?
I ran
and tested running some queries.
Is this related to any issues?
Have you read the Contributing Guidelines?