public class SQLiteContainerTests extends CommonFixture
Sources
CommonFixture.GeoPackageVersiondatabaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH| Constructor and Description |
|---|
SQLiteContainerTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
applicationID()
A GeoPackage SHALL contain a value of 0x47504B47 ("GPKG" in ASCII) in
the "application_id" field of the SQLite database header to indicate
that it is a GeoPackage.
|
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.
|
checkPrimaryKey, close, getAllowedVersions, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabledpublic void fileHeaderString()
throws IOException
IOException - If an I/O error occurs while trying to read the data file.public void applicationID()
throws IOException,
SQLException
IOException - If an I/O error occurs while trying to read the data file.SQLException - If an SQL query causes an errorpublic void filenameExtension()
public void fileContents()
throws SQLException
SQLException - on any errorpublic 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 errorCopyright © 2018 Open Geospatial Consortium. All rights reserved.