fix(sqlserver): suggest database names in query completion

This commit is contained in:
guoyongchang authored and GitHub committed 2026-07-30 15:49:01 +08:00
1 parent 3285cb21a4
commit 79873443e4
9 files changed
+284 -45

No files matched your search

@@ -11,6 +11,10 @@ export function supportsDatabaseSchemaQualifier(dbType?: DatabaseType): boolean
return !!dbType && DATABASE_SCHEMA_QUALIFIED_TYPES.has(dbType);
}
export function supportsDatabaseNameCompletion(dbType?: DatabaseType): boolean {
return !!dbType && ((!isSchemaAware(dbType) && !isSingleDatabase(dbType)) || dbType === "sqlserver");
}
/**
* Doris-family engines that support multi-catalog federation (`SHOW CATALOGS`):
* Doris (incl. SelectDB) and StarRocks. Manticore Search shares the MySQL code