1999-10-26 05:12:39 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* comment.h
|
2000-04-12 19:17:23 +02:00
|
|
|
*
|
1999-10-26 05:12:39 +02:00
|
|
|
* Prototypes for functions in commands/comment.c
|
|
|
|
*
|
2004-08-29 06:13:13 +02:00
|
|
|
* Copyright (c) 1999-2004, PostgreSQL Global Development Group
|
1999-10-26 05:12:39 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COMMENT_H
|
|
|
|
#define COMMENT_H
|
|
|
|
|
2002-04-09 22:35:55 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
2000-06-15 02:52:26 +02:00
|
|
|
|
1999-10-26 05:12:39 +02:00
|
|
|
/*------------------------------------------------------------------
|
|
|
|
* Function Prototypes --
|
2000-04-12 19:17:23 +02:00
|
|
|
*
|
2003-03-10 23:28:22 +01:00
|
|
|
* The following prototypes define the public functions of the comment
|
2001-08-10 20:57:42 +02:00
|
|
|
* related routines. CommentObject() implements the SQL "COMMENT ON"
|
|
|
|
* command. DeleteComments() deletes all comments for an object.
|
|
|
|
* CreateComments creates (or deletes, if comment is NULL) a comment
|
|
|
|
* for a specific key.
|
1999-10-26 05:12:39 +02:00
|
|
|
*------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2002-04-09 22:35:55 +02:00
|
|
|
extern void CommentObject(CommentStmt *stmt);
|
1999-10-26 05:12:39 +02:00
|
|
|
|
2002-07-12 20:43:19 +02:00
|
|
|
extern void DeleteComments(Oid oid, Oid classoid, int32 subid);
|
2001-08-10 20:57:42 +02:00
|
|
|
|
|
|
|
extern void CreateComments(Oid oid, Oid classoid, int32 subid, char *comment);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* COMMENT_H */
|