UploadsService

class UploadsService(db: DatabaseMysql)

Constructors

Link copied to clipboard
fun UploadsService(db: DatabaseMysql)

Functions

Link copied to clipboard
suspend fun deleteByFileName(fileName: String)
Link copied to clipboard
suspend fun getAll(): List<Upload>

Get all models

Link copied to clipboard
suspend fun getByFileName(fileName: String): Upload?

Get model by Uploads.fileName

Link copied to clipboard
suspend fun getById(id: Int): Upload?

Get model by Uploads.id

Link copied to clipboard
suspend fun getByOriginalFileName(originalFileName: String): Upload?
Link copied to clipboard
suspend fun insert(    fileName: String?,     fileMime: String?,     originalFileName: String?): Upload

Add model Upload