@@ -425,54 +425,55 @@ When available, the driver registers also an array variant of the codec.
425
425
426
426
This reference table shows the type mapping between [ PostgreSQL] [ p ] and Java data types:
427
427
428
- | PostgreSQL Type | Supported Data Type |
429
- | :------------------------------------------------| :----------------------------------------------------------------------------------------------------------------------------------------------|
430
- | [ ` bigint ` ] [ psql-bigint-ref ] | [ ** ` Long ` ** ] [ java-long-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
431
- | [ ` bit ` ] [ psql-bit-ref ] | Not yet supported.|
432
- | [ ` bit varying ` ] [ psql-bit-ref ] | Not yet supported.|
433
- | [ ` boolean or bool ` ] [ psql-boolean-ref ] | [ ` Boolean ` ] [ java-boolean-ref ] |
434
- | [ ` box ` ] [ psql-box-ref ] | ** ` Box ` ** |
435
- | [ ` bytea ` ] [ psql-bytea-ref ] | [ ** ` ByteBuffer ` ** ] [ java-ByteBuffer-ref ] , [ ` byte[] ` ] [ java-byte-ref ] , [ ` Blob ` ] [ r2dbc-blob-ref ] |
436
- | [ ` character ` ] [ psql-character-ref ] | [ ` String ` ] [ java-string-ref ] |
437
- | [ ` character varying ` ] [ psql-character-ref ] | [ ` String ` ] [ java-string-ref ] |
438
- | [ ` cidr ` ] [ psql-cidr-ref ] | Not yet supported.|
439
- | [ ` circle ` ] [ psql-circle-ref ] | ** ` Circle ` ** |
440
- | [ ` date ` ] [ psql-date-ref ] | [ ` LocalDate ` ] [ java-ld-ref ] |
441
- | [ ` double precision ` ] [ psql-floating-point-ref ] | [ ** ` Double ` ** ] [ java-double-ref ] , [ ` Float ` ] [ java-float-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
442
- | [ enumerated types] [ psql-enum-ref ] | Client code ` Enum ` types through ` EnumCodec ` |
443
- | [ ` geometry ` ] [ postgis-ref ] | ** ` org.locationtech.jts.geom.Geometry ` ** |
444
- | [ ` hstore ` ] [ psql-hstore-ref ] | [ ** ` Map ` ** ] [ java-map-ref ] |
445
- | [ ` inet ` ] [ psql-inet-ref ] | [ ** ` InetAddress ` ** ] [ java-inet-ref ] |
446
- | [ ` integer ` ] [ psql-integer-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
447
- | [ ` interval ` ] [ psql-interval-ref ] | ** ` Interval ` ** |
448
- | [ ` json ` ] [ psql-json-ref ] | ** ` Json ` ** , [ ` String ` ] [ java-string-ref ] . Reading: ` ByteBuf ` [ ` byte[] ` ] [ java-primitive-ref ] , [ ` ByteBuffer ` ] [ java-ByteBuffer-ref ] , [ ` String ` ] [ java-string-ref ] , [ ` InputStream ` ] [ java-inputstream-ref ] |
449
- | [ ` jsonb ` ] [ psql-json-ref ] | ** ` Json ` ** , [ ` String ` ] [ java-string-ref ] . Reading: ` ByteBuf ` [ ` byte[] ` ] [ java-primitive-ref ] , [ ` ByteBuffer ` ] [ java-ByteBuffer-ref ] , [ ` String ` ] [ java-string-ref ] , [ ` InputStream ` ] [ java-inputstream-ref ] |
450
- | [ ` line ` ] [ psql-line-ref ] | ** ` Line ` ** |
451
- | [ ` lseg ` ] [ psql-lseq-ref ] | ** ` Lseg ` ** |
452
- | [ ` macaddr ` ] [ psql-macaddr-ref ] | Not yet supported.|
453
- | [ ` macaddr8 ` ] [ psql-macaddr8-ref ] | Not yet supported.|
454
- | [ ` money ` ] [ psql-money-ref ] | Not yet supported. Please don't use this type. It is a very poor implementation. |
455
- | [ ` name ` ] [ psql-name-ref ] | [ ** ` String ` ** ] [ java-string-ref ]
456
- | [ ` numeric ` ] [ psql-bignumeric-ref ] | [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
457
- | [ ` oid ` ] [ psql-oid-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
458
- | [ ` path ` ] [ psql-path-ref ] | ** ` Path ` ** |
459
- | [ ` pg_lsn ` ] [ psql-pg_lsn-ref ] | Not yet supported.|
460
- | [ ` point ` ] [ psql-point-ref ] | ** ` Point ` ** |
461
- | [ ` polygon ` ] [ psql-polygon-ref ] | ** ` Polygon ` ** |
462
- | [ ` real ` ] [ psql-real-ref ] | [ ** ` Float ` ** ] [ java-float-ref ] , [ ` Double ` ] [ java-double-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
463
- | [ ` smallint ` ] [ psql-smallint-ref ] | [ ** ` Short ` ** ] [ java-short-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
464
- | [ ` smallserial ` ] [ psql-smallserial-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
465
- | [ ` serial ` ] [ psql-serial-ref ] | [ ** ` Long ` ** ] [ java-long-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
466
- | [ ` text ` ] [ psql-text-ref ] | [ ** ` String ` ** ] [ java-string-ref ] , [ ` Clob ` ] [ r2dbc-clob-ref ] |
467
- | [ ` time [without time zone] ` ] [ psql-time-ref ] | [ ` LocalTime ` ] [ java-lt-ref ] |
468
- | [ ` time [with time zone] ` ] [ psql-time-ref ] | [ ` OffsetTime ` ] [ java-ot-ref ] |
469
- | [ ` timestamp [without time zone] ` ] [ psql-time-ref ] | [ ** ` LocalDateTime ` ** ] [ java-ldt-ref ] , [ ` LocalTime ` ] [ java-lt-ref ] , [ ` LocalDate ` ] [ java-ld-ref ] , [ ` java.util.Date ` ] [ java-legacy-date-ref ] |
470
- | [ ` timestamp [with time zone] ` ] [ psql-time-ref ] | [ ** ` OffsetDatetime ` ** ] [ java-odt-ref ] , [ ` ZonedDateTime ` ] [ java-zdt-ref ] , [ ` Instant ` ] [ java-instant-ref ] |
471
- | [ ` tsquery ` ] [ psql-tsquery-ref ] | Not yet supported.|
472
- | [ ` tsvector ` ] [ psql-tsvector-ref ] | Not yet supported.|
473
- | [ ` txid_snapshot ` ] [ psql-txid_snapshot-ref ] | Not yet supported.|
474
- | [ ` uuid ` ] [ psql-uuid-ref ] | [ ** ` UUID ` ** ] [ java-uuid-ref ] , [ ` String ` ] [ java-string-ref ] ||
475
- | [ ` xml ` ] [ psql-xml-ref ] | Not yet supported. |
428
+ | PostgreSQL Type | Supported Data Type |
429
+ | :-------------------------------------------------| :--------------------------------------------------------------------------------------------------------------------------------------------|
430
+ | [ ` bigint ` ] [ psql-bigint-ref ] | [ ** ` Long ` ** ] [ java-long-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
431
+ | [ ` bit ` ] [ psql-bit-ref ] | Not yet supported.|
432
+ | [ ` bit varying ` ] [ psql-bit-ref ] | Not yet supported.|
433
+ | [ ` boolean or bool ` ] [ psql-boolean-ref ] | [ ` Boolean ` ] [ java-boolean-ref ] |
434
+ | [ ` box ` ] [ psql-box-ref ] | ** ` Box ` ** |
435
+ | [ ` bytea ` ] [ psql-bytea-ref ] | [ ** ` ByteBuffer ` ** ] [ java-ByteBuffer-ref ] , [ ` byte[] ` ] [ java-byte-ref ] , [ ` Blob ` ] [ r2dbc-blob-ref ] |
436
+ | [ ` character ` ] [ psql-character-ref ] | [ ` String ` ] [ java-string-ref ] |
437
+ | [ ` character varying ` ] [ psql-character-ref ] | [ ` String ` ] [ java-string-ref ] |
438
+ | [ ` cidr ` ] [ psql-cidr-ref ] | Not yet supported.|
439
+ | [ ` circle ` ] [ psql-circle-ref ] | ** ` Circle ` ** |
440
+ | [ ` date ` ] [ psql-date-ref ] | [ ` LocalDate ` ] [ java-ld-ref ] |
441
+ | [ ` double precision ` ] [ psql-floating-point-ref ] | [ ** ` Double ` ** ] [ java-double-ref ] , [ ` Float ` ] [ java-float-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
442
+ | [ enumerated types] [ psql-enum-ref ] | Client code ` Enum ` types through ` EnumCodec ` |
443
+ | [ ` geometry ` ] [ postgis-ref ] | ** ` org.locationtech.jts.geom.Geometry ` ** |
444
+ | [ ` hstore ` ] [ psql-hstore-ref ] | [ ** ` Map ` ** ] [ java-map-ref ] |
445
+ | [ ` inet ` ] [ psql-inet-ref ] | [ ** ` InetAddress ` ** ] [ java-inet-ref ] |
446
+ | [ ` integer ` ] [ psql-integer-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
447
+ | [ ` interval ` ] [ psql-interval-ref ] | ** ` Interval ` ** |
448
+ | [ ` json ` ] [ psql-json-ref ] | ** ` Json ` ** , [ ` String ` ] [ java-string-ref ] . Reading: ` ByteBuf ` [ ` byte[] ` ] [ java-primitive-ref ] , [ ` ByteBuffer ` ] [ java-ByteBuffer-ref ] , [ ` String ` ] [ java-string-ref ] , [ ` InputStream ` ] [ java-inputstream-ref ] |
449
+ | [ ` jsonb ` ] [ psql-json-ref ] | ** ` Json ` ** , [ ` String ` ] [ java-string-ref ] . Reading: ` ByteBuf ` [ ` byte[] ` ] [ java-primitive-ref ] , [ ` ByteBuffer ` ] [ java-ByteBuffer-ref ] , [ ` String ` ] [ java-string-ref ] , [ ` InputStream ` ] [ java-inputstream-ref ] |
450
+ | [ ` line ` ] [ psql-line-ref ] | ** ` Line ` ** |
451
+ | [ ` lseg ` ] [ psql-lseq-ref ] | ** ` Lseg ` ** |
452
+ | [ ` macaddr ` ] [ psql-macaddr-ref ] | Not yet supported.|
453
+ | [ ` macaddr8 ` ] [ psql-macaddr8-ref ] | Not yet supported.|
454
+ | [ ` money ` ] [ psql-money-ref ] | Not yet supported. Please don't use this type. It is a very poor implementation. |
455
+ | [ ` name ` ] [ psql-name-ref ] | [ ** ` String ` ** ] [ java-string-ref ]
456
+ | [ ` numeric ` ] [ psql-bignumeric-ref ] | [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
457
+ | [ ` oid ` ] [ psql-oid-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
458
+ | [ ` path ` ] [ psql-path-ref ] | ** ` Path ` ** |
459
+ | [ ` pg_lsn ` ] [ psql-pg_lsn-ref ] | Not yet supported.|
460
+ | [ ` point ` ] [ psql-point-ref ] | ** ` Point ` ** |
461
+ | [ ` polygon ` ] [ psql-polygon-ref ] | ** ` Polygon ` ** |
462
+ | [ ` real ` ] [ psql-real-ref ] | [ ** ` Float ` ** ] [ java-float-ref ] , [ ` Double ` ] [ java-double-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
463
+ | [ ` smallint ` ] [ psql-smallint-ref ] | [ ** ` Short ` ** ] [ java-short-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
464
+ | [ ` smallserial ` ] [ psql-smallserial-ref ] | [ ** ` Integer ` ** ] [ java-integer-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Long ` ] [ java-long-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
465
+ | [ ` serial ` ] [ psql-serial-ref ] | [ ** ` Long ` ** ] [ java-long-ref ] , [ ` Boolean ` ] [ java-boolean-ref ] , [ ` Byte ` ] [ java-byte-ref ] , [ ` Short ` ] [ java-short-ref ] , [ ` Integer ` ] [ java-integer-ref ] , [ ` BigDecimal ` ] [ java-bigdecimal-ref ] , [ ` BigInteger ` ] [ java-biginteger-ref ] |
466
+ | [ ` text ` ] [ psql-text-ref ] | [ ** ` String ` ** ] [ java-string-ref ] , [ ` Clob ` ] [ r2dbc-clob-ref ] |
467
+ | [ ` time [without time zone] ` ] [ psql-time-ref ] | [ ` LocalTime ` ] [ java-lt-ref ] |
468
+ | [ ` time [with time zone] ` ] [ psql-time-ref ] | [ ` OffsetTime ` ] [ java-ot-ref ] |
469
+ | [ ` timestamp [without time zone] ` ] [ psql-time-ref ] | [ ** ` LocalDateTime ` ** ] [ java-ldt-ref ] , [ ` LocalTime ` ] [ java-lt-ref ] , [ ` LocalDate ` ] [ java-ld-ref ] , [ ` java.util.Date ` ] [ java-legacy-date-ref ] |
470
+ | [ ` timestamp [with time zone] ` ] [ psql-time-ref ] | [ ** ` OffsetDatetime ` ** ] [ java-odt-ref ] , [ ` ZonedDateTime ` ] [ java-zdt-ref ] , [ ` Instant ` ] [ java-instant-ref ] |
471
+ | [ ` tsquery ` ] [ psql-tsquery-ref ] | Not yet supported.|
472
+ | [ ` tsvector ` ] [ psql-tsvector-ref ] | Not yet supported.|
473
+ | [ ` txid_snapshot ` ] [ psql-txid_snapshot-ref ] | Not yet supported.|
474
+ | [ ` uuid ` ] [ psql-uuid-ref ] | [ ** ` UUID ` ** ] [ java-uuid-ref ] , [ ` String ` ] [ java-string-ref ] ||
475
+ | [ ` xml ` ] [ psql-xml-ref ] | Not yet supported. |
476
+ | [ ` vector ` ] [ psql-vector-ref ] | ** ` Vector ` ** , [ ` float[] ` ] [ java-float-ref ] |
476
477
477
478
Types in ** bold** indicate the native (default) Java type.
478
479
@@ -550,6 +551,7 @@ Support for the following single-dimensional arrays (read and write):
550
551
[ psql-xml-ref ] : https://www.postgresql.org/docs/current/datatype-xml.html
551
552
[ psql-runtime-config ] : https://www.postgresql.org/docs/current/runtime-config-client.html
552
553
[ postgis-ref ] : http://postgis.net/workshops/postgis-intro/geometries.html
554
+ [ psql-vector-ref ] : https://github.com/pgvector/pgvector
553
555
554
556
[ r2dbc-blob-ref ] : https://r2dbc.io/spec/0.9.0.RELEASE/api/io/r2dbc/spi/Blob.html
555
557
[ r2dbc-clob-ref ] : https://r2dbc.io/spec/0.9.0.RELEASE/api/io/r2dbc/spi/Clob.html
0 commit comments