Skip to content

Commit 7911fe0

Browse files
committed
feat: add nudges to queries
1 parent eab6e0a commit 7911fe0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sql/recent-query.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { SegmentedQueryCache } from "../sync/seen-cache.ts";
44
import {
55
Analyzer,
66
DiscoveredColumnReference,
7+
Nudge,
78
SQLCommenterTag,
89
} from "@query-doctor/core";
910
import { parse } from "@libpg-query/parser";
@@ -34,6 +35,7 @@ export class RecentQuery {
3435
readonly tableReferences: string[],
3536
readonly columnReferences: DiscoveredColumnReference[],
3637
readonly tags: SQLCommenterTag[],
38+
readonly nudges: Nudge[],
3739
readonly hash: QueryHash,
3840
readonly seenAt: number,
3941
) {
@@ -71,6 +73,7 @@ export class RecentQuery {
7173
analysis.referencedTables,
7274
analysis.indexesToCheck,
7375
analysis.tags,
76+
analysis.nudges,
7477
hash,
7578
seenAt,
7679
);

0 commit comments

Comments
 (0)