mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-12-06 13:05:39 +00:00
production ready?
This commit is contained in:
@@ -10,11 +10,10 @@ import org.jetbrains.exposed.sql.Column
|
||||
import org.jetbrains.exposed.sql.Database
|
||||
|
||||
class ExposedRatingsRepo(
|
||||
database: Database,
|
||||
postIdColumnReference: Column<String>
|
||||
database: Database
|
||||
) : RatingsRepo, KeyValueRepo<PostId, Rating> by ExposedKeyValueRepo(
|
||||
database,
|
||||
{ text("post_id") references postIdColumnReference },
|
||||
{ text("post_id") },
|
||||
{ double("rating") },
|
||||
"ratings"
|
||||
).withMapper(
|
||||
|
||||
Reference in New Issue
Block a user