(option *tidbast.IndexOption)
| 1397 | } |
| 1398 | |
| 1399 | func getIndexType(option *tidbast.IndexOption) string { |
| 1400 | if option != nil { |
| 1401 | switch option.Tp { |
| 1402 | case tidbast.IndexTypeBtree, |
| 1403 | tidbast.IndexTypeHash, |
| 1404 | tidbast.IndexTypeRtree: |
| 1405 | return option.Tp.String() |
| 1406 | default: |
| 1407 | // Other index types |
| 1408 | } |
| 1409 | } |
| 1410 | return tidbast.IndexTypeBtree.String() |
| 1411 | } |
| 1412 | |
| 1413 | // isCurrentDatabase returns true if the given database is the current database. |
| 1414 | func isCurrentDatabase(d *model.DatabaseMetadata, database string) bool { |
no test coverage detected