MCPcopy Create free account
hub / github.com/kataras/iris / Drop

Method Drop

_examples/database/mysql/sql/mysql.go:53–57  ·  view source on GitHub ↗

Drop executes the DROP DATABASE query.

(database string)

Source from the content-addressed store, hash-verified

51
52// Drop executes the DROP DATABASE query.
53func (db *MySQL) Drop(database string) error {
54 q := fmt.Sprintf("DROP DATABASE %s;", database)
55 _, err := db.Conn.Exec(q)
56 return err
57}
58
59// Select performs the SELECT query for this database (dsn database name is required).
60func (db *MySQL) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected