MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / create_table_from_entity

Method create_table_from_entity

src/schema/entity.rs:28–33  ·  view source on GitHub ↗

Creates a table from an Entity. See [TableCreateStatement] for more details.

(&self, entity: E)

Source from the content-addressed store, hash-verified

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

Callers 3

mainFunction · 0.80
installMethod · 0.80
init_dbFunction · 0.80

Calls 1

create_table_from_entityFunction · 0.85

Tested by

no test coverage detected