Skip to content

Commit

Permalink
doc: fix deprecated usage of NewStmtCache (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
elvizlai committed Jan 22, 2021
1 parent 0f561c2 commit 2499a26
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 @@ -64,7 +64,7 @@ Squirrel wants to make your life easier:

```go
// StmtCache caches Prepared Stmts for you
dbCache := sq.NewStmtCacher(db)
dbCache := sq.NewStmtCache(db)

// StatementBuilder keeps your syntax neat
mydb := sq.StatementBuilder.RunWith(dbCache)
Expand Down

0 comments on commit 2499a26

Please sign in to comment.