func (s *SQL) RawQuery(ctx context.Context, query string, isDebug bool, args []interface{}) (int64, interface{}, *model.SQLMetaData, error) {
	count, result, _, metaData, err := s.readExec(ctx, "", query, args, s.getClient(), &model.ReadRequest{Operation: utils.All, Options: &model.ReadOptions{Debug: isDebug}})
	return count, result, metaData, err
}
RawQuery query document(s) from the database
package sql
import (
	"context"
	"database/sql"
	"fmt"
	"github.com/spaceuptech/helpers"
	"github.com/spaceuptech/space-cloud/gateway/model"
	"github.com/spaceuptech/space-cloud/gateway/utils"
)
func (s *SQL) RawBatch(ctx context.Context, queries []string) error {
	if len(queries) == 0 {
		return nil
	}
	helpers.Logger.LogDebug(helpers.GetRequestID(ctx), "Executing sql raw query", map[string]interface{}{"queries": queries})
	tx, err := s.getClient().BeginTx(ctx, &sql.TxOptions{})
	if err != nil {
		return err
	}
	for _, query := range queries {
		_, err := tx.ExecContext(ctx, query)
		if err != nil {
			_ = tx.Rollback()
			return err
		}
	}
	if err := tx.Commit(); err != nil {
		_ = tx.Rollback()
		return err
	}
	return nil
}