Пример #1
0
        public QueryPlan Explain(FetchType fetchType = FetchType.FetchMany)
        {
            var model   = MartenQueryParser.Flyweight.GetParsedQuery(Expression);
            var handler = toDiagnosticHandler(model, fetchType);

            var cmd = new NpgsqlCommand();

            handler.ConfigureCommand(cmd);

            return(Executor.As <MartenQueryExecutor>().Connection.ExplainQuery(cmd));
        }