Coder Social home page Coder Social logo

ruroonga_command's Introduction

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.15.1 or later.

Minimum required Groonga Version

6.0.3 or later.

LICENSE

MIT.

ruroonga_command's People

Contributors

cosmo0920 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ruroonga_command's Issues

Add Extendable trait

It would be nice to have user-defined extensible query feature.
This Extendable trait should be implement user-defined self.arguments operation extension.

Implement drilldown query builder

It might be implemented with trait.
My implementation blueprint is:

  • Create DrillDownable trait
    • This trait should be add with_drilldown trait method to output drilldown query and concatenate with select query
    • Set each of drilldown related parameters into drilldown query

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.