Header And Logo

PostgreSQL
| The world's most advanced open source database.

comment.h

Go to the documentation of this file.
00001 /*
00002  * src/include/commands/comment.h
00003  *
00004  *-------------------------------------------------------------------------
00005  *
00006  * comment.h
00007  *
00008  * Prototypes for functions in commands/comment.c
00009  *
00010  * Copyright (c) 1999-2013, PostgreSQL Global Development Group
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 
00015 #ifndef COMMENT_H
00016 #define COMMENT_H
00017 
00018 #include "nodes/parsenodes.h"
00019 
00020 /*------------------------------------------------------------------
00021  * Function Prototypes --
00022  *
00023  * The following prototypes define the public functions of the comment
00024  * related routines.  CommentObject() implements the SQL "COMMENT ON"
00025  * command.  DeleteComments() deletes all comments for an object.
00026  * CreateComments creates (or deletes, if comment is NULL) a comment
00027  * for a specific key.  There are versions of these two methods for
00028  * both normal and shared objects.
00029  *------------------------------------------------------------------
00030  */
00031 
00032 extern Oid CommentObject(CommentStmt *stmt);
00033 
00034 extern void DeleteComments(Oid oid, Oid classoid, int32 subid);
00035 
00036 extern void CreateComments(Oid oid, Oid classoid, int32 subid, char *comment);
00037 
00038 extern void DeleteSharedComments(Oid oid, Oid classoid);
00039 
00040 extern void CreateSharedComments(Oid oid, Oid classoid, char *comment);
00041 
00042 extern char *GetComment(Oid oid, Oid classoid, int32 subid);
00043 
00044 #endif   /* COMMENT_H */