fn get_new_entity_ids(
    transaction: &mut Transaction<'_>,
    max: impl FnMut(i64) -> i64
) -> Result<Range<i64>, PersistenceError>
Expand description

NOTE: This relies heavily on serializability to work correctly.

The count function takes the starting entity id, and returns the desired count of new entity IDs.

These are then inserted into the entities table.