insert的时候支持单主键的递归转换。 #723
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#723
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "chenghuama/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
外键递归转换,测试案例:
type TTA struct {
Id int64
xorm:"pk autoincr"
Aname string
}
type TTB struct {
ID *TTA
xorm:"bigint pk"
Bname string
}
type TTC struct {
ID *TTB
xorm:"bigint pk id"
Cname string
}
func TestD(t *testing.T) {
t.Log(db.DbRead.Sync2(new(TTA), new(TTB), new(TTC)))
}
Codecov Report
21.06% <47.36%> (+0.43%)
Continue to review full report at Codecov.
Please add tests on codes.
outdated.
Pull request closed