func (s *SQL) Create(ctx context.Context, col string, req *model.CreateRequest) (int64, error) {
	sqlQuery, args, err := s.generateCreateQuery(col, req)
	if err != nil {
		return 0, err
	}
	helpers.Logger.LogDebug(helpers.GetRequestID(ctx), "Executing create query", map[string]interface{}{"sqlQuery": sqlQuery, "queryArgs": args})
	res, err := doExecContext(ctx, sqlQuery, args, s.getClient())
	if err != nil {
		return 0, err
	}
	return res.RowsAffected()
}
Create inserts a document (or multiple when op is "all") into the database
package sql
import (
	"context"
	"strings"
	"github.com/doug-martin/goqu/v8"
	"github.com/spaceuptech/helpers"
	_ "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"
	"github.com/spaceuptech/space-cloud/gateway/utils"
)