func (db *DB) GetIndexes(ctx context.Context) ([]Index, error) {
	if finder, ok := db.driverDB.(driver.Finder); ok {
		dIndexes, err := finder.GetIndexes(ctx)
		indexes := make([]Index, len(dIndexes))
		for i, index := range dIndexes {
			indexes[i] = Index(index)
		}
		return indexes, err
	}
	return nil, findNotImplemented
}
// GetIndexes returns the indexes defined on the current database.
GetIndexes returns the indexes defined on the current database.
// GetIndexes returns the indexes defined on the current database .
func (db *DB) GetIndexes(ctx context.Context) ([]Index, error) {
	if finder, ok := db.driverDB.(driver.Finder); ok {
		dIndexes, err := finder.GetIndexes(ctx)
		indexes := make([]Index, len(dIndexes))
		for i, index := range dIndexes {
			indexes[i] = Index(index)
		}
		return indexes, err
	}
	return nil, findNotImplemented
}
func ( db * DB ) GetIndexes ( ctx context . Context ) ( [ ] Index , error ) { if finder , ok := db . driverDB . ( driver . Finder ) ; ok { dIndexes , err := finder . GetIndexes ( ctx ) indexes := make ( [ ] Index , len ( dIndexes ) ) for i , index := range dIndexes { indexes [ i ] = Index ( index ) } return indexes , err } return nil , findNotImplemented }
GetIndexes returns the indexes defined on the current database.
GetIndexes returns the indexes defined on the current database .