Skip to content

[Feat]: GeekQuery Derive Macro #36

@GeekMasher

Description

@GeekMasher

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions