ListTables returns a list of tables in this database
(database string)
| 69 | |
| 70 | // ListTables returns a list of tables in this database |
| 71 | func (mdb *db) ListTables(database string) ([]string, error) { |
| 72 | var tables []string |
| 73 | err := mdb.db.Select(&tables, listTablesQuery) |
| 74 | return tables, err |
| 75 | } |
| 76 | |
| 77 | // DropTable drops a given table from the database |
| 78 | func (mdb *db) DropTable(name string) error { |