diesel/diesel_codegen
Sean Griffin 34891a6563 Pass the right hand side to JoinTo
This is a refactoring in preparation for ad-hoc join clauses. I'm
imagining the API being roughly `lhs.inner_join(rhs.on(on_clause))`,
which will mean we will have a struct containing the rhs and the on
clause. The `JoinTo` impl for this struct will need to just destructure
it and return those pieces, so this sets up the trait changes for all
existing implementations.

I had to bump clippy as part of this change, as it hits a rustc bug that
was fixed on more recent nightlies. However, I couldn't bump to the
*latest* clippy, as recent nightlies are broken for us due to
https://github.com/rust-lang/rust/issues/43153
2017-07-13 16:05:55 -06:00
..
src Remove #[has_many], it has become useless 2017-06-11 12:18:13 -04:00
tests Clean up #667 2017-02-10 10:40:26 -05:00
Cargo.toml Pass the right hand side to JoinTo 2017-07-13 16:05:55 -06:00
README.md Release v0.14.0 (The one with all the joins) 2017-07-04 10:56:56 -04:00

Diesel Codegen

This crate implements Diesel's procedural macros using the Macros 1.1 system. It requires nightly Rust from October 10, 2016 or later. For usage on stable Rust, see diesel_codegen_syntex.

Diesel Codegen provides custom derive implementations for Queryable, Identifiable, Insertable, AsChangeset, and Associations. It also provides the macros infer_schema!, infer_table_from_schema!, and embed_migrations!.

Using this crate

First, add this crate to Cargo.toml as so:

diesel_codegen = { version = "0.14.0", features = ["postgres"] }

If you are using SQLite, be sure to specify sqlite instead of postgres in the features section.

Next, at the root of your crate add:

#[macro_use] extern crate diesel_codegen;

See the documentation for each trait/macro for additional details and configuration options.