Skip to content

Commit

Permalink
Successfully infers the SQLite3 schema.
Browse files Browse the repository at this point in the history
Unfortunately, we have 28 columns, which requires Diesel's "huge-tables"
support. This dramatically increases compile time of the Diesel
dependency to ~3-4 minutes, up from negligible.

Diesel's team says it's tracked by:
  - diesel-rs/diesel#747
  - rust-lang/rfcs#1921
  - rust-lang/rfcs#1935
  • Loading branch information
sstangl committed Oct 5, 2017
1 parent 802a91f commit 5ffe85c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Sean Stangl <sean.stangl@gmail.com>"]

[dependencies]
diesel = { version = "0.16.0", features = ["sqlite"] }
diesel = { version = "0.16.0", features = ["sqlite", "huge-tables"] }
diesel_codegen = { version = "0.16.0", features = ["sqlite"] }
dotenv = "0.10.1"
rocket = "0.3.2"
Expand Down
1 change: 1 addition & 0 deletions server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(plugin)]
#![plugin(rocket_codegen)]

#![recursion_limit="128"] // For Diesel.
#[macro_use]
extern crate diesel;
#[macro_use]
Expand Down

0 comments on commit 5ffe85c

Please sign in to comment.