hdbconnect
A synchronous pure rust SQL driver for SAP HANA(TM).
Use hdbconnect_async
if you want an asynchronous driver for SAP HANA.
Usage
Add hdbconnect to the dependencies section in your project's Cargo.toml:
[]
= "0.32"
Assuming you have
- a HANA accessible at port
39013on hosthxehost, - and you can log on to it as user
HORSTwith passwordSeCrEt,
then a first simple test which sets up some table, inserts data and reads them back might look like this:
use ;
Documentation
The docs contain more code examples,
especially in the description of module code_examples.
TLS
The TLS implementation is based on rustls.
rustls's flexibility to use non-default crypto providers is currently not (yet) exposed by hdbconnect.
Nevertheless, the need of rustls to initialize crypto shines through.
We thus recommend calling hdbconnect::initialize_crypto early in your main.
Features
r2d2_pool
Adds an implementation of a r2d2 database pool.
dist_tx
Adds support for distributed transactions, based on dist_tx.
Versions
See the change log.