Skip to content

feat: functions support#3

Merged
cristeigabriela merged 12 commits intomasterfrom
functions-support
Apr 3, 2026
Merged

feat: functions support#3
cristeigabriela merged 12 commits intomasterfrom
functions-support

Conversation

@cristeigabriela
Copy link
Copy Markdown
Owner

todo: actually add explaination here. wah

Copy link
Copy Markdown
Owner Author

@cristeigabriela cristeigabriela left a comment

Choose a reason for hiding this comment

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

Refactor sqlparse usage to be a crate in the middle with a basic sql evaluator and some basic supported types and a way to bind other types against this crate and thus respectively variables to support making a sql evaluator where each crate just exposes its context to it

bb_sql
evaluator::Evaluator::new()

then bind variables to it as far as the types are supported, and fully recurse

i dont think this should use reflection but rather impls for each type but im not sure. it might get complicated given we also have serde json? maybe we just need to reuse all the same stuff there already. that sounds more reasonable tbh

the evaluator should have the basic sql commands we alrdy defined but also a way to add extra ones at local scope level

maybe a repl would be interesting, long-term

@cristeigabriela cristeigabriela merged commit 273fdb0 into master Apr 3, 2026
1 check 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