MCPcopy Create free account
hub / github.com/apecloud/myduckserver / GetCatalogProvider

Method GetCatalogProvider

pgserver/duck_handler.go:96–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94var _ Handler = &DuckHandler{}
95
96func (h *DuckHandler) GetCatalogProvider() *catalog.DatabaseProvider {
97 provider, ok := h.e.Analyzer.Catalog.DbProvider.(*catalog.DatabaseProvider)
98 if !ok {
99 return nil
100 }
101 return provider
102}
103
104// ComBind implements the Handler interface.
105func (h *DuckHandler) ComBind(ctx context.Context, c *mysql.Conn, prepared PreparedStatementData, bindVars []any) ([]pgproto3.FieldDescription, error) {

Callers 2

executeQueryMethod · 0.95
chooseInitialDatabaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected