4 ms·
If i would do `Session.query(UserCls).delete()` in SQLAlchemy I would also delete all users in the table. I don't know go syntax well enough to see a problem h
by ergo14 9y ago
If i would do `Session.query(UserCls).delete()` in SQLAlchemy I would also delete all users in the table.
I don't know go syntax well enough to see a problem here, is it because the User instance has no primary key yet? In this case I would expect gorm to emit `delete from users where user.id is null`.