Skip to content

Delete Generics API 无法永久删除 #7555

@CN-YHY

Description

@CN-YHY

err := gorm.GEmail.Where("id = ?", 10).Delete(ctx)
使用上面方式进行永久删除,sql打印还是UPDATE email SET deleted_at="2025-08-13 10:23" WHERE id=10;
并没有执行DELETE FROM email WHERE id=10;

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions