docs.rs failed to build rustorm-0.0.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
rustorm-0.20.0
Rustorm
An ORM for rust
Features
- Fluent high-level and low-level API
- Composable queries
- Extensible to multiple database platform
- Easy to reason out generated SQL
- Optional model code generator
Documentation
Example
- Get all contents of product table
extern crate rustorm;
extern crate uuid;
extern crate chrono;
extern crate rustc_serialize;
use Uuid;
use DateTime;
use UTC;
use json;
use Query;
use ;
use ;
use Pool;
- Get one photo of a product
- One complex query
let mut pool = init;
let url = "postgres://postgres:p0stgr3s@localhost/bazaar_v6";
let db = pool.from_url.unwrap;
let mut query = select_all;
query.from_table
.left_join_table
.left_join_table
.left_join_table
.left_join_table
.filter
.filter
.group_by
.having
.asc
.desc
;
let frag = query.build;
let expected = "
SELECT *
FROM bazaar.product
LEFT OUTER JOIN bazaar.product_category
ON product_category.product_id = product.product_id
LEFT OUTER JOIN bazaar.category
ON category.category_id = product_category.category_id
LEFT OUTER JOIN product_photo
ON product.product_id = product_photo.product_id
LEFT OUTER JOIN bazaar.photo
ON product_photo.photo_id = photo.photo_id
WHERE product.name = $1
AND category.name = $2
GROUP BY category.name
HAVING count(*) > $3
ORDER BY product.name ASC, product.created DESC".to_string;
println!;
println!;
assert!;
pool.release;
Supported Database
- PostgreSQL
- Sqlite
- MySQL
- Oracle
Roadmap
- Support for Oracle
- Support for MySql
For Updates
Follow me on twitter: @ivanceras
Support this project
-
This is a 1 man show, so if you feel generous, please support this project at bountysource bountysource
-
Suggestions are much welcome!