Skip to content

Commit

Permalink
fix(rules): add TDengine
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 2, 2023
1 parent 80ba63a commit 58bb923
Show file tree
Hide file tree
Showing 8 changed files with 46 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 @@ -400,6 +400,7 @@ exports[`all > should match everything 1`] = `
"sveltejs",
"symfony",
"tailwind",
"tdengine",
"teamcity",
"teamspeak",
"telegraf",
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 @@ -70,6 +70,7 @@ import './snowflake.js';
import './sqlite.js';
import './supabase.postgres.js';
import './surrealdb.js';
import './tdengine.js';
import './tidb.js';
import './typesense.js';
import './typesensecloud.js';
Expand Down
14 changes: 14 additions & 0 deletions src/rules/db/tdengine.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register } from '../../register.js';

register({
tech: 'tdengine',
name: 'TDengine',
type: 'db',
dependencies: [
{ type: 'docker', name: 'tdengine/tdengine' },
{ type: 'npm', name: '@tdengine/rest' },
{ type: 'npm', name: '@tdengine/client' },
{ type: 'golang', name: 'github.com/taosdata/driver-go/v3/taosSql' },
{ type: 'rust', name: 'taos' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ exports[`docker > should match everything 1`] = `
"supabase.realtime",
"supabase.storage",
"surrealdb",
"tdengine",
"teamspeak",
"telegraf",
"telegram",
Expand Down Expand Up @@ -788,6 +789,11 @@ exports[`docker > should match everything 2`] = `
"surrealdb/surrealdb",
"0.0.0",
],
[
"docker",
"tdengine/tdengine",
"0.0.0",
],
[
"docker",
"teamspeak",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"slack",
"splitio",
"stripe",
"tdengine",
"telegram",
"twilio",
"typesense",
Expand Down Expand Up @@ -638,6 +639,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/stripe/stripe-go",
"v1.0.0",
],
[
"golang",
"github.com/taosdata/driver-go/v3/taosSql",
"v1.0.0",
],
[
"golang",
"github.com/twilio/twilio-go",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ exports[`npm > should match everything 1`] = `
"surrealdb",
"sveltejs",
"tailwind",
"tdengine",
"telegram",
"tensorflow",
"terraform",
Expand Down Expand Up @@ -1378,6 +1379,16 @@ exports[`npm > should match everything 2`] = `
"@sveltejs/vite-plugin-svelte",
"0.0.0",
],
[
"npm",
"@tdengine/client",
"0.0.0",
],
[
"npm",
"@tdengine/rest",
"0.0.0",
],
[
"npm",
"@tensorflow/tfjs",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ exports[`rust (component) > should match everything 1`] = `
"slack",
"snowflake",
"sqlite",
"tdengine",
"telegram",
"typesense",
"vercel",
Expand Down Expand Up @@ -556,6 +557,11 @@ exports[`rust (component) > should match everything 2`] = `
"sqlite",
"1.0.0",
],
[
"rust",
"taos",
"1.0.0",
],
[
"rust",
"teloxide",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ export type AllowedKeys =
| 'symfony'
| 'tailscale'
| 'tailwind'
| 'tdengine'
| 'teamcity'
| 'teamspeak'
| 'telegraf'
Expand Down

0 comments on commit 58bb923

Please sign in to comment.