Class SQLiteGlobal


  • public final class SQLiteGlobal
    extends Object
    Provides access to SQLite functions that affect all database connection, such as memory management. The native code associated with SQLiteGlobal is also sets global configuration options using sqlite3_config() then calls sqlite3_initialize() to ensure that the SQLite library is properly initialized exactly once before any other framework or application code has a chance to run. Verbose SQLite logging is enabled if the "log.tag.SQLiteLog" property is set to "V". (per SQLiteDebug.DEBUG_SQL_LOG).
    • Method Detail

      • releaseMemory

        public static int releaseMemory()
        Attempts to release memory by pruning the SQLite page cache and other internal data structures.
        Returns:
        The number of bytes that were freed.
      • getDefaultPageSize

        public static int getDefaultPageSize()
        Gets the default page size to use when creating a database.
      • getDefaultJournalMode

        public static String getDefaultJournalMode()
        Gets the default journal mode when WAL is not in use.
      • getJournalSizeLimit

        public static int getJournalSizeLimit()
        Gets the journal size limit in bytes.
      • getDefaultSyncMode

        public static String getDefaultSyncMode()
        Gets the default database synchronization mode when WAL is not in use.
      • getWALSyncMode

        public static String getWALSyncMode()
        Gets the database synchronization mode when in WAL mode.
      • getWALAutoCheckpoint

        public static int getWALAutoCheckpoint()
        Gets the WAL auto-checkpoint integer in database pages.
      • getWALConnectionPoolSize

        public static int getWALConnectionPoolSize()
        Gets the connection pool size when in WAL mode.