create_table_for_entity

Function create_table_for_entity 

Source
pub async fn create_table_for_entity(
    database: &dyn VirtualDatabase,
    entity: &Entity,
) -> Result<()>
Expand description

Create a database table for an entity

This is a convenience function that creates a table, indexes, and foreign keys for a single entity.

ยงArguments

  • database - The virtual database instance
  • entity - The entity to create a table for