backend::service::plantings

Function create

source
pub async fn create(
    dtos: Vec<PlantingDto>,
    map_id: i32,
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<Vec<PlantingDto>, ServiceError>
Expand description

Create a new planting in the database.

ยงErrors

If the connection to the database could not be established.