Conversation
…eps for cloning the repository, building, running the server, using the REPL, and running tests. Add instructions for using release binaries and the CLI client.
…handling and improve readability
… and consolidate command execution logic
…commands demo script from scripts directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces several updates to the FurrDB project, including new CRUD demo examples in multiple programming languages, refactoring of script handling logic, and updates to documentation and configuration. The changes enhance usability, streamline code, and improve clarity for developers.
New CRUD Demo Examples:
examples/crud_demo.go), Python (examples/crud_demo.py), and TypeScript/Deno (examples/crud_demo.ts). These examples demonstrate basic operations likeSET,GET,DEL, andKEYSwith user profile data. [1] [2] [3]Script Handling Refactor:
internal/script/script.goto improve modularity and readability. Introduced helper functions likehandleLetStatement,handleIfStatement, andexecuteCommandfor better separation of concerns. Removed unusedargsparameter fromEvalScriptand related methods.internal/script/script_test.goto align with the refactored script evaluation logic. [1] [2]Codebase Improvements:
internal/repl/repl.goby replacing multipleifstatements with aswitchstatement and removing redundant code for clearing the screen. [1] [2]internal/server/server.goby introducing helper functionsparseInputandprocessCommandfor better readability and maintainability.Documentation Updates:
readme.mdwith clearer instructions for building, running, and testing the server. Added steps for using the REPL, CLI client, and release binaries. Removed outdated project structure section. [1] [2]Configuration Enhancements:
.vscode/settings.jsonfor TypeScript development.