Skip to content

Commit

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

register({
tech: 'surrealdb',
name: 'SurrealDB',
type: 'db',
dependencies: [
{ type: 'docker', name: 'surrealdb/surrealdb' },
{ type: 'npm', name: 'surrealdb.js' },
],
});
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 @@ -95,6 +95,7 @@ exports[`docker > should match everything 1`] = `
"supabase.postgres",
"supabase.realtime",
"supabase.storage",
"surrealdb",
"teamspeak",
"telegraf",
"telegram",
Expand Down Expand Up @@ -782,6 +783,11 @@ exports[`docker > should match everything 2`] = `
"supabase/storage-api",
"0.0.0",
],
[
"docker",
"surrealdb/surrealdb",
"0.0.0",
],
[
"docker",
"teamspeak",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ exports[`npm > should match everything 1`] = `
"supabase.postgres",
"supabase.realtime",
"supabase.storage",
"surrealdb",
"sveltejs",
"tailwind",
"telegram",
Expand Down Expand Up @@ -2342,6 +2343,11 @@ exports[`npm > should match everything 2`] = `
"supabase/functions-php",
"0.0.0",
],
[
"npm",
"surrealdb.js",
"0.0.0",
],
[
"npm",
"svelte",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ export type AllowedKeys =
| 'supabase.realtime'
| 'supabase.storage'
| 'supabase'
| 'surrealdb'
| 'sveltejs'
| 'swift'
| 'symfony'
Expand Down

0 comments on commit 80ba63a

Please sign in to comment.