This commit is contained in:
kageru 2019-09-29 17:18:38 +02:00
parent f16fea1f49
commit 15bc0d4ce2
6 changed files with 6 additions and 7 deletions

@ -1,7 +1,6 @@
package moe.kageru.kodeshare.pages
import io.ktor.html.HtmlContent
import io.ktor.http.HttpStatusCode
import kotlinx.html.*
object PastePage {

@ -25,7 +25,7 @@ object PasteDao {
PasteTable.select { PasteTable.uri.eq(uri) }.firstOrNull()
}?.toPaste()
init {
init {
val source = MariaDbDataSource().apply {
userName = config[DatabaseSpec.user]
setPassword(config[DatabaseSpec.password])
@ -55,7 +55,7 @@ private object PasteTable : Table() {
val uri = varchar("uri", 10).uniqueIndex()
}
class MediumTextColumnType: IColumnType by TextColumnType() {
class MediumTextColumnType : IColumnType by TextColumnType() {
override fun sqlType(): String = "MEDIUMTEXT"
}