go-rel / rel

:gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
https://go-rel.github.io/
MIT License
762 stars 56 forks source link

Data types #332

Closed fairking closed 11 months ago

fairking commented 1 year ago

I could not find any documentation about what are data types supported by rel as column types. Is there any "decimal" support. I would like to have a column "Quantity" which is a number with 5 decimal points. I also would need 2 decimal points for money representation. Many suggestions are to use integers, but I would like to check are there any alternatives.

I wish there is some documentation which states which types are supported and can be used in rel entities.

Fs02 commented 1 year ago

you can use any types as long as it's supported by the db driver you use, you can also implement your own custom Scanner and Valuer interface