Solitude-Software-Solutions / OstrichDB

WIP | A document-based NoSQL, JSON-esque database for local machine use
Apache License 2.0
17 stars 2 forks source link

Brainstorm: Allow the use of dot notation when manipulating data ojects #77

Open SchoolyB opened 1 month ago

SchoolyB commented 1 month ago

This Idea comes from a comment in my latest YouTube video here Commenter asks why not use dot notation in commands like: NEW CLUSTER foo.bar this would be the same as saying NEW CLUSTER foo WITHIN COLLECTION bar or maybe NEW CLUSTER bar WITHIN COLLECTION foo???

I think this is an amazing idea. This would prevent the user from having to remember so may modifier tokens and long commands. I plan to investigate this further.

Kelimion commented 3 weeks ago

I meant for NEW CLUSTER foo.bar to be analogous to NEW CLUSTER bar WITHIN COLLECTION foo. Reading from left to right, bar would be a member of foo. Think of it as a struct/record member.