Interface ModuleStorage


public interface ModuleStorage
Provides SQL storage for one module.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jdbi.v3.core.Jdbi
    Returns the shared Jdbi instance.
    Returns module migration operations.
    Returns the validated module table prefix.
    table(String localName)
    Adds the module prefix to a local table name.
  • Method Details

    • prefix

      String prefix()
      Returns the validated module table prefix.
      Returns:
      module table prefix
    • table

      String table(String localName)
      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. Use table(String) for each module table. Use jdbi().inTransaction(...) for a transaction with multiple statements.
      Returns:
      shared JDBI instance