MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / UseDB

Method UseDB

IceFireDB-SQLProxy/pkg/mysql/server/command.go:16–16  ·  view source on GitHub ↗

handle COM_INIT_DB command, you can check whether the dbName is valid, or other.

(conn *Conn, dbName string)

Source from the content-addressed store, hash-verified

14 CloseConn(c *Conn) error
15 // handle COM_INIT_DB command, you can check whether the dbName is valid, or other.
16 UseDB(conn *Conn, dbName string) error
17 // handle COM_QUERY command, like SELECT, INSERT, UPDATE, etc...
18 // If Result has a Resultset (SELECT, SHOW, etc...), we will send this as the response, otherwise, we will send Result
19 HandleQuery(conn *Conn, query string) (*Result, error)

Callers

nothing calls this directly

Implementers 2

HandleIceFireDB-SQLProxy/internal/mysql/hand
mysqlProxyIceFireDB-SQLite/internal/mysql/proxy.

Calls

no outgoing calls

Tested by

no test coverage detected