Rust DataBase Connectivity (RDBC)

This is a Rust implementation of the Java DataBase Connectivity (JDBC) API, a continuation and reimplementation of the rdbc project.

Goals

Usage

Installation

Add the following to your Cargo.toml:

toml [dependencies] rdbc2 = "0.1"

Example

``` use rdbc2;

let mut database = rdbc2::dbc::Database::new()?;

let result = database.executequery()?; let serializedresult = database.executequeryandserialize()?; // Serializes the result into a JSON string let serializedresultraw = database.executequeryandserializeraw( < querystring>)?; // Serializes the result into an u8 array

// Or with parameters let result = database.executequerywithparams( < querystring>, < params>)?; let serializedresult = database.executequeryandserializewithparams(, )?; ```

Supported Databases