GetTables returns tables
()
| 207 | |
| 208 | // GetTables returns tables |
| 209 | func (m Migrator) GetTables() (tableList []string, err error) { |
| 210 | err = m.DB.Raw("SELECT TABLE_NAME FROM information_schema.tables where TABLE_SCHEMA=?", m.CurrentDatabase()). |
| 211 | Scan(&tableList).Error |
| 212 | return |
| 213 | } |
| 214 | |
| 215 | // CreateTable create table in database for values |
| 216 | func (m Migrator) CreateTable(values ...interface{}) error { |
nothing calls this directly
no test coverage detected