testcontainers/testcontainers-java

Clickhouse via MySQL protocol

Open

#3,827 opened on Feb 22, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (7,535 stars) (1,588 forks)batch import
help wantedmodules/clickhouse

Description

I would like to contribute an improevemnt for the clickhouse module but I am unsure how to package it.

Clickhouse supports 3 ways of connecting:

  • JDBC (basically only a wrapper around HTTP)
  • Native protocol (CLI only)
  • HTTP
  • MySQL protocol
  • PostgreSQL protocol

The current module supports:

  • JDBC (basically only a wrapper around HTTP)

I'd like to provide a PR supporting MySQL (already got it working) and maybe even PostgreSQL but I am unsure how to package this. The JdbcDatabaseContainer is tied to a specific driver (the one from yandex). Would you rather have individual containers for each one? have a highly configurable container covering all areas? Any example fdrom an existing module that comes to mind?

Cheers, Jochen

Contributor guide