10 releases

Uses old Rust 2015

0.3.4 Nov 27, 2016
0.3.3 Sep 23, 2016
0.3.1 Aug 22, 2016
0.2.3 Jun 29, 2016
0.1.0 Mar 6, 2016

#1773 in Rust patterns

25 downloads per month

Custom license

385KB
10K SLoC

Ruroonga Command

Build Status Build status

Documentation

An extensible Groonga Query Builder for Rust.

ruroonga_command provides extensible Groonga command query builder and generator. It reduces runtime errors about Groonga queries.

Usage

Add following lines to your Cargo.toml:

[dependencies]
ruroonga_command = "~0.3.0"

and following lines to your crate root:

extern crate ruroonga_command;

A complete example

For generating CLI Groonga command

extern crate ruroonga_command as ruroonga;

use ruroonga::dsl::*;
use ruroonga::commandable::Commandable;

fn select_cli_example() {
    let select = select("Entries".to_string())
                 .filter("content @ \"fast\"".to_string()).to_command();
    println!("command: {:?}", select);
}
fn main() {
    select_cli_example();
}

For generating HTTP Groonga command

extern crate ruroonga_command as ruroonga;

use ruroonga::dsl::*;
use ruroonga::queryable::Queryable;

fn select_query_example() {
    let select = select("Entries".to_string())
                 .filter("content @ \"fast\"".to_string()).to_query();
    println!("query: {:?}", select);
}
fn main() {
    select_query_example();
}

Target Rust Version

1.11.0 or later.

Minimum required Groonga Version

6.0.3 or later.

LICENSE

MIT.

Dependencies

~1.1–1.5MB
~51K SLoC