Description
An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.20.0</version>
<scope>test</scope>
</dependency>
Usage:
var image = DockerImageName.parse("timescale/timescaledb:2.1.0-pg11")
.asCompatibleSubstituteFor("postgres");
var timescale = new PostgreSQLContainer<>(image);
timescale.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/postgres
Usage:
timescaleContainer, err := postgres.Run(ctx,
"timescale/timescaledb:2.1.0-pg11",
postgres.WithDatabase("test"),
postgres.WithUsername("user"),
postgres.WithPassword("password"),
)
Dependency:
dotnet add package Testcontainers.PostgreSql --version 3.9.0
Usage:
var timescaleContainer = new PostgreSqlBuilder()
.WithImage("timescale/timescaledb:2.1.0-pg11")
.Build();
await timescaleContainer.StartAsync();
Dependency:
npm install @testcontainers/postgresql --save-dev
Usage:
const container = await new PostgreSqlContainer(image = "timescale/timescaledb:2.1.0-pg11").start();