Skip to content

Commit

Permalink
fix(rules): add CockroachDB
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Jul 4, 2023
1 parent 5567105 commit 712b0ca
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TODO.todo
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Terraform:
- ???
✔ Mongo DB Atlas @done(23-05-02 12:09)
✔ Elastic stack @done(23-05-02 12:13)
- CockroachDB
CockroachDB @done(23-07-04 14:52)
- Redis cloud
- snowflake
- couchbase capella
Expand Down
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const list: TechItem[] = [
{ key: 'circleci', name: 'CircleCi', type: 'ci' },
{ key: 'cirrusci', name: 'CirrusCi', type: 'ci' },
{ key: 'couchbase', name: 'Couchbase', type: 'db' },
{ key: 'cockroachdb', name: 'CockroachDB', type: 'db' },
{ key: 'cloudflare', name: 'Cloudflare', type: 'hosting' },
{ key: 'codesandboxci', name: 'CodesandboxCI', type: 'ci' },
{ key: 'couchbase', name: 'Couchbase', type: 'db' },
Expand Down
11 changes: 11 additions & 0 deletions src/rules/db/cockroachdb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../rules.js';

register({
tech: 'cockroachdb',
dependencies: [
{
type: 'terraform',
name: 'registry.terraform.io/cockroachdb/cockroach',
},
],
});
7 changes: 4 additions & 3 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import './aws.dynamodb.js';
import './cassandra.js';
import './cockroachdb.js';
import './couchbase.js';
import './aws.dynamodb.js';
import './elasticsearch.js';
import './gcp.bigquery.js';
import './gcp.sql.js';
import './influxdb.js';
import './mariadb.js';
import './memcached.js';
import './mongo.js';
import './mysql.js';
import './neo4j.js';
import './gcp.bigquery.js';
import './gcp.sql.js';
import './percona.js';
import './postgres.js';
import './redis.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"auth0",
"aws",
"azure",
"cockroachdb",
"datadog",
"elasticsearch",
"elasticstack",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type AllowedKeys =
| 'circleci'
| 'cirrusci'
| 'cloudflare'
| 'cockroachdb'
| 'codesandboxci'
| 'couchbase'
| 'cplusplus'
Expand Down

0 comments on commit 712b0ca

Please sign in to comment.