Skip to content

Converts string queries using Go's AST to define mongodb queries

License

Notifications You must be signed in to change notification settings

qwerty-iot/mongoq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card License: MIT

mongoq

This is a simple library for converting query strings to mongo queries using Go's AST parser.

Installation

Checkout the repository and run:

go get github.com/qwerty-iot/mongoq

Usage

import "github.com/qwerty-iot/mongoq"

query, _ := mongoq.ParseQuery("name == Andrew && age >= 5")

fmt.Println("%v\n", query)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Converts string queries using Go's AST to define mongodb queries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages