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

Easier API for custom column selection #23

Open
petamaj opened this issue Aug 2, 2021 · 3 comments
Open

Easier API for custom column selection #23

petamaj opened this issue Aug 2, 2021 · 3 comments
Labels
v4 wishlist Things to do for v4.

Comments

@petamaj
Copy link
Contributor

petamaj commented Aug 2, 2021

Couple observations:

  1. make the default method names the shortest
  2. don't decouple column selection (currently via Select! macro) with header name specification (arg to function)
  3. if possible, update the macro, or move to a different mechanism so that code completion works on the attributes
@kondziu kondziu added the v4 wishlist Things to do for v4. label Aug 2, 2021
@kondziu
Copy link
Contributor

kondziu commented Aug 2, 2021

Note from the discussion: db.projects().select(columns!(project::Id, project::URL))

@petamaj
Copy link
Contributor Author

petamaj commented Aug 2, 2021

Another note from the discussion anfter realizing that select! and columns! will both be size limited:

.select( vec![(DSLDude, "name"), (DSLDude, "name")])

@petamaj
Copy link
Contributor Author

petamaj commented Aug 2, 2021

And maybe having the names of the attributes and the names of rust functions that get them be the same ;-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 wishlist Things to do for v4.
Projects
None yet
Development

No branches or pull requests

2 participants