Skip to content

Commit eef583d

Browse files
authored
Refactor DuckDB ODBC Docker image documentation
integrated relevant information into the ODBC driver installation instructions.
1 parent 9c5735f commit eef583d

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,6 @@ To run on a server, you can use [the docker image](https://hub.docker.com/r/lova
175175
We provide compiled binaries only for the x86_64 architecture, but provide docker images for other architectures, including arm64 and armv7. If you want to run SQLPage on a Raspberry Pi or
176176
a cheaper ARM cloud instance, using the docker image is the easiest way to do it.
177177

178-
#### DuckDB ODBC Docker Image
179-
180-
A DuckDB-enabled variant is available with pre-installed DuckDB ODBC drivers:
181-
182-
- Use the `-duckdb` suffix: `lovasoa/sqlpage:main-duckdb` or `lovasoa/sqlpage:latest-duckdb`
183-
- Comes pre-configured to connect to DuckDB at `/var/lib/sqlpage/duckdb.db`
184-
- To use a custom database location, set `DATABASE_URL`:
185-
- `docker run -e DATABASE_URL="Driver=DuckDB;Database=/path/to/your.db" -p 8080:8080 lovasoa/sqlpage:main-duckdb`
186-
- To persist your DuckDB database, mount a volume:
187-
- `docker run -v ./data:/var/lib/sqlpage lovasoa/sqlpage:main-duckdb`
188-
189178
### On Mac OS, with homebrew
190179

191180
An alternative for Mac OS users is to use [SQLPage's homebrew package](https://formulae.brew.sh/formula/sqlpage).
@@ -205,6 +194,13 @@ You still need to install or provide the database-specific ODBC driver for the d
205194

206195
#### Install your ODBC database driver
207196
- [DuckDB](https://duckdb.org/docs/stable/clients/odbc/overview.html)
197+
- If you use docker, a DuckDB-enabled image variant is available with pre-installed DuckDB ODBC drivers
198+
- Use the `-duckdb` suffix: `lovasoa/sqlpage:main-duckdb` or `lovasoa/sqlpage:latest-duckdb`
199+
- Comes pre-configured to connect to DuckDB at `/var/lib/sqlpage/duckdb.db` inside the container
200+
- To customize [connection options](https://duckdb.org/docs/stable/clients/odbc/configuration), set `DATABASE_URL`:
201+
- `docker run -e DATABASE_URL="Driver=DuckDB;Database=/path/to/your.db" -p 8080:8080 lovasoa/sqlpage:main-duckdb`
202+
- To persist your DuckDB database, mount a volume:
203+
- `docker run -v ./data:/var/lib/sqlpage lovasoa/sqlpage:main-duckdb`
208204
- [Snowflake](https://docs.snowflake.com/en/developer-guide/odbc/odbc)
209205
- [BigQuery](https://cloud.google.com/bigquery/docs/reference/odbc-jdbc-drivers)
210206
- For other databases, follow your database's official odbc install instructions.

0 commit comments

Comments
 (0)