// RemoveAll deletes all items from the console ownership.
RemoveAll deletes all items from the console ownership.
// RemoveAll deletes all items from the console ownership .
func (ds *DataStore) RemoveAll() (rowsAffected int64, err error) {
	sqlStmt := `
        delete from ownership
    `
	result, err := ds.DB.Exec(sqlStmt)
	rowsAffected = 0
	if err != nil {
		errMsg := fmt.Sprintf("WARN: RemoveAll: There is a DELETE error: %s", err)
		log.Printf(errMsg)
		err = errors.New(errMsg)
	}
	if result != nil {
		rowsAffected, _ = result.RowsAffected()
		log.Printf("result.RowsAffected %d", rowsAffected)
	}
	return rowsAffected, err
}
func ( ds * DataStore ) RemoveAll ( ) ( rowsAffected int64 , err error ) { sqlStmt := `
        delete from ownership
    ` result , err := ds . DB . Exec ( sqlStmt ) rowsAffected = 0 if err != nil { errMsg := fmt . Sprintf ( " " , err ) log . Printf ( errMsg ) err = errors . New ( errMsg ) } if result != nil { rowsAffected , _ = result . RowsAffected ( ) log . Printf ( " " , rowsAffected ) } return rowsAffected , err }
RemoveAll deletes all items from the console ownership.
RemoveAll deletes all items from the console ownership .