{"id":17361068,"url":"https://github.com/pacman82/odbc-sys","last_synced_at":"2025-12-12T13:03:05.011Z","repository":{"id":52144115,"uuid":"83926861","full_name":"pacman82/odbc-sys","owner":"pacman82","description":"FFI (Foreign Function Interface) bindings for ODBC (Open Database Connectivity) for Rust.","archived":false,"fork":false,"pushed_at":"2025-01-02T19:27:55.000Z","size":194,"stargazers_count":28,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T10:06:28.864Z","etag":null,"topics":["ffi","odbc","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pacman82.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-04T21:48:31.000Z","updated_at":"2025-01-08T17:22:16.000Z","dependencies_parsed_at":"2023-01-23T12:00:41.944Z","dependency_job_id":"0cdf548c-4e47-4edb-b429-3e10099d9867","html_url":"https://github.com/pacman82/odbc-sys","commit_stats":{"total_commits":177,"total_committers":11,"mean_commits":16.09090909090909,"dds":"0.37853107344632764","last_synced_commit":"61abd4d118eb1a36735ecefa823859c2a73a2db7"},"previous_names":["pacman82/odbc-ffi"],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacman82%2Fodbc-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacman82%2Fodbc-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacman82%2Fodbc-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacman82%2Fodbc-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacman82","download_url":"https://codeload.github.com/pacman82/odbc-sys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166166,"owners_count":20894654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffi","odbc","rust"],"created_at":"2024-10-15T19:30:21.589Z","updated_at":"2025-12-12T13:03:04.215Z","avatar_url":"https://github.com/pacman82.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odbc-sys\n\n[![Docs](https://docs.rs/odbc-sys/badge.svg)](https://docs.rs/odbc-sys/)\n[![MIT licensed](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/pacman82/odbc-sys/blob/main/LICENSE)\n[![Crates.io version](https://img.shields.io/crates/v/odbc-sys)](https://crates.io/crates/odbc-sys)\n\nFFI (Foreign Function Interface) bindings for ODBC (Open Database Connectivity)\nAs ffi bindings to C-APIs are low level by nature this library is intended to be the foundation of\nother libraries to build on top, rather than to be used directly.\n\n## Design Goals\n\n* Providing declarations of ODBC Symbols compatible to the C-Interface of an ODBC Driver Manager\n* Provide correct definition of symbols for Unix and Windows in either 32Bit or 64Bit flavour\n* Not to abstract away any power of the underlying API\n* Increase type safety where feasible\n* As it is as of now unlikely to happen that anyone is writing ODBC 2.0 applications in Rust\n  therefore deprecated symbols like 'SQLAllocEnv' have been left out intentionally.\n\n## Linking\n\nThis library will link against `odbc32.dll` (preinstalled) on Windows systems. On Linux and macOS it links against `libodbc.so` by default. This is typically provided by [unix-odbc](http://www.unixodbc.org/). Using the `--feature iodbc` you can also link against `libiodbc.so`. This may be interesting if you are trying to connect to some older data sources on macOS.\n\n## Installing `unix-odbc`\n\n### Linux\n\nUse your systems packet manager to install `unixodbc-dev`. E.g. on Ubuntu / Debian\n\n```shell\nsudo apt install unixodbc-dev\n```\n\n### macOS\n\nOn Intel based architectures you can install `unix-odbc` using homebrew.\n\n```shell\nbrew install unixodbc\n```\n\nNote for **ARM** based macOS Systems (M1 processors and later):\n\n`cargo build` is not going to pick up `libodbc.so` installed via homebrew due to the fact that homebrew on ARM Mac installs into `/opt/homebrew/Cellar` as opposed to `/usr/local/opt/`.\n\nYou find documentation on what directories are searched during build here: \u003chttps://doc.rust-lang.org/cargo/reference/environment-variables.html#dynamic-library-paths\u003e.\n\nYou can also install unixODBC from source:\n\n1. copy the unixODBC-2.3.9.tar.gz file somewhere you can create files and directories\n2. gunzip unixODBC*.tar.gz\n3. tar xvf unixODBC*.tar\n4. `./configure`\n5. `make`\n6. `make install`\n\nThanks to @TBPixel for testing this!\n\n### Windows\n\nAs windows does ship with ODBC preinstalled, you are good to go out of the box.\n\n## Current State\n\nSymbols are added to this library as we go along implementing uses cases in higher level APIs. If you miss something please do not hesitate to contribute.\n\n## Documentation\n\nThanks to the folks of [docs.rs] for building and hosting the [documentation]!\n\n## Contributing\n\nWant to help out? Just create an issue or pull request.\n\n[docs.rs]: https://docs.rs\n[documentation]: https://docs.rs/odbc-sys/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacman82%2Fodbc-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacman82%2Fodbc-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacman82%2Fodbc-sys/lists"}