Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
parse_clause.h55 linesDownload Raw Back to parser
1/*-------------------------------------------------------------------------2 *3 * parse_clause.h4 *	  handle clauses in parser5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/parser/parse_clause.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef PARSE_CLAUSE_H15#define PARSE_CLAUSE_H16 17#include "parser/parse_node.h"18 19extern void transformFromClause(ParseState *pstate, List *frmList);20extern int	setTargetTable(ParseState *pstate, RangeVar *relation,21						   bool inh, bool alsoSource, AclMode requiredPerms);22 23extern Node *transformWhereClause(ParseState *pstate, Node *clause,24								  ParseExprKind exprKind, const char *constructName);25extern Node *transformLimitClause(ParseState *pstate, Node *clause,26								  ParseExprKind exprKind, const char *constructName,27								  LimitOption limitOption);28extern List *transformGroupClause(ParseState *pstate, List *grouplist,29								  List **groupingSets,30								  List **targetlist, List *sortClause,31								  ParseExprKind exprKind, bool useSQL99);32extern List *transformSortClause(ParseState *pstate, List *orderlist,33								 List **targetlist, ParseExprKind exprKind,34								 bool useSQL99);35 36extern List *transformWindowDefinitions(ParseState *pstate,37										List *windowdefs,38										List **targetlist);39 40extern List *transformDistinctClause(ParseState *pstate,41									 List **targetlist, List *sortClause, bool is_agg);42extern List *transformDistinctOnClause(ParseState *pstate, List *distinctlist,43									   List **targetlist, List *sortClause);44extern void transformOnConflictArbiter(ParseState *pstate,45									   OnConflictClause *onConflictClause,46									   List **arbiterExpr, Node **arbiterWhere,47									   Oid *constraint);48 49extern List *addTargetToSortList(ParseState *pstate, TargetEntry *tle,50								 List *sortlist, List *targetlist, SortBy *sortby);51extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);52extern bool targetIsInSortList(TargetEntry *tle, Oid sortop, List *sortList);53 54#endif							/* PARSE_CLAUSE_H */55 
codekingpro/portable-devtools · Team Ai