common-triggers.go 572 B

1234567891011121314151617
  1. package models
  2. // func DeleteBdRows(qryname string, y *abango.Controller, id int) error {
  3. // fileQry := "queries/triggers/delete" + qryname + ".sql"
  4. // sqlStr, err := abango.GetQryStr(fileQry)
  5. // if err != nil {
  6. // return errors.New(e.FuncRunErr("ewtrytbvfgr", fileQry+" file does NOT exist."))
  7. // }
  8. // if _, err := y.Db.Exec(sqlStr, id); err == nil {
  9. // e.FuncRun("65rfg0csde", qryname+" "+e.CurrFuncName())
  10. // return nil
  11. // } else {
  12. // return errors.New(e.FuncRunErr("65rfg0csdew", qryname+" "+e.CurrFuncName()+err.Error()))
  13. // }
  14. // }