docs.rs failed to build rustorm-0.0.5
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 library 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
- Get one photo of a product
- Get one exact match of a product
- One complex query
let pg = new;
let mut query = select;
query.
.enumerate_table_all_columns
.left_join
.left_join
.left_join
.left_join
.filter
.filter
.group_by
.having
.asc
.desc
;
let frag = query.build;
let expected = "
SELECT photo.organization_id, photo.client_id, photo.created, photo.created_by,
photo.updated, photo.updated_by, photo.priority, photo.name, photo.description,
photo.help, photo.active, photo.photo_id, photo.url, photo.data,
photo.seq_no
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 bazaar.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!;
Roadmap
- Support for Sqlite
- 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!