Skip to content

Commit

Permalink
fix(rules): add TimescaleDB
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 2, 2023
1 parent 519edf7 commit 93d24a1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ exports[`all > should match everything 1`] = `
"terraform",
"terragrunt",
"tidb",
"timescaledb",
"tinybird",
"traefik",
"travisci",
Expand Down
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import './supabase.postgres.js';
import './surrealdb.js';
import './tdengine.js';
import './tidb.js';
import './timescaledb.js';
import './typesense.js';
import './typesensecloud.js';
import './upstash.redis.js';
Expand Down
11 changes: 11 additions & 0 deletions src/rules/db/timescaledb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'timescaledb',
name: 'TimescaleDB',
type: 'db',
dependencies: [
{ type: 'docker', name: 'timescale/timescaledb-ha' },
{ type: 'docker', name: 'timescale/timescaledb' },
],
});
11 changes: 11 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ exports[`docker > should match everything 1`] = `
"telegram",
"tensorflow",
"tidb",
"timescaledb",
"traefik",
"trufflesecurity",
"typesense",
Expand Down Expand Up @@ -816,6 +817,16 @@ exports[`docker > should match everything 2`] = `
"tensorflow/tensorflow",
"0.0.0",
],
[
"docker",
"timescale/timescaledb",
"0.0.0",
],
[
"docker",
"timescale/timescaledb-ha",
"0.0.0",
],
[
"docker",
"traefik",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ export type AllowedKeys =
| 'terraform'
| 'terragrunt'
| 'tidb'
| 'timescaledb'
| 'tinybird'
| 'traefik'
| 'travisci'
Expand Down

0 comments on commit 93d24a1

Please sign in to comment.