# Package org.springframework.test.context.jdbc

@NonNullApi @NonNullFields package org.springframework.test.context.jdbc
JDBC support classes for the Spring TestContext Framework, including support for declarative SQL script execution via `@Sql`.

Related Packages
Package
Description
org.springframework.test.context
This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.
Class
Description
Sql
`@Sql` is used to annotate a test class or test method to configure SQL `Sql.scripts()` and `Sql.statements()` to be executed against a given database during integration tests.
Sql.ExecutionPhase
Enumeration of phases that dictate when SQL scripts are executed.
SqlConfig
`@SqlConfig` defines metadata that is used to determine how to parse and execute SQL scripts configured via the `@Sql` annotation.
SqlConfig.ErrorMode
Enumeration of modes that dictate how errors are handled while executing SQL statements.
SqlConfig.TransactionMode
Enumeration of modes that dictate whether SQL scripts should be executed within a transaction and what the transaction propagation behavior should be.
SqlGroup
Container annotation that aggregates several `@Sql` annotations.
SqlMergeMode
`@SqlMergeMode` is used to annotate a test class or test method to configure whether method-level `@Sql` declarations are merged with class-level `@Sql` declarations.
SqlMergeMode.MergeMode
Enumeration of modes that dictate whether method-level `@Sql` declarations are merged with class-level `@Sql` declarations.
SqlScriptsTestExecutionListener
`TestExecutionListener` that provides support for executing SQL `scripts` and inlined `statements` configured via the `@Sql` annotation.