Skip to content

Commit

Permalink
message CRUD without delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorna-Das committed Oct 20, 2023
2 parents 952a6bf + e4bf7ed commit b21d1fa
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions internal/model/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,3 @@ func (u *Messages) UpdatedMessages(msgId string) error {

return nil
}

// func (d *Messages) DeletedMessages(msgId string) error {
// db, err := durable.CreateDatabase("Database/messages")
// if err != nil {
// panic(err)
// }
// defer db.Close()


// _, err := statement.Exec("DELETE FROM Messages where msgId = ?", msgId)

// rows,_ := Database.Query()
// if err != nil {
// log.Fatal(err)
// }

// return nil
// }

0 comments on commit b21d1fa

Please sign in to comment.