testcontainers/testcontainers-java

Clickhouse via MySQL protocol

Open

#3827 aperta il 22 feb 2021

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Java (1588 fork)batch import
help wantedmodules/clickhouse

Metriche repository

Star
 (7535 star)
Metriche merge PR
 (Merge medio 2g 17h) (2 PR mergiate in 30 g)

Descrizione

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

Guida contributor