Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaask committed Mar 18, 2022
1 parent 3fb4308 commit 4e3607f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ posts, err := orm.Query[Post]().All()
##### Get
Get will generate a `SELECT` query from QueryBuilder, execute it on database and return results in an instance of type parameter `OUTPUT`. It's useful for when you know your query has single result.
```go
post, err := orm.Query[Post]().All()
post, err := orm.Query[Post]().Get()
```
##### Update
Update will generate an `UPDATE` query from QueryBuilder and executes it, returns rows affected by query and any possible error.
Expand Down

0 comments on commit 4e3607f

Please sign in to comment.