Crate hdbconnect [−] [src]
Experimental native rust database driver for SAP HANA(TM).
Works with SAP HANA 1 and SAP HANA 2.
hdbconnect
uses serde (via serde_db
)
to simplify the data exchange between your code
and the driver, both for input parameters to prepared statements
and for results that you get from the database.
There is no need to iterate over a resultset by rows and columns!
This approach allows, in contrast to many ORM mapping variants, using the full flexibility of SQL (projection lists, all kinds of joins, unions, etc, etc). Whatever query you need, you just use it, and whatever result structure you need, you just use a corresponding rust structure into which you deserialize the data.
See code examples for an overview.
Although being functionally operable and working well and fast, this driver is still in an incomplete state: some datatypes are missing, SSL is not yet supported.
Modules
code_examples |
Here are some code examples for the usage of this database driver. |
metadata |
Types for describing metadata. |
types |
Types that are used within the content part of a |
Structs
ConnectParams |
An immutable struct with all information necessary to open a new connection to a HANA database. |
ConnectParamsBuilder |
A builder for |
Connection |
Connection object. |
ConnectionManager | |
PreparedStatement |
Allows injection-safe SQL execution and repeated calls with different parameters with as few roundtrips as possible. |
ResultSet |
Contains the result of a database read command, including the describing metadata. |
Row |
A generic implementation of a single line of a |
Enums
HdbError |
Represents all possible errors that can occur in hdbconnect. |
HdbResponse |
Represents all possible non-error responses to a database command. |
HdbReturnValue |
An enum that describes a single database return value. |
HdbValue |
Enum for all supported database value types. |
Traits
IntoConnectParams |
A trait implemented by types that can be converted into a |
Type Definitions
HdbResult |
An abbreviation of |