Skip to content

Commit 4f5cf09

Browse files
Frugdoug-martin
authored andcommitted
Documentation syntax, fix brackets
1 parent 1e432f2 commit 4f5cf09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if err != nil{
2525
}
2626
//use tx.From to get a dataset that will execute within this transaction
2727
update := tx.From("user").
28-
Where(goqu.Ex("password": nil}).
28+
Where(goqu.Ex{"password": nil}).
2929
Update(goqu.Record{"status": "inactive"})
3030
if _, err = update.Exec(); err != nil{
3131
if rErr := tx.Rollback(); rErr != nil{
@@ -56,7 +56,7 @@ if err != nil{
5656
}
5757
err = tx.Wrap(func() error{
5858
update := tx.From("user").
59-
Where(goqu.Ex("password": nil}).
59+
Where(goqu.Ex{"password": nil}).
6060
Update(goqu.Record{"status": "inactive"})
6161
return update.Exec()
6262
})

0 commit comments

Comments
 (0)