Drop executes the DROP DATABASE query.
(database string)
| 51 | |
| 52 | // Drop executes the DROP DATABASE query. |
| 53 | func (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). |
| 60 | func (db *MySQL) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error { |