public class SQLiteContainerTests extends CommonFixture
Sources
databaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH
Constructor and Description |
---|
SQLiteContainerTests() |
Modifier and Type | Method and Description |
---|---|
void |
applicationID()
A GeoPackage shall contain 0x47503130 ("GP10" in UTF-8/ASCII, [71,80,49,48]) in the
"Application ID" field of the database header.
|
void |
fileContents()
A GeoPackage shall only contain data elements, SQL constructs and
GeoPackage extensions with the "gpkg" author name specified in this
encoding standard.
|
void |
fileHeaderString()
A GeoPackage shall be a SQLite database file using version 3 of the
SQLite file format.
|
void |
filenameExtension()
A GeoPackage shall have the file extension name ".gpkg".
|
void |
foreignKeyCheck()
The SQLite PRAGMA foreign_key_check SQL with no parameter value SHALL
return an empty result set indicating no invalid foreign key values for
a GeoPackage file.
|
void |
pragmaIntegrityCheck()
The SQLite PRAGMA integrity_check SQL command SHALL return "ok" for a
GeoPackage file.
|
void |
sqlCheck()
A GeoPackage SQLite Configuration SHALL provide SQL access to
GeoPackage contents via software APIs.
|
void |
sqliteOptions()
Every GeoPackage SQLite Configuration SHALL have the SQLite library
compile and run time options specified in table Every
GeoPackage SQLite Configuration.
|
close, initCommonFixture
public void fileHeaderString() throws IOException
IOException
- If an I/O error occurs while trying to read the data file.public void applicationID() throws IOException
IOException
- If an I/O error occurs while trying to read the data file.public void filenameExtension()
public void fileContents()
public void pragmaIntegrityCheck() throws SQLException
SQLException
- If an SQL query causes an errorpublic void foreignKeyCheck() throws SQLException
SQLException
- If an SQL query causes an errorpublic void sqlCheck() throws SQLException
SQLException
- If an SQL query causes an errorpublic void sqliteOptions() throws SQLException
SQLException
- If an SQL query causes an errorCopyright © 2022 Open Geospatial Consortium. All rights reserved.