Uses of Class
org.springframework.r2dbc.connection.init.ScriptException
Package
Description
Provides extensible support for initializing databases through scripts.
-
Uses of ScriptException in org.springframework.r2dbc.connection.init
Modifier and TypeClassDescriptionclass
Thrown byScriptUtils
if an SQL script cannot be read.class
Thrown byScriptUtils
if an SQL script cannot be properly parsed.class
Thrown byScriptUtils
if a statement in an SQL script failed when executing it against the target database.class
Thrown when we cannot determine anything more specific than "something went wrong while processing an SQL script": for example, anR2dbcException
from R2DBC that we cannot pinpoint more precisely.Modifier and TypeMethodDescriptionstatic reactor.core.publisher.Mono<Void>
ScriptUtils.executeSqlScript
(Connection connection, Resource resource) Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.static reactor.core.publisher.Mono<Void>
ScriptUtils.executeSqlScript
(Connection connection, EncodedResource resource) Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.static reactor.core.publisher.Mono<Void>
ScriptUtils.executeSqlScript
(Connection connection, EncodedResource resource, DataBufferFactory dataBufferFactory, boolean continueOnError, boolean ignoreFailedDrops, String[] commentPrefixes, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter) Execute the given SQL script.static reactor.core.publisher.Mono<Void>
ScriptUtils.executeSqlScript
(Connection connection, EncodedResource resource, DataBufferFactory dataBufferFactory, boolean continueOnError, boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter) Execute the given SQL script.reactor.core.publisher.Mono<Void>
CompositeDatabasePopulator.populate
(Connection connection) reactor.core.publisher.Mono<Void>
DatabasePopulator.populate
(Connection connection) Populate, initialize, or clean up the database using the provided R2DBCConnection
.reactor.core.publisher.Mono<Void>
ResourceDatabasePopulator.populate
(Connection connection)