Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 587 Bytes

README_DELETE.md

File metadata and controls

18 lines (18 loc) · 587 Bytes

Delete

Go Reference

RW.Delete(...) example with one item

err, rowsAffected = rw.Delete(ctx, 
    &user, 
    dbw.WithVersion(&user.Version),
)  

RW.DeleteItems(...) example with multiple items

var rowsAffected int64
err = rw.DeleteItems(ctx,
    []interface{}{&user1, &user2}, 
    dbw.WithRowsAffected(&rowsAffected),
)