2022-03-31 06:19:11 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can use, redistribute, and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3
|
|
|
|
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2022-07-06 09:25:39 +00:00
|
|
|
#ifndef TDENGINE_COMMAND_H
|
|
|
|
|
#define TDENGINE_COMMAND_H
|
|
|
|
|
|
2022-03-31 06:19:11 +00:00
|
|
|
#include "cmdnodes.h"
|
2022-03-31 10:02:58 +00:00
|
|
|
#include "plannodes.h"
|
2022-08-24 09:36:10 +00:00
|
|
|
#include "tmsg.h"
|
2022-03-31 06:19:11 +00:00
|
|
|
|
2022-04-01 11:45:45 +00:00
|
|
|
typedef struct SExplainCtx SExplainCtx;
|
|
|
|
|
|
2023-09-18 08:59:07 +00:00
|
|
|
int32_t qExecCommand(int64_t* pConnId, bool sysInfoUser, SNode *pStmt, SRetrieveTableRsp **pRsp, int8_t biMode);
|
2022-03-31 10:02:58 +00:00
|
|
|
|
|
|
|
|
int32_t qExecStaticExplain(SQueryPlan *pDag, SRetrieveTableRsp **pRsp);
|
2022-04-11 06:15:09 +00:00
|
|
|
int32_t qExecExplainBegin(SQueryPlan *pDag, SExplainCtx **pCtx, int64_t startTs);
|
2022-04-02 11:31:52 +00:00
|
|
|
int32_t qExecExplainEnd(SExplainCtx *pCtx, SRetrieveTableRsp **pRsp);
|
2022-05-24 03:29:51 +00:00
|
|
|
int32_t qExplainUpdateExecInfo(SExplainCtx *pCtx, SExplainRsp *pRspMsg, int32_t groupId, SRetrieveTableRsp **pRsp);
|
2022-04-01 11:45:45 +00:00
|
|
|
void qExplainFreeCtx(SExplainCtx *pCtx);
|
2022-03-31 10:02:58 +00:00
|
|
|
|
2022-07-06 09:25:39 +00:00
|
|
|
#endif
|