Skip to content

Typo in command fix#4

Merged
itsfuad merged 8 commits intostablefrom
main
Jun 22, 2025
Merged

Typo in command fix#4
itsfuad merged 8 commits intostablefrom
main

Conversation

@itsfuad
Copy link
Copy Markdown
Owner

@itsfuad itsfuad commented Jun 22, 2025

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:

  • Added CRUD demo implementations for FurrDB in Go (examples/crud_demo.go), Python (examples/crud_demo.py), and TypeScript/Deno (examples/crud_demo.ts). These examples demonstrate basic operations like SET, GET, DEL, and KEYS with user profile data. [1] [2] [3]

Script Handling Refactor:

  • Refactored script evaluation logic in internal/script/script.go to improve modularity and readability. Introduced helper functions like handleLetStatement, handleIfStatement, and executeCommand for better separation of concerns. Removed unused args parameter from EvalScript and related methods.
  • Updated corresponding tests in internal/script/script_test.go to align with the refactored script evaluation logic. [1] [2]

Codebase Improvements:

  • Simplified REPL command handling in internal/repl/repl.go by replacing multiple if statements with a switch statement and removing redundant code for clearing the screen. [1] [2]
  • Refactored server command processing in internal/server/server.go by introducing helper functions parseInput and processCommand for better readability and maintainability.

Documentation Updates:

  • Revamped readme.md with 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:

  • Enabled Deno support in .vscode/settings.json for TypeScript development.

itsfuad added 8 commits June 20, 2025 20:35
…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.
…commands demo script from scripts directory.
@itsfuad itsfuad merged commit 808fa44 into stable Jun 22, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant