TransportDao

interface TransportDao

The Data Access Object for the TransportRoomEntity class.

Functions

Link copied to clipboard
abstract suspend fun delete(transport: TransportRoomEntity)

Deletes a transport from the local database.

Link copied to clipboard

Retrieves the active transport from the local database. The result includes cargos and images associated with the transport.

Link copied to clipboard

Retrieves a transport from the local database by route number.

Link copied to clipboard

Retrieves a list of transports from the local database that are marked for synchronization. The result includes cargos and images associated with each transport.

Link copied to clipboard
abstract suspend fun insert(transport: TransportRoomEntity)

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

Link copied to clipboard
abstract suspend fun insertAll(transports: List<TransportRoomEntity>)

Inserts a list of transports into the local database. If a conflict occurs, the existing transports are replaced.

Link copied to clipboard
abstract suspend fun update(transport: TransportRoomEntity)

Updates a transport in the local database.