Creates a table from an Entity. See [TableCreateStatement] for more details.
(&self, entity: E)
| 26 | |
| 27 | /// Creates a table from an Entity. See [TableCreateStatement] for more details. |
| 28 | pub fn create_table_from_entity<E>(&self, entity: E) -> TableCreateStatement |
| 29 | where |
| 30 | E: EntityTrait, |
| 31 | { |
| 32 | create_table_from_entity(entity, self.backend) |
| 33 | } |
| 34 | |
| 35 | /// Creates the indexes from an Entity, returning an empty Vec if there are none |
| 36 | /// to create. See [IndexCreateStatement] for more details |
no test coverage detected