-
Notifications
You must be signed in to change notification settings - Fork 30
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
Suggestion for structuring the API in layers #14
Comments
Isn't this too complex and scary for new developers trying to use this crate? It's common to have only two layers - raw and safe one. May be we should merge 2,3,4 layers into a single one? |
Consumers of this crate would stick to the top layer. We can make the lower layers private if you want to. Although sometimes a user might want to use the extra power available by the lower layers, especially if it is not yet implemented in the higher ones.
That is what I'm doing now, and it feels like I'm trying to do, too many things at once. |
May be let's merge 3 and 4 at least - and we need to clearly state in documentation and comments which layers do we have and how to use each of them |
ok, merging 3 and 4 sounds reasonable. These layers are mostly to avoid repetition in the implementation. As such they are destined to be private implementation details anyways. The reason why I would make them public in pre 1.0.0, is because of the sheer feature richness of ODBC a lot of functionality might be stuck in the lower layers for quite a while. |
Ok, closing this issue. |
I think we would benefit from structuring the API in seperate layers with dedicated responsibilities:
[5]. Potentially we could support a generic layer which uses to type information to provide ORM, but maybe that is there we pass the ball to crates like
diesel
What do you think?
The text was updated successfully, but these errors were encountered: