MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewHandler

Function NewHandler

pkg/lsp/handler.go:132–138  ·  view source on GitHub ↗

NewHandler creates a new LSP request handler. This constructor initializes the handler with a reference to the server and sets up the SQL keywords database for hover documentation and completion. The handler uses DialectGeneric for maximum SQL compatibility across PostgreSQL, MySQL, SQL Server, Or

(server *Server)

Source from the content-addressed store, hash-verified

130//
131// Returns a fully initialized Handler ready to process LSP requests.
132func NewHandler(server *Server) *Handler {
133 return &Handler{
134 server: server,
135 keywords: keywords.New(keywords.DialectGeneric, true),
136 debounceTimers: make(map[string]*time.Timer),
137 }
138}
139
140// HandleRequest processes an LSP request and returns a result
141func (h *Handler) HandleRequest(method string, params json.RawMessage) (interface{}, error) {

Callers 1

NewServerFunction · 0.85

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected