Skip to content

Commit

Permalink
fix(rules): add NeonDB
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 3, 2023
1 parent 5bbd688 commit 5aa9b75
Show file tree
Hide file tree
Showing 6 changed files with 38 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 @@ -278,6 +278,7 @@ exports[`all > should match everything 1`] = `
"mysql",
"nats",
"neo4j",
"neondb",
"netlify",
"newrelic",
"nextcloud",
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 @@ -48,6 +48,7 @@ import './milvusdb.js';
import './mongodb.js';
import './mysql.js';
import './neo4j.js';
import './neondb.js';
import './oceanbase.js';
import './ovh.database.js';
import './percona.js';
Expand Down
13 changes: 13 additions & 0 deletions src/rules/db/neondb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'neondb',
name: 'NeonDB',
type: 'db',
dependencies: [
{ type: 'npm', name: '@neondatabase/serverless' },
{ type: 'npm', name: '@neondatabase/api-client' },
{ type: 'npm', name: '@prisma/adapter-neon' },
{ type: 'docker', name: 'neondatabase/neon' },
],
});
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 @@ -73,6 +73,7 @@ exports[`docker > should match everything 1`] = `
"mysql",
"nats",
"neo4j",
"neondb",
"nextcloud",
"nginx",
"nodejs",
Expand Down Expand Up @@ -795,6 +796,11 @@ exports[`docker > should match everything 2`] = `
"neo4j",
"0.0.0",
],
[
"docker",
"neondatabase/neon",
"0.0.0",
],
[
"docker",
"newrelic/newrelic-prometheus-configurator",
Expand Down
16 changes: 16 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ exports[`npm > should match everything 1`] = `
"mysql",
"nats",
"neo4j",
"neondb",
"netlify",
"newrelic",
"nextjs",
Expand Down Expand Up @@ -1115,6 +1116,16 @@ exports[`npm > should match everything 2`] = `
"@miniflare/cache",
"0.0.0",
],
[
"npm",
"@neondatabase/api-client",
"0.0.0",
],
[
"npm",
"@neondatabase/serverless",
"0.0.0",
],
[
"npm",
"@netlify/build",
Expand Down Expand Up @@ -1235,6 +1246,11 @@ exports[`npm > should match everything 2`] = `
"@placekit/client-js",
"0.0.0",
],
[
"npm",
"@prisma/adapter-neon",
"0.0.0",
],
[
"npm",
"@pulumi/opsgenie",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export type AllowedKeys =
| 'mysql'
| 'nats'
| 'neo4j'
| 'neondb'
| 'netlify'
| 'newrelic'
| 'nextcloud'
Expand Down

0 comments on commit 5aa9b75

Please sign in to comment.