parent
6a591a2816
commit
b318671285
@ -0,0 +1,12 @@
|
||||
package allin.utils
|
||||
|
||||
import allin.database
|
||||
import org.ktorm.database.Database
|
||||
|
||||
fun Database.Execute(request: String){
|
||||
database.useTransaction {
|
||||
val connection = it.connection
|
||||
connection.prepareStatement(request).execute()
|
||||
connection.commit()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue