Implemented datapoint delete
This commit is contained in:
parent
e549e18d44
commit
baeeced87b
6 changed files with 99 additions and 5 deletions
|
|
@ -233,3 +233,10 @@ func DatapointRetrieve(id int, name string) (dp Datapoint, err error) { // {{{
|
|||
|
||||
return
|
||||
} // }}}
|
||||
func DatapointDelete(id int) (err error) {// {{{
|
||||
_, err = service.Db.Conn.Exec(`DELETE FROM datapoint WHERE id=$1`, id)
|
||||
if err != nil {
|
||||
err = we.Wrap(err).WithData(id)
|
||||
}
|
||||
return
|
||||
}// }}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue