Data types
General type mapping is described in rdbc documentation here. Said chapter refers to the types by their standard names. This section describes type mapping using PostgreSQL type names.
Type mapping¶
Following table lists mapping between Scala and supported PostgreSQL types.
PostgreSQL name | Scala type |
---|---|
char | String |
varchar | String |
text | String |
bytea | scodec.bits.ByteVector |
bool | Boolean |
numeric | io.rdbc.sapi.DecimalNumber |
float4 | Float |
float8 | Double |
int2 | Short |
int4 | Int |
int8 | Long |
date | java.time.LocalDate |
time | java.time.LocalTime |
timestamp | java.time.Instant |
timestamp with time zone | java.time.ZonedDateTime |
uuid | java.util.UUID |