Skip to content

Commit c45ace4

Browse files
committed
Update docs [ci skip]
1 parent 6e4e83d commit c45ace4

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ Add `prefix`, `infix` and `suffix` template funcs.
1515
## 2018-07-31 JST: v1.1.1
1616

1717
Enable use `escape` func in template.
18+
19+
## 2018-08-04 JST: v1.2.0
20+
21+
* Enable custom template funcs.
22+
* Enable struct value.
23+
* Some fix bugs.
24+
* Some refactorings.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ORDER BY /*% .order %*/id
4141
```go
4242
// sql is generated SQL from template.
4343
// args are arguments for generated SQL.
44-
sql, args, err := sqlt.New(sqlt.Postgres).Exec(s, map[string]interface{}{
44+
query, args, err := sqlt.New(sqlt.Postgres).Exec(s, map[string]interface{}{
4545
"ids": []int{1, 2, 3},
4646
"order": "name DESC",
4747
"onlyMale": false,
@@ -70,7 +70,7 @@ In future, driver support `sql.NamedArg`, you only need to change `Exec` to `Exe
7070
```sql
7171
SELECT *
7272
FROM users
73-
WHERE id IN (:ids1, :ids2, :ids3)
73+
WHERE id IN (:ids__1, :ids__2, :ids__3)
7474
AND name = :name
7575
ORDER BY name DESC
7676
```
@@ -85,7 +85,7 @@ $ go get github.com/pinzolo/sqlt
8585

8686
### Go version
8787

88-
Go 1.8 or later
88+
Go 1.9 or later
8989

9090
### Databses
9191

0 commit comments

Comments
 (0)