Back to Exposed

createDatabase

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc/-schema-utils/create-database.html

1.2.0689 B
Original Source

createDatabase

fun createDatabase(vararg databases: String, inBatch: Boolean = false)

Creates databases

Parameters

databases

the names of the databases

inBatch

flag to perform database creation in a single batch

For PostgreSQL, calls to this function should be preceded by connection.autoCommit = true, and followed by connection.autoCommit = false.

See also

org.jetbrains.exposed.v1.tests.shared.ddl.CreateDatabaseTest

Generated by Dokka © 2026 Copyright