Docs
ODBC databases
Stroke reaches any database with an ODBC driver: install the vendor's driver, pick its preset, and the database opens like any other. The ODBC bridge is in beta.
01
How it works
An ODBC connection has two parts: a driver manager, which finds and loads drivers, and the database's own driver, which talks to it. Stroke ships the driver manager (unixODBC on macOS and Linux, the system's on Windows), so the only thing to install is the driver for the database you use.
Stroke reads the drivers and data sources already registered on your computer: in /etc/odbcinst.ini and ~/.odbc.ini on Linux, Homebrew's and /Library/ODBC on macOS, and the ODBC Data Source Administrator on Windows.
02
Install the driver
Every preset links to its driver from the connection form. They come from:
- IBM Db2: IBM Data Server Driver for ODBC and CLI
- SAP HANA: the HANA client (HDBODBC)
- SAP ASE (Sybase): SAP's ASE ODBC driver or FreeTDS
- Informix: the Informix Client SDK
- Teradata: the Teradata ODBC driver
- Vertica: the Vertica client drivers
- Exasol: the Exasol ODBC driver
- Firebird: the Firebird ODBC driver
- Amazon Redshift: the Amazon Redshift ODBC driver
- Databricks: the Databricks ODBC driver
- Apache Hive: a Hive ODBC driver
- Trino and Presto: a Trino or Presto ODBC driver
- Dremio: the Arrow Flight SQL ODBC driver
- InterSystems IRIS: the IRIS ODBC driver
- Microsoft Access: the Access Database Engine on Windows, or MDB Tools
Install the build for your computer: an Apple silicon Mac needs an arm64 or universal driver, and Windows a 64-bit one. Driver installers register themselves; on Linux the distribution's package or the vendor's instructions add the driver to odbcinst.ini. Stroke picks up a new driver the next time you choose a preset, no restart needed.
03
Connect
Choose New connection, then the engine under Through ODBC, or plain ODBC for anything else. There are three ways in:
- Fields: the preset picks the installed driver and asks only for what its database needs. The connection string it builds shows below the fields, with Edit as text to take it over.
- Data source: any DSN set up in
odbc.inior the ODBC Data Source Administrator. - Connection string: whatever the driver accepts, for example
Driver={IBM DB2 ODBC DRIVER};Hostname=db2.example.com; Port=50000; Database=SAMPLE; Protocol=TCPIP;
The user name and password fields are added as UID and PWD when the string has none. Passwords, and a pasted connection string that may hold one, are kept in your OS keychain. Test shows what the driver reports the database to be.
04
What works
- Schemas (or catalogs), tables and views, with columns, primary and foreign keys
- Paging that follows the database: LIMIT and OFFSET, OFFSET and FETCH, SKIP and FIRST, or TOP
- Filter, search, sort, and edit, insert or delete rows by primary key
- The SQL editor, with results streamed as they arrive and a Stop that cancels the statement on the server
- Agents over MCP, at the access level you set
Not yet: backup and import, explicit transactions, and query plans (run the database's own EXPLAIN in the editor). Each preset follows its vendor's driver documentation and is marked beta until it has been run against the real database.
05
When it doesn't connect
- No driver is registered: the driver is not installed, or not where Stroke looks. On Linux, check that
odbcinst -q -dlists it. - Can't open lib: the registry names a driver file that is missing or built for another architecture. Point its
Driverline at the full path of the library. - Data source name not found: the DSN is not in
~/.odbc.ini,/etc/odbc.inior, on Windows, the 64-bit ODBC Data Source Administrator. - Anything else comes from the driver itself and appears as it wrote it; its vendor's documentation explains the codes.