feat(database): add grid range editing and SQL filters

Add rectangular database cell selection and TSV copy/paste, plus schema-aware SQL completion and highlighting in WHERE and ORDER BY fields. Preserve whitespace in highlighted SQL and match the input caret scroll width so the overlay remains aligned.

Co-authored-by: zzxzz12345 <[email protected]>
Цей коміт міститься в:
胡翀таzzxzz12345 authored and GitHub committed 2026-10-29 14:21:14 +08:00
1 джерело 06d78cf524
коміт 75b1704f78
11 files changed
+522 -19

No files matched your search

+6
Переглянути файл
@@ -47,6 +47,12 @@ export interface SqlCandidate {
doc?: string;
}
/** Match the console's automatic trigger: a word or a qualifier followed by a dot. */
export function shouldAutoCompleteSql(analysis: Analysis): boolean {
const typed = analysis.prefix.text;
return analysis.context.kind !== "none" && (!!typed || !!analysis.qualifier) && !/^\d/.test(typed);
}
const MAX_ALL_COLUMNS = 3000;
const eq = (a: string | null | undefined, b: string | null | undefined) =>