Skip to content

feat(db): add type detection for stored values and TYPE command#82

Merged
cankush625 merged 2 commits into
masterfrom
ankushchavan/primitive-types-json
May 10, 2026
Merged

feat(db): add type detection for stored values and TYPE command#82
cankush625 merged 2 commits into
masterfrom
ankushchavan/primitive-types-json

Conversation

@cankush625
Copy link
Copy Markdown
Owner

Implementation

  • Introduces a Value struct that wraps stored strings with a detected type (integer, float, boolean, json, string).
  • SET now stores typed values; GET behaviour is unchanged.
  • Adds a TYPE command that returns the detected type of a key, or none if the key does not exist.

Issue

#15

Signed-off-by: Ankush Chavan <cankush625@gmail.com>
Copy link
Copy Markdown
Owner Author

@cankush625 cankush625 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Signed-off-by: Ankush Chavan <cankush625@gmail.com>
@cankush625 cankush625 merged commit e03ce19 into master May 10, 2026
3 checks passed
@cankush625 cankush625 deleted the ankushchavan/primitive-types-json branch May 10, 2026 11:55
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