Update wiki pages.
This commit is contained in:
parent
518ff49a77
commit
c78ca8a876
17 changed files with 105 additions and 81 deletions
|
|
@ -28,7 +28,7 @@ SET (name, url) = ('Yahoo', 'http://yahoo.com')
|
|||
WHERE link.name = 'Bing';
|
||||
```
|
||||
|
||||
Short-hand notation to extract model data for column values:
|
||||
Short-hand notation to update values from model data:
|
||||
|
||||
```
|
||||
yahoo := model.Link{
|
||||
|
|
@ -70,8 +70,7 @@ updateStmt := Link.
|
|||
|
||||
dest := []model.Link{}
|
||||
|
||||
err := updateStmt.Query(db, &dest)
|
||||
|
||||
err := updateStmt.Query(db, &dest)
|
||||
```
|
||||
|
||||
Use `ExecContext` and `QueryContext` to provide context object to execution.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue