Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math & Logic operations #233

Closed
blessedjasonmwanza opened this issue May 19, 2022 · 2 comments
Closed

Math & Logic operations #233

blessedjasonmwanza opened this issue May 19, 2022 · 2 comments
Labels
question Further information is requested

Comments

@blessedjasonmwanza
Copy link

Is it possible to implement math operations such as SUM, AVG, and MIN?

I am planning on adopting SleekDB for our DB infrastructure, however - I can't seem to find some special and/or aggregate functions documented. Any help will be appreciated on this.

@Timu57
Copy link
Member

Timu57 commented May 19, 2022

Hello @blessedjasonmwanza
You can use the select method of the QueryBuilder to use "select functions".

In addition to the build in functions like CONCAT, SUM, AVG and more, you can easily implement "custom functions".

You can see the usage in the examples and if you need more help or advice feel free to join the discord.

Link to the select documentation:
https://sleekdb.github.io/#/query-builder#select

@Timu57 Timu57 added the question Further information is requested label May 19, 2022
@blessedjasonmwanza
Copy link
Author

Thanks a lot, @Timu57 👨🏽‍💻

HappyCoding 💻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants