diesel_cockroach

Crates.io CircleCI branch GitHub

Additional Diesel ORM support for CockroachDB syntax.

Installation

cargo install diesel_cockroach

Feature Support

Currently supported features are listed below:

Usage

See the official insert_into documentation for general examples.

Just replace the diesel::insert_into function with the disired function from diesel_cockroach:

```rust use dieselcockroach::upsert::upsertinto;

let new_users = vec![ name.eq("Tess"), name.eq("Jim"), ];

let rowsupserted = upsertinto(users) .values(&new_users) .execute(&connection);

asserteq!(Ok(2), rowsupserted); ```