Class SQLiteSupport

All Implemented Interfaces:
DatabaseSupport

public class SQLiteSupport extends AbstractDatabaseSupport
SQLite-specific 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:

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 Details

    • SQLiteSupport

      public SQLiteSupport()
      Creates the SQLite support with its default configuration.