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

Feature: table appearing multiple times in select query results #1611

Open
Diggsey opened this Issue Apr 4, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@Diggsey
Contributor

Diggsey commented Apr 4, 2018

Mostly creating this issue so I can subscribe to it.

Possible implementation assuming no significant changes to diesel:

// Internal
struct Alias<To, Id>(To);

impl<To, Id> {traits} for Alias<To, Id> {
    ... {forward to "To" implementation of traits}...
}

// External
define_alias!(Foo, Bar);

// Expands to:
struct FooId;
type Foo = Alias<Bar, FooId>;

@weiznich weiznich added the enhancement label Apr 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment