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

Allow try_from_row to work with &Row #243

Open
AlexPikalov opened this issue Jan 15, 2019 · 1 comment
Open

Allow try_from_row to work with &Row #243

AlexPikalov opened this issue Jan 15, 2019 · 1 comment

Comments

@AlexPikalov
Copy link
Owner

As of now try_from_raw works with Row and doesn't accept references.

In this issue we need to provide such possibility.

@ctopher7
Copy link

hi @AlexPikalov is there any trait that I could use so my I could call .try_from_row()? thanks

example:

fn query (some_struct : impl Trait){
--- inside for loop after get the data from db ---
  let my_row = some_struct.try_from_row(row).unwrap();
}

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

No branches or pull requests

2 participants