File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ A simple template engine for writing dynamic SQL queries.
1010
1111Sometimes it can be hard to write comprehensible SQL queries with tools like SQL builders ([ squirrel] ( https://github.com/Masterminds/squirrel )
1212or [ dbr] ( https://github.com/gocraft/dbr ) ), specially dynamic queries with optional statements and joins.
13- It's hard to see the overall cohesive structure of the queries, and the primary goal.
13+ It can be hard to see the overall cohesive structure of the queries, and the primary goal.
1414
1515The main motivation of this library is to separate the SQL queries from the Go code, and to improve the readability of complex dynamic queries.
1616
@@ -26,12 +26,12 @@ go get github.com/NicklasWallgren/sqlTemplate
2626We support the two major Go versions, which are 1.17 and 1.18 at the moment.
2727
2828# Features and benefits
29- - Separates SQL och Go code.
29+ - Separates SQL and Go code.
3030- Keeps the templated query as close as possible to the actual SQL query.
3131- Extensible template language with support for https://github.com/Masterminds/sprig
3232- No third party dependencies
3333
34- # SDK
34+ # API
3535``` go
3636// Parse parses a sql template and returns the 'QueryTemplate'
3737Parse (namespace string , templateName string ) (QueryTemplate, error )
You can’t perform that action at this time.
0 commit comments