insert

abstract suspend fun insert(cargo: CargoRoomEntity)

Inserts a single cargo into the local database. If a conflict occurs, the existing cargo is replaced.

Parameters

cargo

The cargo to be inserted.