Skip to content

Commit b221f3f

Browse files
matriveddumelendez
andauthored
Add CrateDB module (#6790)
Co-authored-by: Eddú Meléndez <[email protected]>
1 parent a692602 commit b221f3f

File tree

18 files changed

+326
-0
lines changed

18 files changed

+326
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body:
2020
- CockroachDB
2121
- Consul
2222
- Couchbase
23+
- CrateDB
2324
- DB2
2425
- Dynalite
2526
- Elasticsearch

.github/ISSUE_TEMPLATE/enhancement.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body:
2020
- CockroachDB
2121
- Consul
2222
- Couchbase
23+
- CrateDB
2324
- DB2
2425
- Dynalite
2526
- Elasticsearch

.github/ISSUE_TEMPLATE/feature.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body:
1818
- Cassandra
1919
- Clickhouse
2020
- CockroachDB
21+
- CrateDB
2122
- Consul
2223
- Couchbase
2324
- DB2

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ updates:
6262
schedule:
6363
interval: "monthly"
6464
open-pull-requests-limit: 10
65+
- package-ecosystem: "gradle"
66+
directory: "/modules/cratedb"
67+
schedule:
68+
interval: "monthly"
69+
open-pull-requests-limit: 10
6570
- package-ecosystem: "gradle"
6671
directory: "/modules/database-commons"
6772
schedule:

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
- modules/consul/**/*
2020
"modules/couchbase":
2121
- modules/couchbase/**/*
22+
"modules/cratedb":
23+
- modules/cratedb/**/*
2224
"modules/db2":
2325
- modules/db2/**/*
2426
"modules/dynalite":

.github/settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ labels:
124124
- name: modules/couchbase
125125
color: '#006b75'
126126

127+
- name: modules/cratedb
128+
color: '#006b75'
129+
127130
- name: modules/db2
128131
color: '#006b75'
129132

docs/modules/databases/cratedb.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# CrateDB Module
2+
3+
See [Database containers](./index.md) for documentation and usage that is common to all relational database container types.
4+
5+
## Adding this module to your project dependencies
6+
7+
Add the following dependency to your `pom.xml`/`build.gradle` file:
8+
9+
=== "Gradle"
10+
```groovy
11+
testImplementation "org.testcontainers:cratedb:{{latest_version}}"
12+
```
13+
=== "Maven"
14+
```xml
15+
<dependency>
16+
<groupId>org.testcontainers</groupId>
17+
<artifactId>cratedb</artifactId>
18+
<version>{{latest_version}}</version>
19+
<scope>test</scope>
20+
</dependency>
21+
```
22+
23+
!!! hint
24+
Adding this Testcontainers library JAR will not automatically add a database driver JAR to your project. You should ensure that your project also has a suitable database driver as a dependency.
25+

docs/modules/databases/jdbc.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Insert `tc:` after `jdbc:` as follows. Note that the hostname, port and database
5151

5252
`jdbc:tc:cockroach:v21.2.3:///databasename`
5353

54+
#### Using CrateDB
55+
56+
`jdbc:tc:cratedb:5.2.3//localhost:5432/crate`
57+
5458
#### Using TiDB
5559

5660
`jdbc:tc:tidb:v6.1.0:///databasename`

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ nav:
5353
- modules/databases/cockroachdb.md
5454
- modules/databases/couchbase.md
5555
- modules/databases/clickhouse.md
56+
- modules/databases/cratedb.md
5657
- modules/databases/db2.md
5758
- modules/databases/dynalite.md
5859
- modules/databases/influxdb.md

modules/cratedb/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
description = "Testcontainers :: JDBC :: CrateDB"
2+
3+
dependencies {
4+
annotationProcessor 'com.google.auto.service:auto-service:1.0.1'
5+
compileOnly 'com.google.auto.service:auto-service:1.0.1'
6+
7+
api project(':jdbc')
8+
9+
testImplementation project(':jdbc-test')
10+
testImplementation 'org.postgresql:postgresql:42.5.4'
11+
12+
compileOnly 'org.jetbrains:annotations:24.0.0'
13+
}

0 commit comments

Comments
 (0)