File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
crates/pgls_completions/src/relevance Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,21 @@ impl CompletionScore<'_> {
309309 }
310310 }
311311
312+ fn get_fully_qualified_name ( & self ) -> String {
313+ match self . data {
314+ CompletionRelevanceData :: Schema ( s) => s. name . clone ( ) ,
315+ CompletionRelevanceData :: Column ( c) => {
316+ format ! ( "{}.{}.{}" , c. schema_name, c. table_name, c. name)
317+ }
318+ CompletionRelevanceData :: Table ( t) => format ! ( "{}.{}" , t. schema, t. name) ,
319+ CompletionRelevanceData :: Function ( f) => format ! ( "{}.{}" , f. schema, f. name) ,
320+ CompletionRelevanceData :: Policy ( p) => {
321+ format ! ( "{}.{}.{}" , p. schema_name, p. table_name, p. name)
322+ }
323+ CompletionRelevanceData :: Role ( r) => r. name . clone ( ) ,
324+ }
325+ }
326+
312327 fn get_table_name ( & self ) -> Option < & str > {
313328 match self . data {
314329 CompletionRelevanceData :: Column ( c) => Some ( c. table_name . as_str ( ) ) ,
You can’t perform that action at this time.
0 commit comments