SQLite table engine
Not supported in ClickHouse Cloud
The engine allows to import and export data to SQLite and supports queries to SQLite tables directly from ClickHouse.
Creating a table
Engine Parameters
db_path— Path to SQLite file with a database.table— Name of a table in the SQLite database.
Data types support
When you explicitly specify ClickHouse column types in the table definition, the following ClickHouse types can be parsed from SQLite TEXT columns:
- Date, Date32
- DateTime, DateTime64
- UUID
- Enum8, Enum16
- Decimal32, Decimal64, Decimal128, Decimal256
- FixedString
- All integer types (UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64)
- Float32, Float64
See SQLite database engine for the default type mapping.
Usage example
Shows a query creating the SQLite table:
Returns the data from the table:
See Also