func (s *SQL) generateDeleteQuery(ctx context.Context, req *model.DeleteRequest, col string) (string, []interface{}, error) {
	dbType := s.dbType
	if dbType == string(model.SQLServer) {
		dbType = string(model.Postgres)
	}
	dialect := goqu.Dialect(dbType)
	query := dialect.From(s.getColName(col)).Prepared(true)
	if req.Find != nil {
		query = s.generateWhereClause(ctx, query, req.Find, nil)
	}
	sqlString, args, err := query.Delete().ToSQL()
	if err != nil {
		return "", nil, err
	}
	sqlString = strings.Replace(sqlString, "\"", "", -1)
	if s.dbType == string(model.SQLServer) {
		sqlString = s.generateQuerySQLServer(sqlString)
	}
	return sqlString, args, nil
}
genrateDeleteQuery makes query for delete operation
package sql
import (
	"context"
	"strings"
	"github.com/doug-martin/goqu/v8"
	_ "github.com/denisenkom/go-mssqldb"                 
	_ "github.com/doug-martin/goqu/v8/dialect/postgres"  
	_ "github.com/go-sql-driver/mysql"                   
	_ "github.com/lib/pq"                                
	"github.com/spaceuptech/space-cloud/gateway/model"
)
func (s *SQL) Delete(ctx context.Context, col string, req *model.DeleteRequest) (int64, error) {
	sqlString, args, err := s.generateDeleteQuery(ctx, req, col)
	if err != nil {
		return 0, err
	}
	res, err := doExecContext(ctx, sqlString, args, s.getClient())
	if err != nil {
		return 0, err
	}
	return res.RowsAffected()
}