Back to Cube

SQLite

docs/content/product/configuration/data-sources/sqlite.mdx

1.6.431.1 KB
Original Source

SQLite

<CommunitySupportedDriver dataSource="SQLite" />

Prerequisites

Setup

Manual

Add the following to a .env file in your Cube project:

dotenv
CUBEJS_DB_TYPE=sqlite
CUBEJS_DB_NAME=my_sqlite_database

Environment Variables

Environment VariableDescriptionPossible ValuesRequired
<EnvVar>CUBEJS_DB_NAME</EnvVar>The name of the database to connect toA valid database name
<EnvVar>CUBEJS_DB_MAX_POOL</EnvVar>The maximum number of concurrent database connections to pool. Default is 8A valid number
<EnvVar>CUBEJS_CONCURRENCY</EnvVar>The number of concurrent queries to the data sourceA valid number

SSL

SQLite does not support SSL connections.