variable name change
This commit is contained in:
@@ -213,12 +213,12 @@ func (star *StarDB) UpdateContext(ctx context.Context, ins interface{}, sheetNam
|
|||||||
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarDB) Insert(ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarDB) Insert(ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||||
return star.updateinsert(nil, false, ins, sheetName, primaryKey...)
|
return star.updateinsert(nil, false, ins, sheetName, autoCreaseKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarDB) InsertContext(ctx context.Context, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarDB) InsertContext(ctx context.Context, ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||||
return star.updateinsert(ctx, false, ins, sheetName, primaryKey...)
|
return star.updateinsert(ctx, false, ins, sheetName, autoCreaseKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarDB) updateinsert(ctx context.Context, isUpdate bool, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarDB) updateinsert(ctx context.Context, isUpdate bool, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||||
@@ -365,12 +365,12 @@ func (star *StarTx) UpdateContext(ctx context.Context, ins interface{}, sheetNam
|
|||||||
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarTx) Insert(ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarTx) Insert(ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||||
return star.updateinsert(nil, false, ins, sheetName, primaryKey...)
|
return star.updateinsert(nil, false, ins, sheetName, autoCreaseKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarTx) InsertContext(ctx context.Context, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarTx) InsertContext(ctx context.Context, ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||||
return star.updateinsert(ctx, false, ins, sheetName, primaryKey...)
|
return star.updateinsert(ctx, false, ins, sheetName, autoCreaseKey...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (star *StarTx) updateinsert(ctx context.Context, isUpdate bool, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
func (star *StarTx) updateinsert(ctx context.Context, isUpdate bool, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user