Package mil.nga.geopackage
Interface GeoPackageManager
- All Known Implementing Classes:
DGIWGGeoPackageManager
,GeoPackageManagerImpl
public interface GeoPackageManager
GeoPackage Database management
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Copy the databaseboolean
copy
(String database, String databaseCopy, GeoPackageProgress progress) Copy the databaseint
count()
Get the count of GeoPackage databasesboolean
Create a new GeoPackage databaseboolean
createAtPath
(String database, File path) Create a new GeoPackage database at the provided directory pathboolean
createFile
(androidx.documentfile.provider.DocumentFile file) Create a new GeoPackage database at the specified file locationboolean
createFile
(File file) Create a new GeoPackage database at the specified file locationboolean
createFile
(String database, androidx.documentfile.provider.DocumentFile file) Create a new GeoPackage database at the specified file location with the provided nameboolean
createFile
(String database, File file) Create a new GeoPackage database at the specified file location with the provided nameList all GeoPackage databases sorted alphabeticallySet of all GeoPackage databasesdatabasesLike
(String like) List GeoPackage databases that match the provided like argumentdatabasesNotLike
(String notLike) List GeoPackage databases that do not match the provided like argumentboolean
Delete a databaseboolean
Delete all databasesboolean
Delete all external GeoPackagesboolean
Delete all external GeoPackages where the external file can no longer be foundboolean
Determine if the database existsboolean
existsAtExternalFile
(androidx.documentfile.provider.DocumentFile file) Determine if a database exists at the provided external document fileboolean
existsAtExternalFile
(File file) Determine if a database exists at the provided external fileboolean
existsAtExternalPath
(String path) Determine if a database exists at the provided external file pathvoid
exportGeoPackage
(String database, Uri uri, ContentValues contentValues) Export a GeoPackage database to a Urivoid
exportGeoPackage
(String database, Uri uri, ContentValues contentValues, GeoPackageProgress progress) Export a GeoPackage database to a Urivoid
exportGeoPackage
(String database, androidx.documentfile.provider.DocumentFile file) Export a GeoPackage database to a document filevoid
exportGeoPackage
(String database, androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Export a GeoPackage database to a document filevoid
exportGeoPackage
(String database, File directory) Export a GeoPackage database to a filevoid
exportGeoPackage
(String database, File directory, GeoPackageProgress progress) Export a GeoPackage database to a filevoid
exportGeoPackage
(String database, String relativePath, Uri uri) Export a GeoPackage database to a media storevoid
exportGeoPackage
(String database, String relativePath, Uri uri, GeoPackageProgress progress) Export a GeoPackage database to a media storevoid
exportGeoPackage
(String database, String name, File directory) Export a GeoPackage database to a filevoid
exportGeoPackage
(String database, String name, File directory, GeoPackageProgress progress) Export a GeoPackage database to a filevoid
exportGeoPackage
(String database, String name, String relativePath, Uri uri) Export a GeoPackage database to a media storevoid
exportGeoPackage
(String database, String name, String relativePath, Uri uri, GeoPackageProgress progress) Export a GeoPackage database to a media storeint
Get the count of external GeoPackage databasesList all external GeoPackage databases sorted alphabeticallySet of all external GeoPackage databasesGet the application contextgetDatabaseAtExternalFile
(androidx.documentfile.provider.DocumentFile file) Get the database name at the external fileGet the database name at the external fileGet the database name at the external file pathandroidx.documentfile.provider.DocumentFile
getDocumentFile
(String database) Get the document file of the databaseGet the file of the databaseGet the ignored internal databasesGet the path of the databasevoid
ignoreInternal
(String database) Ignore an internal database by nameboolean
importGeoPackage
(androidx.documentfile.provider.DocumentFile file) Import a GeoPackage fileboolean
importGeoPackage
(androidx.documentfile.provider.DocumentFile file, boolean override) Import a GeoPackage fileboolean
importGeoPackage
(androidx.documentfile.provider.DocumentFile file, boolean override, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(File file) Import a GeoPackage fileboolean
importGeoPackage
(File file, boolean override) Import a GeoPackage fileboolean
importGeoPackage
(File file, boolean override, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(File file, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(String name, androidx.documentfile.provider.DocumentFile file) Import a GeoPackage fileboolean
importGeoPackage
(String name, androidx.documentfile.provider.DocumentFile file, boolean override) Import a GeoPackage fileboolean
importGeoPackage
(String name, androidx.documentfile.provider.DocumentFile file, boolean override, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(String name, androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(String name, File file) Import a GeoPackage fileboolean
importGeoPackage
(String name, File file, boolean override) Import a GeoPackage fileboolean
importGeoPackage
(String name, File file, boolean override, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(String name, File file, GeoPackageProgress progress) Import a GeoPackage fileboolean
importGeoPackage
(String database, InputStream stream) Import a GeoPackage streamboolean
importGeoPackage
(String database, InputStream stream, boolean override) Import a GeoPackage streamboolean
importGeoPackage
(String database, InputStream stream, boolean override, GeoPackageProgress progress) Import a GeoPackage streamboolean
importGeoPackage
(String database, InputStream stream, GeoPackageProgress progress) Import a GeoPackage streamboolean
importGeoPackage
(String name, URL url) Import a GeoPackage file from a URLboolean
importGeoPackage
(String name, URL url, boolean override) Import a GeoPackage file from a URLboolean
importGeoPackage
(String name, URL url, boolean override, GeoPackageProgress progress) Import a GeoPackage file from a URLboolean
importGeoPackage
(String name, URL url, GeoPackageProgress progress) Import a GeoPackage file from a URLboolean
importGeoPackageAsExternalLink
(androidx.documentfile.provider.DocumentFile file) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(androidx.documentfile.provider.DocumentFile file, boolean override) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(androidx.documentfile.provider.DocumentFile file, String database) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(androidx.documentfile.provider.DocumentFile file, String database, boolean override) Import an GeoPackage as an external file link without copying locallyboolean
Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(File path, boolean override) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(File path, String database) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(File path, String database, boolean override) Import an GeoPackage as an external file link without copying locallyboolean
Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(String path, boolean override) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(String path, String database) Import an GeoPackage as an external file link without copying locallyboolean
importGeoPackageAsExternalLink
(String path, String database, boolean override) Import an GeoPackage as an external file link without copying locallyvoid
includeInternal
(String database) Do not ignore an internal database by nameint
Get the count of internal GeoPackage databasesList all internal GeoPackage databases sorted alphabeticallySet of all internal GeoPackage databasesboolean
isExternal
(String database) Determine if the database is a linked external fileboolean
isIgnoredInternal
(String database) Is the database an ignored internal database by nameboolean
Is import database header validation enabled.boolean
Is import database integrity validation enabled.boolean
Is open database header validation enabled.boolean
Is open database integrity validation enabled.boolean
Is the SQLite write ahead logging setting enabled for connections.Open the databaseOpen the databaseopenExternal
(androidx.documentfile.provider.DocumentFile file) Open an external GeoPackageopenExternal
(androidx.documentfile.provider.DocumentFile file, boolean writable) Open an external GeoPackageopenExternal
(File path) Open an external GeoPackageopenExternal
(File path, boolean writable) Open an external GeoPackageopenExternal
(String path) Open an external GeoPackageopenExternal
(String path, boolean writable) Open an external GeoPackagereadableSize
(String database) Get a readable version of the database sizeboolean
Rename the database to the new namevoid
setImportHeaderValidation
(boolean enabled) Set the import database header validation setting.void
setImportIntegrityValidation
(boolean enabled) Set the import database integrity validation setting.void
setOpenHeaderValidation
(boolean enabled) Set the open database header validation setting.void
setOpenIntegrityValidation
(boolean enabled) Set the open database integrity validation setting.void
setSqliteWriteAheadLogging
(boolean enabled) Set the SQLite write ahead logging setting for connections.long
Size of the database in bytesboolean
Validate the database header and integrity.boolean
validateHeader
(String database) Validate the database header.boolean
validateIntegrity
(String database) Validate the database integrity.
-
Method Details
-
getContext
Context getContext()Get the application context- Returns:
- context
- Since:
- 5.1.0
-
databases
List all GeoPackage databases sorted alphabetically- Returns:
- database list
-
databasesLike
List GeoPackage databases that match the provided like argument- Parameters:
like
- like argument, using % as a wild card- Returns:
- database names
- Since:
- 1.2.7
-
databasesNotLike
List GeoPackage databases that do not match the provided like argument- Parameters:
notLike
- not like argument, using % as a wild card- Returns:
- database names
- Since:
- 1.2.7
-
internalDatabases
List all internal GeoPackage databases sorted alphabetically- Returns:
- internal database list
- Since:
- 1.2.4
-
externalDatabases
List all external GeoPackage databases sorted alphabetically- Returns:
- external database list
-
count
int count()Get the count of GeoPackage databases- Returns:
- count
-
internalCount
int internalCount()Get the count of internal GeoPackage databases- Returns:
- internal count
- Since:
- 1.2.4
-
externalCount
int externalCount()Get the count of external GeoPackage databases- Returns:
- external count
- Since:
- 1.2.4
-
databaseSet
Set of all GeoPackage databases- Returns:
- database set
-
internalDatabaseSet
Set of all internal GeoPackage databases- Returns:
- internal database set
- Since:
- 1.2.4
-
externalDatabaseSet
Set of all external GeoPackage databases- Returns:
- external database set
-
exists
Determine if the database exists- Parameters:
database
- database name- Returns:
- true if exists
-
size
Size of the database in bytes- Parameters:
database
- database name- Returns:
- bytes
-
isExternal
Determine if the database is a linked external file- Parameters:
database
- database name- Returns:
- external flag
-
existsAtExternalFile
Determine if a database exists at the provided external file- Parameters:
file
- database file- Returns:
- true if exists
- Since:
- 1.1.1
-
existsAtExternalPath
Determine if a database exists at the provided external file path- Parameters:
path
- database file path- Returns:
- true if exists
- Since:
- 1.1.1
-
existsAtExternalFile
boolean existsAtExternalFile(androidx.documentfile.provider.DocumentFile file) Determine if a database exists at the provided external document file- Parameters:
file
- document file- Returns:
- true if exists
- Since:
- 5.0.0
-
getPath
Get the path of the database- Parameters:
database
- database name- Returns:
- path
-
getFile
Get the file of the database- Parameters:
database
- database name- Returns:
- file
-
getDocumentFile
Get the document file of the database- Parameters:
database
- database name- Returns:
- document file
- Since:
- 5.0.0
-
getDatabaseAtExternalFile
Get the database name at the external file- Parameters:
file
- database file- Returns:
- database name or null if does not exist
- Since:
- 1.1.1
-
getDatabaseAtExternalPath
Get the database name at the external file path- Parameters:
path
- database file path- Returns:
- database name or null if does not exist
- Since:
- 1.1.1
-
getDatabaseAtExternalFile
Get the database name at the external file- Parameters:
file
- database document file- Returns:
- database name or null if does not exist
- Since:
- 5.0.0
-
readableSize
Get a readable version of the database size- Parameters:
database
- database name- Returns:
- size
-
delete
Delete a database- Parameters:
database
- database name- Returns:
- true if deleted
-
deleteAll
boolean deleteAll()Delete all databases- Returns:
- true if deleted
-
deleteAllExternal
boolean deleteAllExternal()Delete all external GeoPackages- Returns:
- true if deleted
-
deleteAllMissingExternal
boolean deleteAllMissingExternal()Delete all external GeoPackages where the external file can no longer be found- Returns:
- true if any were deleted
- Since:
- 1.1.1
-
create
Create a new GeoPackage database- Parameters:
database
- database name- Returns:
- true if created
-
createAtPath
Create a new GeoPackage database at the provided directory path- Parameters:
database
- database namepath
- directory path- Returns:
- true if created
- Since:
- 1.2.6
-
createFile
Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage file path- Returns:
- true if created
- Since:
- 1.2.6
-
createFile
Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage file path- Returns:
- true if created
- Since:
- 1.2.6
-
createFile
boolean createFile(androidx.documentfile.provider.DocumentFile file) Create a new GeoPackage database at the specified file location- Parameters:
file
- GeoPackage document file- Returns:
- true if created
- Since:
- 5.0.0
-
createFile
Create a new GeoPackage database at the specified file location with the provided name- Parameters:
database
- database namefile
- GeoPackage document file- Returns:
- true if created
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage file- Parameters:
file
- GeoPackage file to import- Returns:
- true if loaded
-
importGeoPackage
Import a GeoPackage file- Parameters:
file
- GeoPackage file to importprogress
- progress tracker- Returns:
- true if loaded
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage file- Parameters:
file
- GeoPackage file to importoverride
- true to override existing- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file- Parameters:
file
- GeoPackage file to importoverride
- true to override existingprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage file- Parameters:
name
- database name to save asfile
- GeoPackage file to import- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file- Parameters:
name
- database name to save asfile
- GeoPackage file to importprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage file- Parameters:
name
- database name to save the imported file asfile
- GeoPackage file to importoverride
- true to override existing- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file- Parameters:
name
- database name to save the imported file asfile
- GeoPackage file to importoverride
- true to override existingprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(androidx.documentfile.provider.DocumentFile file) Import a GeoPackage file- Parameters:
file
- GeoPackage document file to import- Returns:
- true if loaded
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Import a GeoPackage file- Parameters:
file
- GeoPackage document file to importprogress
- progress tracker- Returns:
- true if loaded
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(androidx.documentfile.provider.DocumentFile file, boolean override) Import a GeoPackage file- Parameters:
file
- GeoPackage document file to importoverride
- true to override existing- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(androidx.documentfile.provider.DocumentFile file, boolean override, GeoPackageProgress progress) Import a GeoPackage file- Parameters:
file
- GeoPackage document file to importoverride
- true to override existingprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage file- Parameters:
name
- database name to save asfile
- GeoPackage document file to import- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(String name, androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Import a GeoPackage file- Parameters:
name
- database name to save asfile
- GeoPackage document file to importprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(String name, androidx.documentfile.provider.DocumentFile file, boolean override) Import a GeoPackage file- Parameters:
name
- database name to save the imported file asfile
- GeoPackage document file to importoverride
- true to override existing- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
boolean importGeoPackage(String name, androidx.documentfile.provider.DocumentFile file, boolean override, GeoPackageProgress progress) Import a GeoPackage file- Parameters:
name
- database name to save the imported file asfile
- GeoPackage document file to importoverride
- true to override existingprogress
- progress tracker- Returns:
- true if created successfully
- Since:
- 5.0.0
-
importGeoPackage
Import a GeoPackage stream- Parameters:
database
- database name to save asstream
- GeoPackage stream to import- Returns:
- true if loaded
-
importGeoPackage
Import a GeoPackage stream- Parameters:
database
- database name to save asstream
- GeoPackage stream to importprogress
- progress tracker- Returns:
- true if loaded
-
importGeoPackage
Import a GeoPackage stream- Parameters:
database
- database name to save asstream
- GeoPackage stream to importoverride
- true to override existing- Returns:
- true if created successfully
-
importGeoPackage
boolean importGeoPackage(String database, InputStream stream, boolean override, GeoPackageProgress progress) Import a GeoPackage stream- Parameters:
database
- database name to save asstream
- GeoPackage stream to importoverride
- true to override existingprogress
- progress tracker- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file from a URL- Parameters:
name
- GeoPackage nameurl
- url- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file from a URL- Parameters:
name
- GeoPackage nameurl
- urlprogress
- progress tracker- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file from a URL- Parameters:
name
- GeoPackage nameurl
- urloverride
- override flag- Returns:
- true if created successfully
-
importGeoPackage
Import a GeoPackage file from a URL- Parameters:
name
- GeoPackage nameurl
- urloverride
- override flagprogress
- progress tracker- Returns:
- true if created successfully
-
exportGeoPackage
Export a GeoPackage database to a file- Parameters:
database
- database namedirectory
- export directory
-
exportGeoPackage
Export a GeoPackage database to a file- Parameters:
database
- database namedirectory
- export directoryprogress
- progress tracker- Since:
- 5.0.0
-
exportGeoPackage
Export a GeoPackage database to a file- Parameters:
database
- database namename
- namedirectory
- export directory
-
exportGeoPackage
Export a GeoPackage database to a file- Parameters:
database
- database namename
- namedirectory
- export directoryprogress
- progress tracker- Since:
- 5.0.0
-
exportGeoPackage
Export a GeoPackage database to a document file- Parameters:
database
- database namefile
- export document file- Since:
- 5.0.0
-
exportGeoPackage
void exportGeoPackage(String database, androidx.documentfile.provider.DocumentFile file, GeoPackageProgress progress) Export a GeoPackage database to a document file- Parameters:
database
- database namefile
- export document fileprogress
- progress tracker- Since:
- 5.0.0
-
exportGeoPackage
Export a GeoPackage database to a media store- Parameters:
database
- database namerelativePath
- Relative path of this media item within the storage device where it is persisteduri
- The URL of the table to insert into- Throws:
IOException
- upon error- Since:
- 3.5.0
- See Also:
-
exportGeoPackage
void exportGeoPackage(String database, String relativePath, Uri uri, GeoPackageProgress progress) throws IOException Export a GeoPackage database to a media store- Parameters:
database
- database namerelativePath
- Relative path of this media item within the storage device where it is persisteduri
- The URL of the table to insert intoprogress
- progress tracker- Throws:
IOException
- upon error- Since:
- 5.0.0
- See Also:
-
exportGeoPackage
void exportGeoPackage(String database, String name, String relativePath, Uri uri) throws IOException Export a GeoPackage database to a media store- Parameters:
database
- database namename
- namerelativePath
- Relative path of this media item within the storage device where it is persisteduri
- The URL of the table to insert into- Throws:
IOException
- upon error- Since:
- 3.5.0
- See Also:
-
exportGeoPackage
void exportGeoPackage(String database, String name, String relativePath, Uri uri, GeoPackageProgress progress) throws IOException Export a GeoPackage database to a media store- Parameters:
database
- database namename
- namerelativePath
- Relative path of this media item within the storage device where it is persisteduri
- The URL of the table to insert intoprogress
- progress tracker- Throws:
IOException
- upon error- Since:
- 5.0.0
- See Also:
-
exportGeoPackage
Export a GeoPackage database to a Uri- Parameters:
database
- database nameuri
- The URL of the table to insert intocontentValues
- The initial values for the newly inserted row- Throws:
IOException
- upon error- Since:
- 3.5.0
- See Also:
-
exportGeoPackage
void exportGeoPackage(String database, Uri uri, ContentValues contentValues, GeoPackageProgress progress) throws IOException Export a GeoPackage database to a Uri- Parameters:
database
- database nameuri
- The URL of the table to insert intocontentValues
- The initial values for the newly inserted rowprogress
- progress tracker- Throws:
IOException
- upon error- Since:
- 5.0.0
- See Also:
-
open
Open the database- Parameters:
database
- database name- Returns:
- open GeoPackage
-
open
Open the database- Parameters:
database
- database namewritable
- true to open as writable, false as read only- Returns:
- open GeoPackage
- Since:
- 2.0.1
-
openExternal
Open an external GeoPackage- Parameters:
path
- full file path- Returns:
- open GeoPackage
- Since:
- 5.1.0
-
openExternal
Open an external GeoPackage- Parameters:
path
- full file pathwritable
- true to open as writable, false as read only- Returns:
- 5.1.0
-
openExternal
Open an external GeoPackage- Parameters:
path
- full file path- Returns:
- open GeoPackage
- Since:
- 5.1.0
-
openExternal
Open an external GeoPackage- Parameters:
path
- full file pathwritable
- true to open as writable, false as read only- Returns:
- 5.1.0
-
openExternal
Open an external GeoPackage- Parameters:
file
- document file- Returns:
- open GeoPackage
- Since:
- 5.1.0
-
openExternal
Open an external GeoPackage- Parameters:
file
- document filewritable
- true to open as writable, false as read only- Returns:
- 5.1.0
-
isImportHeaderValidation
boolean isImportHeaderValidation()Is import database header validation enabled. This causes a small time increase when importing a database to check the header bytes. On by default.- Returns:
- true if enabled
- Since:
- 1.1.1
-
setImportHeaderValidation
void setImportHeaderValidation(boolean enabled) Set the import database header validation setting. This causes a small time increase when importing a database to check the header bytes. On by default.- Parameters:
enabled
- true to enable, false to disable- Since:
- 1.1.1
-
isImportIntegrityValidation
boolean isImportIntegrityValidation()Is import database integrity validation enabled. This causes a noticeable time increase when importing a database to check the database integrity. Off by default.- Returns:
- true if enabled
- Since:
- 1.1.1
-
setImportIntegrityValidation
void setImportIntegrityValidation(boolean enabled) Set the import database integrity validation setting. This causes a noticeable time increase when importing a database to check the database integrity. Off by default.- Parameters:
enabled
- true to enable, false to disable- Since:
- 1.1.1
-
isOpenHeaderValidation
boolean isOpenHeaderValidation()Is open database header validation enabled. This causes a small time increase when opening a database to check the header bytes. Off by default.- Returns:
- true if enabled
- Since:
- 1.1.1
-
setOpenHeaderValidation
void setOpenHeaderValidation(boolean enabled) Set the open database header validation setting. This causes a small time increase when opening a database to check the header bytes. Off by default.- Parameters:
enabled
- true to enable, false to disable- Since:
- 1.1.1
-
isOpenIntegrityValidation
boolean isOpenIntegrityValidation()Is open database integrity validation enabled. This causes a noticeable time increase when opening a database to check the database integrity. Off by default.- Returns:
- true if enabled
- Since:
- 1.1.1
-
setOpenIntegrityValidation
void setOpenIntegrityValidation(boolean enabled) Set the open database integrity validation setting. This causes a noticeable time increase when opening a database to check the database integrity. Off by default.- Parameters:
enabled
- true to enable, false to disable- Since:
- 1.1.1
-
isSqliteWriteAheadLogging
boolean isSqliteWriteAheadLogging()Is the SQLite write ahead logging setting enabled for connections. Off by default.- Returns:
- write ahead logging state
- Since:
- 3.1.0
-
setSqliteWriteAheadLogging
void setSqliteWriteAheadLogging(boolean enabled) Set the SQLite write ahead logging setting for connections. Off by default.- Parameters:
enabled
- true to enable, false to disable- Since:
- 3.1.0
-
getIgnoredInternals
Get the ignored internal databases- Returns:
- databases
- Since:
- 6.7.4
-
isIgnoredInternal
Is the database an ignored internal database by name- Parameters:
database
- database name- Returns:
- true if ignored
- Since:
- 6.7.4
-
ignoreInternal
Ignore an internal database by name- Parameters:
database
- database name- Since:
- 6.7.4
-
includeInternal
Do not ignore an internal database by name- Parameters:
database
- database name- Since:
- 6.7.4
-
validate
Validate the database header and integrity.- Parameters:
database
- database name- Returns:
- true if valid, false if not
- Since:
- 1.1.1
-
validateHeader
Validate the database header. Checks the beginning bytes for the SQLite header string.- Parameters:
database
- database name- Returns:
- true if valid, false if not
- Since:
- 1.1.1
-
validateIntegrity
Validate the database integrity. Performs a database integrity ok check.- Parameters:
database
- database name- Returns:
- true if valid, false if not
- Since:
- 1.1.1
-
copy
Copy the database- Parameters:
database
- database namedatabaseCopy
- database copy name- Returns:
- true if copied
-
copy
Copy the database- Parameters:
database
- database namedatabaseCopy
- database copy nameprogress
- progress tracker- Returns:
- true if copied
- Since:
- 5.0.0
-
rename
Rename the database to the new name- Parameters:
database
- database namenewDatabase
- new database name- Returns:
- true if renamed
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file path- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathdatabase
- name to reference the database- Returns:
- true if imported successfully
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathdatabase
- name to reference the databaseoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 1.2.7
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file path- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathdatabase
- name to reference the database- Returns:
- true if imported successfully
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
Import an GeoPackage as an external file link without copying locally- Parameters:
path
- full file pathdatabase
- name to reference the databaseoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 1.2.7
-
importGeoPackageAsExternalLink
boolean importGeoPackageAsExternalLink(androidx.documentfile.provider.DocumentFile file) Import an GeoPackage as an external file link without copying locally- Parameters:
file
- document file- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
boolean importGeoPackageAsExternalLink(androidx.documentfile.provider.DocumentFile file, boolean override) Import an GeoPackage as an external file link without copying locally- Parameters:
file
- document fileoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
boolean importGeoPackageAsExternalLink(androidx.documentfile.provider.DocumentFile file, String database) Import an GeoPackage as an external file link without copying locally- Parameters:
file
- document filedatabase
- name to reference the database- Returns:
- true if imported successfully
- Since:
- 5.0.0
-
importGeoPackageAsExternalLink
boolean importGeoPackageAsExternalLink(androidx.documentfile.provider.DocumentFile file, String database, boolean override) Import an GeoPackage as an external file link without copying locally- Parameters:
file
- document filedatabase
- name to reference the databaseoverride
- true to delete an existing database- Returns:
- true if imported successfully
- Since:
- 5.0.0
-