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

support flatten attribute in FromRow macro #1959

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

TheoOiry
Copy link
Contributor

Adding #[sqlx(flatten)] field attribute in a FromRow macro to handle a field that implements FromRow

This is a task of #156 : "Handle a field that is impl FromRow. A parallel from serde_json would perhaps make this #[sqlx(flatten)]"

@abonander
Copy link
Collaborator

Do you have the time to write documentation for this attribute here:

/// ### Field attributes

@TheoOiry
Copy link
Contributor Author

Do you have the time to write documentation for this attribute here:

/// ### Field attributes

My bad, I forgot about that. It's done.

@abonander
Copy link
Collaborator

Very good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants