You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package allin.utils
|
|
|
|
import allin.database
|
|
import org.ktorm.database.Database
|
|
|
|
fun Database.Execute(request: String){
|
|
if(!request.isNullOrEmpty())
|
|
database.useTransaction {
|
|
val connection = it.connection
|
|
connection.prepareStatement(request).execute()
|
|
connection.commit()
|
|
}
|
|
} |