ruroonga_command provides extensible Groonga command query builder and generator. It reduces runtime errors about Groonga queries.
Add following lines to your Cargo.toml:
[dependencies]
ruroonga_command = "~0.3.0"
and following lines to your crate root:
extern crate ruroonga_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();
}
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();
}
1.15.1 or later.
6.0.3 or later.
MIT.