Chore: Clean up unused parts of xorm/core (#104260)

* remove unused part of xorm

* remove onlytodb and onlyfromdb tags

* only keep snapemapper, since we always assumed it is the only one available in xorm
This commit is contained in:
Serge Zaitsev
2025-04-22 11:37:07 +02:00
committed by GitHub
parent fc9f32a9f6
commit 1d180c0611
6 changed files with 1 additions and 279 deletions
-7
View File
@@ -136,9 +136,6 @@ func (session *Session) innerInsertMulti(rowsSlicePtr any) (int64, error) {
if col.IsAutoIncrement && isZero(fieldValue.Interface()) {
continue
}
if col.MapType == core.ONLYFROMDB {
continue
}
if col.IsDeleted {
continue
}
@@ -564,10 +561,6 @@ func (session *Session) genInsertColumns(bean any) ([]string, []any, error) {
args := make([]any, 0, len(table.ColumnsSeq()))
for _, col := range table.Columns() {
if col.MapType == core.ONLYFROMDB {
continue
}
if col.IsDeleted {
continue
}