production ready?

This commit is contained in:
2022-09-04 15:46:45 +06:00
parent 1e393103c8
commit e8637a2de6
12 changed files with 130 additions and 19 deletions

View File

@@ -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(