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

How to use FromSql, FromSqlRow, and Queryable? #1774

Closed
spease opened this Issue Jul 5, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@spease

spease commented Jul 5, 2018

Hi, I have a number of newtypes that need to get moved into a SQL database. These are generally either:

  1. Straight wrapper around a type that diesel already supports
  2. Wrapper around a dimensioned type that needs to do a conversion
  3. Wrapper around a complex type that needs to deserialize from a string

It isn't clear to me when each of the above types should be implemented or derived. I've read the getting started guides and the reference docs, but it doesn't seem like it's laid out anywhere.

Thanks.

@weiznich

This comment has been minimized.

Contributor

weiznich commented Jul 5, 2018

See this test case for an example. For future questions please use our gitter channel

@weiznich weiznich closed this Jul 5, 2018

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