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

Server side queries #6

Open
ruimgoncalves opened this issue Apr 17, 2020 · 2 comments
Open

Server side queries #6

ruimgoncalves opened this issue Apr 17, 2020 · 2 comments
Labels
enhancement New feature or request todo

Comments

@ruimgoncalves
Copy link

Hi, congrats on this great project.

It reminds me of DerbyJs and RacerJs, which is a very interesting concept.

What do you think of server side queries in SapphireDb? Meaning instead of the client specifying the query to run, the server exposes a function that encapsulates the server query, and the client is only able to change this function parameters.

This increases security since the server hides models and queries from the clients.

@morrisjdev
Copy link
Collaborator

Hi. Thank you.

That's definitely an interesting point. I think I'll add it to the to-do list and will implement it soon. I really like the idea and I think it could also solve the problem of duplicating the same query in multiple client implementations of an application.

Thank you a lot.

Best regards

Morris

@morrisjdev morrisjdev added enhancement New feature or request todo labels Apr 18, 2020
@morrisjdev morrisjdev added this to the Feature development milestone Apr 28, 2020
@morrisjdev
Copy link
Collaborator

I'm currently developing the proposed feature. You can follow the development in the branch server_side_query_definition. The development is almost complete.

Thank you again for the good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo
Projects
None yet
Development

No branches or pull requests

2 participants