createTable
Deprecated
This function does not support analyzing dependencies among tables. Since this action is not frequently needed we can adopt the blocking approach. Use Exposed `SchemaUtils` and create multiple tables in batch instead, temporarily.
Replace with
import kotlinx.coroutines.withContext
import kotlinx.coroutines.Dispatchers
import org.jetbrains.exposed.v1.jdbc.SchemaUtils
Content copied to clipboard
withContext(Dispatchers.IO) { exposedTransaction { SchemaUtils.create(table) } }Content copied to clipboard
See also
SchemaUtils.create