1996-07-09 02:22:35 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* command.h--
|
1997-09-07 01:04:48 -04:00
|
|
|
* prototypes for command.c.
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
1998-02-25 23:46:47 -05:00
|
|
|
* $Id: command.h,v 1.9 1998/02/26 04:41:04 momjian Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef COMMAND_H
|
|
|
|
|
#define COMMAND_H
|
|
|
|
|
|
1996-11-06 03:02:40 -05:00
|
|
|
#include <utils/portal.h>
|
1996-07-09 02:22:35 -04:00
|
|
|
|
|
|
|
|
extern MemoryContext PortalExecutorHeapMemory;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* PerformPortalFetch --
|
1997-09-07 01:04:48 -04:00
|
|
|
* Performs the POSTQUEL function FETCH. Fetches count (or all if 0)
|
1996-07-09 02:22:35 -04:00
|
|
|
* tuples in portal with name in the forward direction iff goForward.
|
|
|
|
|
*
|
|
|
|
|
* Exceptions:
|
1997-09-07 01:04:48 -04:00
|
|
|
* BadArg if forward invalid.
|
|
|
|
|
* "WARN" if portal not found.
|
1996-07-09 02:22:35 -04:00
|
|
|
*/
|
1998-02-25 23:46:47 -05:00
|
|
|
extern void
|
|
|
|
|
PerformPortalFetch(char *name, bool forward, int count,
|
1997-09-07 01:04:48 -04:00
|
|
|
char *tag, CommandDest dest);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* PerformPortalClose --
|
1997-09-07 01:04:48 -04:00
|
|
|
* Performs the POSTQUEL function CLOSE.
|
1996-07-09 02:22:35 -04:00
|
|
|
*/
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void PerformPortalClose(char *name, CommandDest dest);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void PortalCleanup(Portal portal);
|
1997-08-19 17:40:56 -04:00
|
|
|
|
1996-07-09 02:22:35 -04:00
|
|
|
/*
|
|
|
|
|
* PerformAddAttribute --
|
1997-09-07 01:04:48 -04:00
|
|
|
* Performs the POSTQUEL function ADD.
|
1996-07-09 02:22:35 -04:00
|
|
|
*/
|
1998-02-25 23:46:47 -05:00
|
|
|
extern void
|
|
|
|
|
PerformAddAttribute(char *relationName, char *userName,
|
1997-09-08 17:56:23 -04:00
|
|
|
bool inh, ColumnDef *colDef);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1997-09-07 01:04:48 -04:00
|
|
|
#endif /* COMMAND_H */
|