Class SQLiteSupport
- All Implemented Interfaces:
DatabaseSupport
DatabaseSupport.
SQLite is an embedded, in-process database that uses dynamic typing with column
affinity (TEXT / NUMERIC / INTEGER / REAL / BLOB) derived loosely from the declared
type, rather than strict column types. The sqlite-jdbc driver reflects this through
DatabaseMetaData.getColumns(String, String, String, String) — which Bloviate reads — by collapsing the many
declared type names onto a small set of JDBC types:
INTEGER,BIGINT, and (by convention)BOOLEAN→JDBCType.INTEGERREAL,DOUBLE,NUMERIC,DECIMAL→JDBCType.FLOATTEXT,VARCHAR,BLOB, and the textual date/time conventions (DATE,DATETIME,TIMESTAMP) →JDBCType.VARCHAR
The cross-database defaults in AbstractDatabaseSupport already map all of these JDBC
types, so no customization is required: integers, reals, and strings are generated for the three
affinity classes respectively. Because SQLite has no native BOOLEAN, DATE, or
DATETIME types, booleans are filled as integers and dates/timestamps as text — exactly
the conventions SQLite itself uses — and every generated value round-trips through SQLite's
affinity rules.
Foreign keys are off by default in SQLite (enabled per connection with
PRAGMA foreign_keys = ON). Bloviate derives table fill order from the foreign-key graph
regardless, so referentially consistent data is produced whether or not enforcement is enabled.
- Since:
- 2.18.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractDatabaseSupport
configure, getDataGeneratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DatabaseSupport
batchRewriteUrlParameter, disableConstraints, enableConstraints, readConstraints, supportsBulkLoad
-
Constructor Details
-
SQLiteSupport
public SQLiteSupport()Creates the SQLite support with its default configuration.
-