GizmoSQL — High-Performance Database Server
GizmoSQL is a lightweight, high-performance SQL server built on:
Originally forked from sqlflite — and now enhanced into a more extensible, production-ready platform under the Apache 2.0 license.
GizmoSQL is available in two editions:
| Feature | Core | Enterprise |
|---|---|---|
| DuckDB & SQLite backends | ✅ | ✅ |
| Arrow Flight SQL protocol | ✅ | ✅ |
| TLS & mTLS authentication | ✅ | ✅ |
| JWT token authentication | ✅ | ✅ |
| Query timeout | ✅ | ✅ |
| Session Instrumentation | ❌ | ✅ |
| Prometheus Metrics Endpoint & SQL Metrics | ❌ | ✅ |
| Kill Session | ❌ | ✅ |
| Per-Catalog Permissions | ❌ | ✅ |
| SSO/OIDC Authentication (JWKS) | ❌ | ✅ |
| Authorized Email Filtering | ❌ | ✅ |
| Statement Queuing | ❌ | ✅ |
GizmoSQL Core is free and open source under the Apache 2.0 license.
GizmoSQL Enterprise requires a commercial license. Contact [email protected] for licensing information.
For more details, see the Editions documentation.
Runtime metrics require the metrics license feature and are disabled by
default. See the monitoring guide for enablement, the
configurable HTTP port/bind address, SQL access, and Prometheus/Grafana setup.
| Component | Version |
|---|---|
| DuckDB | v1.5.5 |
| SQLite | 3.53.4 |
| Apache Arrow (Flight SQL) | 25.0.1 |
| jwt-cpp | v0.7.2 |
| OpenTelemetry C++ | v1.28.0 |
| nlohmann/json | v3.12.0 |
For detailed instructions and configuration information, see our full documentation:
Default credentials: The server's default username is
gizmosql_user(override with--usernameorGIZMOSQL_USERNAME). A password is always required via--passwordorGIZMOSQL_PASSWORD.
# Username defaults to "gizmosql_user" when GIZMOSQL_USERNAME is not set
docker run --name gizmosql \
--detach \
--rm \
--tty \
--init \
--publish 31337:31337 \
--env TLS_ENABLED="1" \
--env GIZMOSQL_PASSWORD="gizmosql_password" \
--env PRINT_QUERIES="1" \
--pull always \
gizmodata/gizmosql:latestduckdb ./tpch_sf1.duckdb **Note:** Homebrew 6.0 (June 2026) requires third-party taps to be explicitly
> trusted before formulae can be installed from them — hence the `brew trust`
> step. On older Homebrew versions the command doesn't exist; simply skip it.
> Alternatively, `brew install gizmodata/tap/gizmosql` installs with a one-off
> trust for just this formula.
Supported platforms:
- macOS (Apple Silicon / ARM64)
- Linux (x86-64 / AMD64)
- Linux (ARM64)
Then run the server (username defaults to `gizmosql_user`):
```bash
GIZMOSQL_PASSWORD="gizmosql_password" gizmosql_server --database-filename your.duckdb --print-queriesDownload the latest MSI installer from the GitHub Releases page — GizmoSQL-amd64.msi for x64 machines, or GizmoSQL-arm64.msi for Windows on Arm (e.g. Snapdragon X-class devices). The installer adds gizmosql_server.exe and gizmosql_client.exe to C:\Program Files\GizmoSQL and updates the system PATH.
Then run the server from PowerShell or Command Prompt:
$env:GIZMOSQL_PASSWORD="gizmosql_password"
gizmosql_server --database-filename your.duckdb --print-queries
…
text
jdbc:gizmosql://localhost:31337?useEncryption=true&user=gizmosql_user&password=gizmosql_password&disableCertificateVerification=trueMore info: Setup guide
Prerequisite: Python 3.10+ and the GizmoSQL ADBC driver:
pip install adbc-driver-gizmosqlAs of v2.0, the driver is powered by the native Go GizmoSQL ADBC driver
— same Python API, with DDL/DML immediate execution, RETURNING support,
gizmosql:// URIs, and OAuth/SSO provided by a shared driver library that
also serves Go, C/C++, R, and other ADBC languages. The driver supports
OAuth/SSO authentication for GizmoSQL Enterprise users.
from adbc_driver_gizmosql import dbapi as gizmosql
with gizmosql.connect(
"gizmosql://localhost:31337", # TLS by default; legacy grpc+tls:// also works
username="gizmosql_user",
password="gizmosql_password",
tls_skip_verify=True, # Not needed if you use a trusted CA-signed TLS cert
) as conn:
with conn.cursor() as cur:
cur.execute(
"SELECT n_nationkey, n_name FROM nation WHERE n_nationkey = ?",
parameters=[24],
)
x = cur.fetch_arrow_table()See: https://github.com/gizmodata/generate-gizmosql-token for an example of how to generate a token and use it with GizmoSQL.
GizmoSQL ships with an interactive SQL shell inspired by psql and the DuckDB CLI:
# Interactive session
GIZMOSQL_PASSWORD="gizmosql_password" gizmosql_client --host localhost --username gizmosql_user --tls --tls-skip-verifyRun a single query with --command:
GIZMOSQL_PASSWORD="gizmosql_password" gizmosql_client \
--host localhost --username gizmosql_user --tls --tls-skip-verify \
--command "SELECT version()"Pipe SQL from a heredoc:
GIZMOSQL_PASSWORD="gizmosql_password" gizmosql_client \
--host localhost --username gizmosql_user --tls --tls-skip-verify --quiet [!TIP]
> You can now use the: `--query-timeout` argument to set a maximum query timeout in seconds for the server. Queries running longer than the timeout will be killed. The default value of: `0` means "unlimited".
> Example: `gizmosql_server (other args...) --query-timeout 10`
> will set a timeout of 10 seconds for all queries.
> [!TIP]
> The health check query can be customized using `--health-check-query` or the `GIZMOSQL_HEALTH_CHECK_QUERY` environment variable.
> The default is `SELECT 1`. This is useful when you need a more specific health check for your deployment.
> Example: `gizmosql_server (other args...) --health-check-query "SELECT 1 FROM my_table LIMIT 1"`
---
## Extensions & Integrations
- [GizmoSQL UI](https://github.com/gizmodata/gizmosql-ui) **NEW!**
- [MCP Server for AI agents (Claude Desktop, Claude Code, any MCP client)](https://github.com/gizmodata/gizmosql-mcp) **NEW!**
- [SQLAlchemy dialect](https://github.com/gizmodata/sqlalchemy-gizmosql-adbc-dialect)
- [Apache Superset compatible SQLAlchemy driver](https://github.com/gizmodata/superset-sqlalchemy-gizmosql-adbc-dialect)
- [Ibis adapter](https://github.com/gizmodata/ibis-gizmosql)
- [Flight SQL over WebSocket Proxy](https://github.com/gizmodata/flight-sql-websocket-proxy)
- [Metabase driver](https://github.com/gizmodata/metabase-gizmosql-driver) **NEW!**
- ⚙️ [dbt Adapter](https://github.com/gizmodata/dbt-gizmosql)
- [SQLMesh Adapter](https://github.com/gizmodata/sqlmesh-gizmosql) **NEW!**
- ✨ [PySpark SQLFrame adapter](https://github.com/gizmodata/sqlframe-gizmosql) **NEW!**
- [ADBC Scanner by Query.Farm](docs/adbc_scanner_duckdb.md) **NEW!**
- [ADBC extension for DuckDB by Columnar](docs/adbc_duckdb_extension.md) **NEW!**
- ⚓️ [Kubernetes Operator](https://github.com/gizmodata/gizmosql-operator) **NEW!**
- [GizmoSQLLine JDBC CLI Client](https://github.com/gizmodata/gizmosqlline) **NEW!**
- [Grafana Plugin](https://grafana.com/grafana/plugins/gizmodata-gizmosql-datasource/) **NEW!**
- ️ [JavaScript/TypeScript Client](https://github.com/gizmodata/gizmosql-client-js) **NEW!**
- ☕️ [JDBC Driver](https://github.com/gizmodata/gizmosql-jdbc-driver/releases/latest/download/gizmosql-jdbc-driver.jar) **NEW!**
- [Python ADBC Driver (with OAuth/SSO)](https://pypi.org/project/adbc-driver-gizmosql/) — v2.0 is powered by the [native Go ADBC driver](https://github.com/gizmodata/gizmosql-adbc), also loadable from Go, C/C++, R, and any ADBC driver manager **NEW!**
- [ODBC Driver](https://github.com/gizmodata/gizmosql-odbc-driver) **NEW!**
- [Power BI Connector](https://github.com/gizmodata/gizmosql-powerbi-connector) **NEW!**
- ️ [QGIS Plugin (qgizmosql)](https://plugins.qgis.org/plugins/qgizmosql) **NEW!**
---
## Performance
On Azure VM `Standard_E64pds_v6` (~$3.74/hr):
- TPC-H SF 1000 benchmark:
⏱️ 161.4 seconds
~$0.17 USD total
> Speed for the win. Performance for pennies.
---
## License
**GizmoSQL Core** is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
**Enterprise features** (in `src/enterprise/`) are proprietary and require a commercial license from GizmoData LLC. See [src/enterprise/LICENSE](src/enterprise/LICENSE) for details.
---
## Community
Want to contribute code? See [CONTRIBUTING.md](CONTRIBUTING.md) for setup,
formatting, linting, clang-tidy, tests, and the checks required by CI.
Join the **GizmoData Community Slack** to ask questions, share what you're building, and get help from the team and other users:
[Join the GizmoData Community on Slack](https://join.slack.com/t/gizmodatacommunity/shared_invite/zt-42jk7kdti-SJp7qk7d6XYCIKfBG~4HrA)
---
## Contact
Questions or consulting needs?
[email protected]
[https://gizmodata.com](https://gizmodata.com)
---
> Built with ❤️ by [GizmoData™](https://gizmodata.com)No open issues yet, or sync has not completed.