Skip to content

Commit

Permalink
fix typo chainable_api.go (#6266)
Browse files Browse the repository at this point in the history
  • Loading branch information
yikakia committed Apr 26, 2023
1 parent 32fc201 commit 1f763c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainable_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var tableRegexp = regexp.MustCompile(`(?i)(?:.+? AS (\w+)\s*(?:$|,)|^\w+\s+(\w+)
// Table specify the table you would like to run db operations
//
// // Get a user
// db.Table("users").take(&result)
// db.Table("users").Take(&result)
func (db *DB) Table(name string, args ...interface{}) (tx *DB) {
tx = db.getInstance()
if strings.Contains(name, " ") || strings.Contains(name, "`") || len(args) > 0 {
Expand Down

0 comments on commit 1f763c8

Please sign in to comment.