Back to Exposed

dropDatabase

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc/-schema-utils/drop-database.html

1.2.0707 B
Original Source

dropDatabase

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

Drops 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().setAutoCommit(true), and followed by connection().setAutoCommit(false).

See also

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

Generated by Dokka © 2026 Copyright