Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mibk committed Sep 12, 2018
1 parent d8fd597 commit 8e997bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func main() {
}

type User struct {
ID int64 `db:",selectonly"` // omitted on INSERT or UPDATE
Name string
Email string
GroupID int64
ID int64 `db:",selectonly"` // omitted on INSERT, UPDATE, etc.
Name string `db:"name"`
Email string `db:"email"`
GroupID int64 `db:"group_id"`
Registered time.Time `db:"created"`
}
```
Expand All @@ -90,7 +90,7 @@ type User struct {
$ go get github.com/mibk/dali
```

## Issues
## Caveats

DALí processes the query unaware of the actual SQL syntax. This means it is quite stupid
on deciding whether the placeholder is inside a string literal.
Expand Down Expand Up @@ -145,8 +145,8 @@ Using the placeholders it is easy and quite expressive to write common SQL queri
also possible to adjust these queries to a specific need (which is often not so easy when using
query builders).
*Note*: only `?`, `?ident`, `?ident...`, and `?sql` are allowed in prepared statements (see Prepare method's
doc for more information).
*Note*: only `?`, `?ident`, `?ident...`, and `?sql` are allowed in prepared statements (see the
method Prepare for more information).
### Profiling and other
Expand Down

0 comments on commit 8e997bc

Please sign in to comment.