Skip to content

Commit d00534e

Browse files
psteinroeclaude
andcommitted
test: update snapshots with corrected formatting
- Remove backslash escaping from backticks in message text - Update diagnostic ordering to match cache_key sort order 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3f06f59 commit d00534e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

crates/pgls_splinter/tests/snapshots/multiple_issues.snap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ source: crates/pgls_splinter/tests/diagnostics.rs
33
expression: content
44
snapshot_kind: text
55
---
6-
Category: splinter/performance/unindexedForeignKeys
7-
Severity: Information
8-
Message: Table \`public.child_table\` has a foreign key \`child_table_parent_id_fkey\` without a covering index. This can lead to suboptimal query performance.
9-
Advices:
10-
Identifies foreign key constraints without a covering index, which can impact database performance.
11-
[Info] table: public.child_table
12-
{&quot;fkey_name&quot;:&quot;child_table_parent_id_fkey&quot;,&quot;fkey_columns&quot;:[2]}
13-
[Info] Remediation: https://supabase.com/docs/guides/database/database-linter?lint=0001_unindexed_foreign_keys
14-
15-
---
16-
176
Category: splinter/performance/noPrimaryKey
187
Severity: Information
198
Message: Table \`public.no_pk_table\` does not have a primary key
209
Advices:
2110
Detects if a table does not have a primary key. Tables without a primary key can be inefficient to interact with at scale.
2211
[Info] table: public.no_pk_table
2312
[Info] Remediation: https://supabase.com/docs/guides/database/database-linter?lint=0004_no_primary_key
13+
14+
---
15+
16+
Category: splinter/performance/unindexedForeignKeys
17+
Severity: Information
18+
Message: Table `public.child_table` has a foreign key `child_table_parent_id_fkey` without a covering index. This can lead to suboptimal query performance.
19+
Advices:
20+
Identifies foreign key constraints without a covering index, which can impact database performance.
21+
[Info] table: public.child_table
22+
{&quot;fkey_name&quot;:&quot;child_table_parent_id_fkey&quot;,&quot;fkey_columns&quot;:[2]}
23+
[Info] Remediation: https://supabase.com/docs/guides/database/database-linter?lint=0001_unindexed_foreign_keys

crates/pgls_splinter/tests/snapshots/unindexed_foreign_key.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ snapshot_kind: text
55
---
66
Category: splinter/performance/unindexedForeignKeys
77
Severity: Information
8-
Message: Table \`public.posts\` has a foreign key \`posts_user_id_fkey\` without a covering index. This can lead to suboptimal query performance.
8+
Message: Table `public.posts` has a foreign key `posts_user_id_fkey` without a covering index. This can lead to suboptimal query performance.
99
Advices:
1010
Identifies foreign key constraints without a covering index, which can impact database performance.
1111
[Info] table: public.posts

0 commit comments

Comments
 (0)