Replies: 1 comment
-
@Playrom You can use the table alias as a query representation to make this work: @Selection
public struct ExampleSelection: Sendable {
public let record: Example.Transfer
- public let sourceWallet: TableAlias<Example.Wallet, Example.WalletAlias>
+ @Column(as: TableAlias<Example.Wallet, Example.WalletAlias>.self)
+ public let sourceWallet: Example.Wallet
} Since this isn't a bug in the library I'm going to convert to a discussion. We could definitely add docs for this, though! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi
If I have an alias for a table, that table aliased cannot be used in select when using @selection , because conflicting signatures
I drop an example
Only using this generic combination may result in a compilation, but it is a bit un-usable
Beta Was this translation helpful? Give feedback.
All reactions