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

[Feat]: GeekQuery Derive Macro #36

Open
GeekMasher opened this issue Apr 26, 2024 · 0 comments
Open

[Feat]: GeekQuery Derive Macro #36

GeekMasher opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@GeekMasher
Copy link
Contributor

GeekMasher commented Apr 26, 2024

What new feature are you looking for / expect?

A feature that I want to build versus doing the following:

let results = Users::select()
    .join(Images::table())
    .columns(vec!["Users.id", "Users.username", "Images.url"])
    .build()?;

Something like this would be amazing:

// Users & Images structs

#[derive(GeekQuery)]
struct UserImages {
    #[column("Users.id")]
    user: i32,

    #[column("Users.username")]
    username: String,

    #[column("Images.url")]
    image: String
}

Expectations

Nice to have

@GeekMasher GeekMasher added the enhancement New feature or request label Apr 26, 2024
@GeekMasher GeekMasher self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant