fix: for typo in comments for package contrib/drivers and gdb (#3366)

This commit is contained in:
oldme
2024-03-12 20:40:20 +08:00
committed by GitHub
parent 3a8f246569
commit 199737cd0f
6 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: