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

Custom row class constructor in drift files #2399

Closed
FaFre opened this issue Apr 23, 2023 · 1 comment
Closed

Custom row class constructor in drift files #2399

FaFre opened this issue Apr 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@FaFre
Copy link
Contributor

FaFre commented Apr 23, 2023

For Table we have an annotation to define a constructor for custom row classes: https://drift.simonbinder.eu/docs/advanced-features/custom_row_classes/#using-another-constructor

From my research it is not possible to do this right now in combination with the WITH keyword in drift files, for table definitions, queries, etc.

Maybe we can make an annotation for the custom row class available to define the constructor to use there directly why can be consumed by the generator.

@FaFre FaFre added the enhancement New feature or request label Apr 23, 2023
@simolus3
Copy link
Owner

Good call, I've added support for named constructors in 6bb2c3d.

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
None yet
Development

No branches or pull requests

2 participants