mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-15 08:50:23 +00:00
macros: add support for Postgres + BigDecimal
This commit is contained in:
@@ -62,6 +62,8 @@ impl PgTypeInfo {
|
||||
match self.id {
|
||||
TypeId::DATE | TypeId::TIME | TypeId::TIMESTAMP | TypeId::TIMESTAMPTZ => Some("chrono"),
|
||||
TypeId::UUID => Some("uuid"),
|
||||
// we can support decoding `PgNumeric` but it's decidedly less useful to the layman
|
||||
TypeId::NUMERIC => Some("bigdecimal"),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user