Struct hdbconnect::Connection [] [src]

pub struct Connection { /* fields omitted */ }

Connection object.

The connection to the database.

Example

Be careful when using this code, it's not being tested!
use hdbconnect::{Connection,IntoConnectParams};
let params = "hdbsql://my_user:my_passwd@the_host:2222".into_connect_params().unwrap();
let mut connection = Connection::new(params).unwrap();

Methods

impl Connection
[src]

[src]

Factory method for authenticated connections.

[src]

Returns the HANA's product version info.

[src]

Sets the connection's auto-commit behavior for future calls.

[src]

Configures the connection's fetch size for future calls.

[src]

Configures the connection's lob read length for future calls.

[src]

Configures the connection's lob read length for future calls.

[src]

Returns the number of roundtrips to the database that have been done through this connection.

[src]

Executes a statement on the database.

This generic method can handle all kinds of calls, and thus has the most complex return type. In many cases it will be more appropriate to use one of the methods query(), dml(), exec(), which have the adequate simple result type you usually want.

[src]

Executes a statement and expects a single ResultSet.

[src]

Executes a statement and expects a single number of affected rows.

[src]

Executes a statement and expects a plain success.

[src]

Prepares a statement and returns a handle to it. Note that the handle keeps using the same connection.

[src]

Commits the current transaction.

[src]

Rolls back the current transaction.

[src]

Creates a new connection object with the same settings and authentication.

[src]

Utility method to fire a couple of statements, ignoring errors and return values

[src]

Utility method to fire a couple of statements, ignoring their return values; the method returns with the first error, or with ()

Trait Implementations

impl Debug for Connection
[src]

[src]

Formats the value using the given formatter.