Support delete with no bean #1926

Merged
lunny merged 4 commits from lunny/delete into master 2021-07-06 09:11:45 +00:00
Owner

Now you can use delete like this:

orm.Table("my_table").Where("id=?",1).Delete()
Now you can use delete like this: ``` orm.Table("my_table").Where("id=?",1).Delete() ```
lunny added the
kind
enhancement
label 2021-06-08 08:53:22 +00:00
lunny force-pushed lunny/delete from 07444ffe27 to 286a929433 2021-06-08 08:53:54 +00:00 Compare
lunny added 1 commit 2021-06-08 09:10:01 +00:00
Update README
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
4552e26d7b
lunny added 1 commit 2021-06-08 09:34:28 +00:00
Fix build
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
c4f8c17d71
lunny added 1 commit 2021-06-08 11:15:35 +00:00
Fix test
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
515a0ff4ce
lunny added this to the 1.2.0 milestone 2021-06-08 12:26:05 +00:00
lunny added the
kind
breaking
label 2021-06-08 12:26:12 +00:00
Contributor

since .Delete(&User{ID: 1}, &User{ID: 2}, ...) is now also valide, should it be checked or supported?

since `.Delete(&User{ID: 1}, &User{ID: 2}, ...)` is now also valide, should it be checked or supported?
Author
Owner

since .Delete(&User{ID: 1}, &User{ID: 2}, ...) is now also valide, should it be checked or supported?

Should we support deleted multiple object here?

> since `.Delete(&User{ID: 1}, &User{ID: 2}, ...)` is now also valide, should it be checked or supported? Should we support deleted multiple object here?
Author
Owner

since .Delete(&User{ID: 1}, &User{ID: 2}, ...) is now also valide, should it be checked or supported?

That could be another PR.

> since `.Delete(&User{ID: 1}, &User{ID: 2}, ...)` is now also valide, should it be checked or supported? That could be another PR.
lunny merged commit 8f64a78cd4 into master 2021-07-06 09:11:45 +00:00
lunny deleted branch lunny/delete 2021-07-06 09:11:51 +00:00
Sign in to join this conversation.
No description provided.