-
public final class SQLiteDatabaseConfigurationDescribes how to configure a database.
The purpose of this object is to keep track of all of the little configuration settings that are applied to a database after it is opened so that they can be applied to all connections in the connection pool uniformly.
Each connection maintains its own copy of this object so it can keep track of which settings have already been applied.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringMEMORY_DB_PATHpublic final Stringpathpublic final Stringlabelpublic intopenFlagspublic SQLiteUpdateHooksqliteUpdateHookpublic intmaxSqlCacheSizepublic Localelocalepublic booleanforeignKeyConstraintsEnabledpublic final List<SQLiteCustomFunction>customFunctionspublic final List<SQLiteFunction>functionspublic final List<SQLiteCustomExtension>customExtensions
-
Constructor Summary
Constructors Constructor Description SQLiteDatabaseConfiguration(String path, int openFlags)Creates a database configuration with the required parameters for opening adatabase and default values for all other parameters. SQLiteDatabaseConfiguration(String path, int openFlags, List<SQLiteCustomFunction> customFunctions, List<SQLiteFunction> functions, List<SQLiteCustomExtension> extensions)Creates a database configuration with the required parameters for opening adatabase and default values for all other parameters.
-
Method Summary
Modifier and Type Method Description booleanisInMemoryDb()Returns true if the database is in-memory. -
-
Constructor Detail
-
SQLiteDatabaseConfiguration
SQLiteDatabaseConfiguration(String path, int openFlags)
Creates a database configuration with the required parameters for opening adatabase and default values for all other parameters.- Parameters:
path- The database path.openFlags- Open flags for the database, such as OPEN_READWRITE.
-
SQLiteDatabaseConfiguration
SQLiteDatabaseConfiguration(String path, int openFlags, List<SQLiteCustomFunction> customFunctions, List<SQLiteFunction> functions, List<SQLiteCustomExtension> extensions)
Creates a database configuration with the required parameters for opening adatabase and default values for all other parameters.- Parameters:
path- The database path.openFlags- Open flags for the database, such as OPEN_READWRITE.functions- custom functions to use.extensions- custom extensions to use.
-
-
Method Detail
-
isInMemoryDb
boolean isInMemoryDb()
Returns true if the database is in-memory.
-
-
-
-