1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* dbcommands.h
|
1997-09-07 07:04:48 +02:00
|
|
|
*
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2003-08-04 04:40:20 +02:00
|
|
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2003-11-29 23:41:33 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/commands/dbcommands.h,v 1.30 2003/11/29 22:40:59 pgsql Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef DBCOMMANDS_H
|
|
|
|
#define DBCOMMANDS_H
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2002-09-05 02:43:07 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
2002-03-01 23:45:19 +01:00
|
|
|
|
2002-06-20 18:00:44 +02:00
|
|
|
extern void createdb(const CreatedbStmt *stmt);
|
2000-01-13 19:26:18 +01:00
|
|
|
extern void dropdb(const char *dbname);
|
2003-06-27 16:45:32 +02:00
|
|
|
extern void RenameDatabase(const char *oldname, const char *newname);
|
2002-03-01 23:45:19 +01:00
|
|
|
extern void AlterDatabaseSet(AlterDatabaseSetStmt *stmt);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2003-08-04 02:43:34 +02:00
|
|
|
extern Oid get_database_oid(const char *dbname);
|
|
|
|
extern char *get_database_name(Oid dbid);
|
2002-08-09 18:45:16 +02:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* DBCOMMANDS_H */
|