variable name change
This commit is contained in:
parent
e74077e7d5
commit
db0843647c
16
orm_v1.go
16
orm_v1.go
@ -213,12 +213,12 @@ func (star *StarDB) UpdateContext(ctx context.Context, ins interface{}, sheetNam
|
||||
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
||||
}
|
||||
|
||||
func (star *StarDB) Insert(ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(nil, false, ins, sheetName, primaryKey...)
|
||||
func (star *StarDB) Insert(ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(nil, false, ins, sheetName, autoCreaseKey...)
|
||||
}
|
||||
|
||||
func (star *StarDB) InsertContext(ctx context.Context, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(ctx, false, ins, sheetName, primaryKey...)
|
||||
func (star *StarDB) InsertContext(ctx context.Context, ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||
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) {
|
||||
@ -365,12 +365,12 @@ func (star *StarTx) UpdateContext(ctx context.Context, ins interface{}, sheetNam
|
||||
return star.updateinsert(ctx, true, ins, sheetName, primaryKey...)
|
||||
}
|
||||
|
||||
func (star *StarTx) Insert(ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(nil, false, ins, sheetName, primaryKey...)
|
||||
func (star *StarTx) Insert(ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(nil, false, ins, sheetName, autoCreaseKey...)
|
||||
}
|
||||
|
||||
func (star *StarTx) InsertContext(ctx context.Context, ins interface{}, sheetName string, primaryKey ...string) (sql.Result, error) {
|
||||
return star.updateinsert(ctx, false, ins, sheetName, primaryKey...)
|
||||
func (star *StarTx) InsertContext(ctx context.Context, ins interface{}, sheetName string, autoCreaseKey ...string) (sql.Result, error) {
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user