class DbSetupBuilderA builder allowing to configure a DbSetup from a lambda expression whose receiver type is this builder. The intended usage is to use the dbSetup top level function.
to - The destination of the DbSetup| <init> |
DbSetupBuilder(to: Destination, binderConfiguration: BinderConfiguration = DefaultBinderConfiguration.INSTANCE)A builder allowing to configure a DbSetup from a lambda expression whose receiver type is this builder. The intended usage is to use the dbSetup top level function. |
| binderConfiguration |
var binderConfiguration: BinderConfigurationThe binder configuration of the DbSetup. It not set, the default configuration is used |
| deleteAllFrom |
fun deleteAllFrom(table: String): <ERROR CLASS>Adds a DeleteAll operation to the DbSetup fun deleteAllFrom(vararg tables: String): <ERROR CLASS>fun deleteAllFrom(tables: List<String>): <ERROR CLASS>Adds DeleteAll operations to the DbSetup |
| execute |
fun execute(operation: Operation): <ERROR CLASS>Adds an operation to the DbSetup. Custom extension functions typically delegate to this method to add the operation they want. |
| insertInto |
fun insertInto(table: String, configure: Builder.() -> Unit): UnitAdds an Insert operation to the DbSetup, using a lambda expression to configure it. |
| sql |
fun sql(statement: String): <ERROR CLASS>Adds a SqlOperation to the DbSetup fun sql(vararg statements: String): <ERROR CLASS>fun sql(statements: List<String>): <ERROR CLASS>Adds SqlOperations to the DbSetup |
| truncate |
fun truncate(table: String): <ERROR CLASS>Adds a Truncate operation to the DbSetup fun truncate(vararg tables: String): <ERROR CLASS>fun truncate(tables: List<String>): <ERROR CLASS>Adds Truncate operations to the DbSetup |