You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ A simple template engine for writing dynamic SQL queries.
10
10
11
11
Sometimes it can be hard to write comprehensible SQL queries with tools like SQL builders ([squirrel](https://github.com/Masterminds/squirrel)
12
12
or [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.
14
14
15
15
The main motivation of this library is to separate the SQL queries from the Go code, and to improve the readability of complex dynamic queries.
16
16
@@ -26,12 +26,12 @@ go get github.com/NicklasWallgren/sqlTemplate
26
26
We support the two major Go versions, which are 1.17 and 1.18 at the moment.
27
27
28
28
# Features and benefits
29
-
- Separates SQL och Go code.
29
+
- Separates SQL and Go code.
30
30
- Keeps the templated query as close as possible to the actual SQL query.
31
31
- Extensible template language with support for https://github.com/Masterminds/sprig
32
32
- No third party dependencies
33
33
34
-
# SDK
34
+
# API
35
35
```go
36
36
// Parse parses a sql template and returns the 'QueryTemplate'
0 commit comments