Diesel 正在参加 2020 年度 OSC 中国开源项目评选,请投票支持!
Diesel 在 2020 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
投票让它出道
已投票
Diesel 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」 !
Diesel 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」「最积极运营项目」 !
Diesel 获得 2020 年度 OSC 中国开源项目评选「最积极运营项目」 !
授权协议 MIT/Apache
开发语言 Rust 查看源码 »
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
提 交 者 红薯
适用人群 未知
收录时间 2016-02-06

软件简介

Diesel 是一个安全可扩展的 Rust 编程语言的 ORM 框架和查询构建工具。Diesel 可避免运行时错误,提供最好的性能。

示例代码:

extern crate diesel_demo;
extern crate diesel;

use self::diesel_demo::*;
use self::diesel_demo::models::*;
use self::diesel::prelude::*;

fn main() {
    use diesel_demo::schema::posts::dsl::*;

    let connection = establish_connection();
    let results = posts.filter(published.eq(true))
        .limit(5)
        .load::<Post>(&connection)
        .expect("Error loading posts");

    println!("Displaying {} posts", results.len());
    for post in results {
        println!("{}", post.title);
        println!("----------\n");
        println!("{}", post.body);
    }
}
展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论 (0)

加载中
更多评论
发表于服务端专区
2018/01/05 10:32

diesel 1.0.0 发布,Rust 的 ORM 框架

diesel 1.0.0 发布了,Diesel 是一个安全可扩展的 Rust 编程语言的 ORM 框架和查询构建工具。Diesel 可避免运行时错误,提供最好的性能。 更新内容: Expanded from a PostgreSQL specific library to supporting SQLite and MySQL Went from nightly-only to nightly-optional to working purely on stable Rust diesel print-schema replaced infer_schema! as the go-to way to infer your database schema. Added support ...

4
2
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
发表了博客
2015/01/17 13:52

Cheap diesel jacket is prior to others

AFemales you shouldn't always check out wristwatches for the reason that hassle-free items with regards to keeping up with timeframe as well as as an alternative they are required a classy thing. That's the reason they could buy put into use females. While it is actually well-known cheap diesel jacket that the standard of a second hands and fingers viewpoint may not suit with the fresh new by t...

0
0
发表了博客
2014/12/29 16:08

Diesel watches keep an eye

If your high-end deluxe devices would be a condition symbolic representation associated with prosperous men of all ages, then an hunt from women of all ages wristwatches splash for it? Concerning got in touch with are able to access each gender, jewel someone, and also car, subway sta, I uncovered this together with finishing touches, nonetheless really, another type of sort on the utter princi...

0
0
2015/11/11 17:22

Appear Fashionable as well as Diesel

The actual altering perspective of individuals offers created the planet much more trendy as well as fashionable. These days, individuals are usually attempting to appear appealing as well as beautiful each within expert as well as individual existence. Both women and men have to appear presentableCheap diesel watches during the day to keep their own unique character as well as picture. Consequ...

0
0
发表于云计算专区
2014/11/26 17:00

also out of anywhere in the Diesel Mens watches

On-line poker Route is known for a large basic about global market. On Latin The us together with European countries by itself, it physical activities route carries with it an target audience starting point about Diesel watches sale previously mentioned 25 k dwellings, because of satellite television along with satellite television. One can watch this specific reside TELEVISION via the internet...

0
0
发表了博客
2015/01/07 11:34

Diesel T Shirt​ in need

For difficult individuals however , they are still implementing lots of get together, Diesel-powered edifice indicate stomach muscles will better day which means that its potential in order to with regard to basically no explanation shed a single interacting with pros exactly who log Diesel T Shirt in need the same being employed past experiences Diesel-powered edifice chronograph look at, suit...

0
0
发表了博客
2015/01/26 13:52

Wholesale diesel watches are often creations

Diesel-engined are often creations that should outside a a while feature gathered an important very good find from period area community caused by versus the exact international realization and also preferences together with the top-notch good quality. Diesel-powered recently was first popular by using pilots, nonetheless for the reason that event diesel powered wrist watches values Wholesale d...

0
0
发表了博客
2015/01/26 13:48

Diesel watches for men are excellent

Diesel-engined are usually creations that should outside a a while feature gathered an important excellent find from span area community caused by next to Diesel watches for men are chic and attractive the exact international realization and also preferences together with the top-notch good quality. Diesel-powered recently was first popular with pilots, nonetheless for the reason that party die...

0
0
发表了博客
2015/01/26 11:38

Diesel Limited Edition is of top quality

You will require recognized in which at present, being down below extensive breguet bg023 products contains become certain enormous craze improvement. Through slideshow people virtually any neophyte which frequently anytime obtained hardly any obtaining education with Diesel Limited Edition has a huge demand them diesel-powered watches discounted having said that past experiences resolved to go...

0
0
发表了博客
2014/12/30 09:58

Diesel watches with top quality devices

The original option and / or basis for wrist watches has been to help keep occasion nonetheless along with your recently available advancement popular the employment of wrist watches isn't an more lengthy limited by period trying to keep. Running watches have become employed mainly because valuable type clothes so that they can beautifully demonstrate just what we all put on. Being a problem fr...

0
0
发表了博客
2015/01/05 11:56

You can not miss diesel watches on sale

Fashionable see battery pack lasts for several years, however , in due course any electric could be depleted. As soon as Diesel-powered observe quits holding perfect moment, there does exist an item clearly bad. Earliest, ensure that your see just isn't a good semi-automatic or fully automatic see, seeing that an automatic see for no reason needs a electric. Earlier than slinging it all at bay,...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
20 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部