Skip to content

Commit

Permalink
fix: for typo in comments for package contrib/drivers and gdb (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
oldme-git authored Mar 12, 2024
1 parent 3a8f246 commit 199737c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/drivers/clickhouse/clickhouse_do_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/gogf/gf/v2/database/gdb"
)

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
func (d *Driver) DoInsert(
ctx context.Context, link gdb.Link, table string, list gdb.List, option gdb.DoInsertOption,
) (result sql.Result, err error) {
Expand Down
2 changes: 1 addition & 1 deletion contrib/drivers/dm/dm_do_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/gogf/gf/v2/util/gconv"
)

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
func (d *Driver) DoInsert(
ctx context.Context, link gdb.Link, table string, list gdb.List, option gdb.DoInsertOption,
) (result sql.Result, err error) {
Expand Down
2 changes: 1 addition & 1 deletion contrib/drivers/mssql/mssql_do_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/gogf/gf/v2/errors/gerror"
)

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
func (d *Driver) DoInsert(ctx context.Context, link gdb.Link, table string, list gdb.List, option gdb.DoInsertOption) (result sql.Result, err error) {
switch option.InsertOption {
case gdb.InsertOptionSave:
Expand Down
2 changes: 1 addition & 1 deletion contrib/drivers/pgsql/pgsql_do_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/gogf/gf/v2/errors/gerror"
)

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
func (d *Driver) DoInsert(ctx context.Context, link gdb.Link, table string, list gdb.List, option gdb.DoInsertOption) (result sql.Result, err error) {
switch option.InsertOption {
case gdb.InsertOptionReplace:
Expand Down
2 changes: 1 addition & 1 deletion database/gdb/gdb_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (c *Core) fieldsToSequence(ctx context.Context, table string, fields []stri
return fieldsResultInSequence, nil
}

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
// This function is usually used for custom interface definition, you do not need call it manually.
// The parameter `data` can be type of map/gmap/struct/*struct/[]map/[]struct, etc.
// Eg:
Expand Down
2 changes: 1 addition & 1 deletion database/gdb/gdb_driver_wrapper_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (d *DriverWrapperDB) TableFields(
return
}

// DoInsert inserts or updates data forF given table.
// DoInsert inserts or updates data for given table.
// This function is usually used for custom interface definition, you do not need call it manually.
// The parameter `data` can be type of map/gmap/struct/*struct/[]map/[]struct, etc.
// Eg:
Expand Down

0 comments on commit 199737c

Please sign in to comment.