Interface ModuleStorage
public interface ModuleStorage
Provides SQL storage for one module.
-
Method Details
-
prefix
-
table
Adds the module prefix to a local table name.- Parameters:
localName- module-local table name- Returns:
- full table name
- Throws:
IllegalArgumentException- if the name is not a lowercase SQL name
-
migrations
ModuleMigrations migrations()Returns module migration operations.- Returns:
- module migration operations
-
jdbi
org.jdbi.v3.core.Jdbi jdbi()Returns the shared Jdbi instance. Usetable(String)for each module table. Usejdbi().inTransaction(...)for a transaction with multiple statements.- Returns:
- shared JDBI instance
-