Repository navigation
install.sh --drivers: bootstrap the open-licence ODBC drivers - #156
Merged
Merged
Conversation
sqliteodbc, psqlodbc and MariaDB Connector/ODBC through apt, dnf or Homebrew (their runtime libraries have to be on the loader path, which only the package manager arranges, and the package registers the driver name); clickhouse-odbc from the project's pinned release tarball with its SHA-256 checked, unpacked under $PREFIX/odbc-drivers. --drivers=<list> narrows it, --drivers-only skips the build. The run ends with a table of path, registered name and a load check per driver, plus a connection string each. Docs: install guides, README, roadmap row done (0.1.4; Windows counterpart next), FAQ. Verified in fresh Ubuntu 24.04 and Fedora 42 containers as a non-root user with sudo: all four install; SQLite, PostgreSQL 16 (psqlodbc) and ClickHouse 26.7 queries run through the bridge with the drivers it installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap item: a first run needs an ODBC driver per database, and the open-licence ones are packaged everywhere, so
install.shcan fetch them../install.sh --driversinstalls, after the bridge:libsqliteodbc/sqliteodbcsqliteodbcodbc-postgresql/postgresql-odbcpsqlodbcodbc-mariadb/mariadb-connector-odbcmariadb-connector-odbcv1.5.5.20260810) and SHA-256 checked, unpacked under$PREFIX/odbc-driversThe first three go through the package manager on purpose: a no-root
.debextraction was tried first and leaves psqlodbc and MariaDB unable to load (libpq.so.5,libmariadb.so.3missing even on a developer machine), while the package pulls those in and registers the driver name inodbcinst.ini. ClickHouse's library is self-contained, so it is unpacked for the user and used by path.--drivers=sqlite,postgresnarrows the set;--drivers-onlyskips the build;SUDO=overrides the privilege command. The run ends with a table (path, registered name, load check) and a connection string per driver.Verified in fresh
ubuntu:24.04andfedora:42containers as a non-root user with sudo: all four reportok; through the bridge, SQLite answersSELECT 42, PostgreSQL 16 answersversion()through the installed psqlodbc, and the unpacked clickhouse-odbc queries a live ClickHouse 26.7.5.10 (('26.7.5.10', 42)). Names resolve on both: Debian registers bare file names (Driver=psqlodbcw.so), Fedora full paths; the lookup accepts either. macOS path not run here (no Mac in this session); it is the Homebrew branch plus the Darwin tarball.CI: a new Linux step runs
./install.sh --driversin its own build tree, requires all fourok, and checks that SQLite answers, psqlodbc and MariaDB reach the handshake, and the ClickHouse library loads.Docs: install-linux, install-macos, README quick start, roadmap (done 0.1.4 for Linux and macOS; Windows PowerShell counterpart listed next), FAQ. Also drops a README line that still said the Windows build lacks prefetch and parallel ingest (#155).