Creates the indexes from an Entity, returning an empty Vec if there are none to create. See [IndexCreateStatement] for more details
(&self, entity: E)
| 35 | /// Creates the indexes from an Entity, returning an empty Vec if there are none |
| 36 | /// to create. See [IndexCreateStatement] for more details |
| 37 | pub fn create_index_from_entity<E>(&self, entity: E) -> Vec<IndexCreateStatement> |
| 38 | where |
| 39 | E: EntityTrait, |
| 40 | { |
| 41 | create_index_from_entity(entity, self.backend) |
| 42 | } |
| 43 | |
| 44 | /// Creates a column definition for example to update a table. |
| 45 | /// |