Skip to content

Instantly share code, notes, and snippets.

View snbeynon's full-sized avatar
🐨
problem solver

sharon beynon snbeynon

🐨
problem solver
  • Amsterdam - Toronto - Brisbane
View GitHub Profile
@rmoff
rmoff / docker-compose.yml
Last active June 2, 2024 17:14
Docker-Compose for Kafka and Zookeeper with internal and external listeners
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
@msievers
msievers / [jooq] Add generic support for Postgres json(b) columns using jacksons JsonNode.md
Last active May 31, 2023 01:36
[jooq] Add generic support for Postgres json(b) columns using Jackson JsonNode

Motivation

jooq does not support Postgres nativ json(b) datatypes out of the box. It would be nice have jooq recognize json columns and provide them in a generic way within generated records.

Idea

The official jooq documentation provides an example for creating a custom data type binding for Postgres json columns using GSON. Based on this, it is possible to tweak the implemenation to