| Crates.io | odbc-api |
| lib.rs | odbc-api |
| version | 20.1.1 |
| created_at | 2020-08-14 19:14:08.310312+00 |
| updated_at | 2026-01-21 10:27:07.477596+00 |
| description | Write ODBC Applications in (mostly) safe Rust. |
| homepage | |
| repository | https://github.com/pacman82/odbc-api |
| max_upload_size | |
| id | 276774 |
| size | 924,093 |
Rust ODBC bindings. ODBC (Open Database Connectivity) is an open standard to connect to a variety of data sources. Most data sources offer ODBC drivers. There are two typical usage scenarios for ODBC:
See also: Is ODBC the Answer?
This crate is currently tested against:
Current ODBC Version is 3.80.
This crate is built on top of the odbc-sys ffi bindings, which provide definitions of the ODBC C Interface, but do not build any kind of abstraction on top of it.
Check the guide for code examples and a tour of the features.
To build this library you need to link against the odbc library of your system's ODBC driver manager. It should be automatically detected by the build. On Windows systems it is preinstalled. On Linux and OS-X unix-odbc must be installed. To create a connection to a data source, its ODBC driver must also be installed.
Nothing to do. ODBC driver manager is preinstalled.
sudo apt-get install unixodbc-dev
You can use homebrew to install unixODBC
sudo brew install unixodbc
or
You can use MacPorts to install it
sudo port install unixodbc
or
You can also install unixODBC from source:
./configuremakesudo make installAlternatively, if you're familiar with the Nix ecosystem or want to try it out, our wiki has a user contributed example on setting up a dev environment with Nix flakes.
log crate).