Skip to content

peter-evans/jOOQ-pg-int8multirange

Repository files navigation

jOOQ-pg-int8multirange The blog of Peter Evans: Using Postgres multirange types with jOOQ

CI

Custom jOOQ binding for PostgreSQL int8multirange type.

About

PostgreSQL 14 introduces built-in multirange types. Support for these types is not yet available in jOOQ. This repository demonstrates a custom binding and converter to allow jOOQ to work with these types.

Usage

Create a field and set the DataType with the binding.

    private val rangesField = field(
        name("test", "ranges"),
        SQLDataType.VARCHAR.asConvertedDataType(Int8MultiRangeBinding())
    )

See Int8MultiRange and associated tests for working examples.

Releases

No releases published

Sponsor this project

 

Languages