SkygearIO / skygear-server

Skygear - an open source serverless platform for modern secure app development
https://skygear.io
Apache License 2.0
408 stars 84 forks source link

Support postgresql `decimal` and `numeric` type #533

Open limouren opened 6 years ago

limouren commented 6 years ago

It would be extremely helpful for those who need exact number storage / calculation in a skygear app.

Expected Results

Actual Results

Steps to reproduce

1. 2. 3.

cheungpat commented 6 years ago

Should use this as decimal type:

https://github.com/shopspring/decimal

Example here:

https://github.com/jackc/pgx/blob/master/query_test.go#L913