Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dizoftteam/simple_query_builder
Simple Sql Query Builder
https://github.com/dizoftteam/simple_query_builder
go
Last synced: 3 days ago
JSON representation
Simple Sql Query Builder
- Host: GitHub
- URL: https://github.com/dizoftteam/simple_query_builder
- Owner: DizoftTeam
- License: mit
- Created: 2020-06-22T08:25:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T12:17:34.000Z (over 4 years ago)
- Last Synced: 2024-06-20T01:56:02.588Z (5 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Query Builder
![](https://badges.fyi/github/latest-tag/DizoftTeam/simple_query_builder)
![](https://badges.fyi/github/license/DizoftTeam/simple_query_builder)
![](https://badges.fyi/github/stars/DizoftTeam/simple_query_builder)Simple query builder for build SQL queries
## Example
Simple example below
```go
package mainimport (
"github.com/DizoftTeam/sqb""fmt"
)func main() {
query := sqb.NewQuery("users as u").
Select("u.name, u.email").
Where("and", "u.name = 'Ruslan'").
Generate()// TODO: Here you can use generated query as you want
fmt.Printf("SQL: %v\n", query)
}
```