We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PersistField Int
PersistRational
The instance PersistField Int does not work with the Postgres numeric type, which shows up repeatedly for the esqueleto library.
instance PersistField Int
numeric
esqueleto
Link to code.
We should really probably just make PersistRational work.
bitemyapp/esqueleto#82 bitemyapp/esqueleto#54 bitemyapp/esqueleto#175
The text was updated successfully, but these errors were encountered:
Thoughts:
I don't like floor. That feels like... throwing away information that may be pertinent.
floor
If the Rational is like x % 1 then I think it's totally fine to just return x directly.
Rational
x % 1
x
But if it's x % y where the value isn't integral, then that feels like a Left to me.
x % y
Left
Sorry, something went wrong.
Integral
No branches or pull requests
The
instance PersistField Int
does not work with the Postgresnumeric
type, which shows up repeatedly for theesqueleto
library.Link to code.
We should really probably just make
PersistRational
work.bitemyapp/esqueleto#82
bitemyapp/esqueleto#54
bitemyapp/esqueleto#175
The text was updated successfully, but these errors were encountered: