https://github.com/wheniwork/n1ql-query-builder
Fluent Couchbase N1QL Query Builder for Go
https://github.com/wheniwork/n1ql-query-builder
couchbase n1ql query-builder
Last synced: 5 months ago
JSON representation
Fluent Couchbase N1QL Query Builder for Go
- Host: GitHub
- URL: https://github.com/wheniwork/n1ql-query-builder
- Owner: wheniwork
- License: mit
- Created: 2017-11-10T23:11:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-05T23:56:24.000Z (over 8 years ago)
- Last Synced: 2024-06-20T13:29:51.922Z (about 2 years ago)
- Topics: couchbase, n1ql, query-builder
- Language: Go
- Size: 80.1 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# N1QL Query Builder
**Fluent Couchbase N1QL Query Builder for Go**
[](https://travis-ci.org/wheniwork/n1ql-query-builder)
[](https://godoc.org/github.com/wheniwork/n1ql-query-builder)
[](https://goreportcard.com/report/github.com/wheniwork/n1ql-query-builder)
[](https://coveralls.io/github/wheniwork/n1ql-query-builder?branch=master)
[](https://codecov.io/gh/wheniwork/n1ql-query-builder)
_The API, which is based on the query DSL from the [Couchbase Java SDK](https://developer.couchbase.com/documentation/server/current/sdk/java/n1ql-queries-with-sdk.html), is currently experimental and may change._
## Statements
### [`SELECT`](https://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/select-syntax.html)
See the [godoc](https://godoc.org/github.com/wheniwork/n1ql-query-builder) or [the tests](select_test.go) for examples.
## Expressions
http://godoc.org/github.com/wheniwork/n1ql-query-builder/#Expression
## TODO
* More functions
* [x] Aggregate
* [ ] Array
* [ ] Case
* [ ] Collections
* [ ] Comparison
* [ ] Conditional
* [ ] Date
* [ ] JSON
* [x] Meta
* [x] Number
* [ ] Object
* [ ] Pattern Matching
* [x] String
* [ ] Type
* DML statements
* Integration tests (?)
* Open a pull request to make this part of the official Couchbase Go SDK