Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
/ mongoqb Public archive

A versatile query builder for mongodb. ( No longer available )

Notifications You must be signed in to change notification settings

hariprasadraja/mongoqb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mongoqb

(Stopped Developement due to lack of support & personal time)

mongoqb is a versatile query builder for mongodb from http request built in golang.

How It works

Request Query Monogo DB Query Operators
filterBy=name&name=hari bson.M{"name": "hari"} None
filterBy=name(and),emailId(or),age&name=hari,rahul,krishnan bson.M{"name":bson.M{"$and": []string{"hari", "rahul", "krishnan"}}} conditional operators

Features

  • Build mongodb query from http request.
  • Conditional operators in mongodb are allowed.
  • Custom functions to do operations before making mongodb query.
  • Only exported keys are allowed to transform into mongodb query.

Dependencies

mongoqb uses only one source projects to work properly:

  • mgo - a powerfull golang mongodb driver.

Installation

mongoqb requires mgo v2 to run.

To install dependencies, run the below

go get gopkg.in/mgo.v2

Install mongoqb

go get github.com/hariprasadraja/mongoqb

TODO's

  1. Need to add more examples.
  2. extend functionality to all operators
  3. paras query from request body. if the request is made via post call.
  4. parse query from the form request.

Development

About

A versatile query builder for mongodb. ( No longer available )

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages