https://github.com/windomz/songo
实现songo协议的Go库
https://github.com/windomz/songo
mongo songo url-parser
Last synced: 4 months ago
JSON representation
实现songo协议的Go库
- Host: GitHub
- URL: https://github.com/windomz/songo
- Owner: WindomZ
- License: mit
- Created: 2017-02-14T04:31:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T08:27:52.000Z (over 8 years ago)
- Last Synced: 2025-04-09T13:40:19.862Z (7 months ago)
- Topics: mongo, songo, url-parser
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# songo
[](https://travis-ci.org/WindomZ/songo)
[](https://opensource.org/licenses/MIT)
实现songo协议的Go库
## Documents
[songo协议文档](https://github.com/suboat/songo/blob/master/desc.md)
## Features
- [ ] support MySQL
- [ ] support PostgreSQL
- [x] support MongoDB
## [MySQL](https://github.com/WindomZ/songo/tree/master/mysql)

* 开发中...
## [PostgreSQL](https://github.com/WindomZ/songo/tree/master/postgre)

* 开发中...
## [MongoDB](https://github.com/WindomZ/songo/tree/master/mongo)

### Example
* 实例1
URL地址:
```
http(s)://127.0.0.1/demo?_limit=50&_page=2
&_sort=created,money,-level
&year=$eq$2016&month=$bt$8,11&date=$eq$1&day=$in$0,6
```
对应JSON:
```
{
"limit":50,
"page":2,
"sort":[
"created",
"money",
"-level"
],
"year":"$eq$2016",
"month":"$bt$8,11",
"date":"$eq$1",
"day":"$in$0,6"
}
```
## License
The [MIT License](https://github.com/WindomZ/songo/blob/master/LICENSE)