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

Method UseDB

IceFireDB-SQLite/pkg/mysql/server/command.go:17–17  ·  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

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

Callers 5

readDbMethod · 0.65
dispatchMethod · 0.65
UseDBMethod · 0.65
readDbMethod · 0.65
dispatchMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected