Class SQLiteDatabase

java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<SQLiteConnection>
migratedb.v1.core.internal.database.sqlite.SQLiteDatabase
All Implemented Interfaces:
Closeable, AutoCloseable, Database<SQLiteConnection>

public class SQLiteDatabase extends BaseDatabase<SQLiteConnection>
  • Constructor Details

  • Method Details

    • doGetConnection

      protected SQLiteConnection doGetConnection(Connection connection)
      Description copied from class: BaseDatabase
      Retrieves a MigrateDB Connection for this JDBC connection.
      Specified by:
      doGetConnection in class BaseDatabase<SQLiteConnection>
    • ensureSupported

      public final void ensureSupported()
      Description copied from interface: Database
      Ensure MigrateDB supports this version of this database.
    • getRawCreateScript

      public String getRawCreateScript(Table<?,?> table, boolean baseline)
    • doGetCurrentUser

      protected String doGetCurrentUser()
      Overrides:
      doGetCurrentUser in class BaseDatabase<SQLiteConnection>
    • supportsDdlTransactions

      public boolean supportsDdlTransactions()
    • supportsChangingCurrentSchema

      public boolean supportsChangingCurrentSchema()
    • getBooleanTrue

      public String getBooleanTrue()
      Returns:
      The representation of the value true in a boolean column.
    • getBooleanFalse

      public String getBooleanFalse()
      Returns:
      The representation of the value false in a boolean column.
    • doQuote

      public String doQuote(String identifier)
      Description copied from class: BaseDatabase
      Quotes this identifier for use in SQL queries.
      Overrides:
      doQuote in class BaseDatabase<SQLiteConnection>
    • catalogIsSchema

      public boolean catalogIsSchema()
      Returns:
      true if this database uses a catalog to represent a schema, or false if a schema is simply a schema.
    • useSingleConnection

      public boolean useSingleConnection()
      Specified by:
      useSingleConnection in interface Database<SQLiteConnection>
      Overrides:
      useSingleConnection in class BaseDatabase<SQLiteConnection>
      Returns:
      Whether to use a single connection for both schema history table management and applying migrations.