Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add scene config for completion (#12484)

rebelice2783ae3a2954
diff --git a/backend/api/lsp/commands.go b/backend/api/lsp/commands.go
index 07c0644a90..5a1991942d 100644
--- a/backend/api/lsp/commands.go
+++ b/backend/api/lsp/commands.go
@@ -23,4 +23,11 @@ type SetMetadataCommandArguments struct {
// For PostgreSQL, it's required.
// For other database engines, it's optional.
DatabaseName string `json:"databaseName,omitempty"`
+ // The scene is the scene for completion.
+ // Available scenes: "query", "all".
+ // If not provided, it defaults to "all".
+ // If the scene is "query", it will only return completion items for query statements,
+ // in other words, SELECT statements only.
+ // If the scene is "all", it will return completion items for all statements.
+ Scene string `json:"scene,omitempty"`
}