add mimetypes

This commit is contained in:
2020-09-26 21:57:55 +06:00
parent 6f46413a90
commit 56fd480542
8 changed files with 2198 additions and 8 deletions

View File

@@ -4,10 +4,10 @@ import kotlinx.coroutines.channels.Channel
abstract class AbstractExposedCRUDRepo<ObjectType, IdType, InputValueType>(
flowsChannelsSize: Int = Channel.BUFFERED,
databaseName: String = ""
tableName: String = ""
) :
AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
flowsChannelsSize,
databaseName
tableName
),
ExposedCRUDRepo<ObjectType, IdType>

View File

@@ -12,9 +12,9 @@ import org.jetbrains.exposed.sql.transactions.transaction
abstract class AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
flowsChannelsSize: Int = 64,
databaseName: String = ""
tableName: String = ""
) :
AbstractExposedReadCRUDRepo<ObjectType, IdType>(databaseName),
AbstractExposedReadCRUDRepo<ObjectType, IdType>(tableName),
ExposedCRUDRepo<ObjectType, IdType>,
WriteStandardCRUDRepo<ObjectType, IdType, InputValueType>
{
@@ -102,4 +102,4 @@ abstract class AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
}
}
}
}
}

View File

@@ -1,8 +1,9 @@
package dev.inmo.micro_utils.repos.exposed
import dev.inmo.micro_utils.repos.Repo
import org.jetbrains.exposed.sql.*
interface ExposedCRUDRepo<ObjectType, IdType> {
interface ExposedCRUDRepo<ObjectType, IdType> : Repo {
val database: Database
val ResultRow.asObject: ObjectType