ListTables returns a list of tables in this database
(database string)
| 90 | |
| 91 | // ListTables returns a list of tables in this database |
| 92 | func (pdb *db) ListTables(database string) ([]string, error) { |
| 93 | var tables []string |
| 94 | err := pdb.Select(&tables, listTablesQuery) |
| 95 | return tables, pdb.handle.ConvertError(err) |
| 96 | } |
| 97 | |
| 98 | // DropTable drops a given table from the database |
| 99 | func (pdb *db) DropTable(name string) error { |
no test coverage detected