use a TypeDecorator like
http://www.sqlalchemy.org/docs/core/types.html#rounding-numerics and change the
"rounding" part to "raise an error".
On Oct 28, 2011, at 6:27 PM, Michael Hipp wrote:
> Could someone point me to a doc page that explains how to enforce a
> range limit on a Numeric type. I have some monetary values that I want
> to force to always be >= Decimal('0.00').
>
> Thanks,
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sqlalchemy?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.