~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/pgDatabase.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: pgDatabase.h 6930 2008-01-02 00:10:01Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
 
4
// RCS-ID:      $Id: pgDatabase.h 7758 2009-03-26 20:49:59Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
7
7
//
8
8
// pgDatabase.h - PostgreSQL Database
9
9
//
40
40
 
41
41
    pgDatabase *GetDatabase() const { return (pgDatabase*)this; }
42
42
    bool BackendMinimumVersion(int major, int minor) { return connection()->BackendMinimumVersion(major, minor); }
 
43
    bool BackendMinimumVersion(int major, int minor, int patch) { return connection()->BackendMinimumVersion(major, minor, patch); }
43
44
 
44
45
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
45
46
    void ShowHint(frmMain *form, bool force);
67
68
    void iSetEncoding(const wxString& newVal) { encoding = newVal; }
68
69
    wxString GetSchemaRestriction() { return schemaRestriction; }
69
70
    void iSetSchemaRestriction(const wxString &s) { schemaRestriction = s; }
 
71
    wxString GetCollate() const { return collate; }
 
72
    void iSetCollate( const wxString& newVal) { collate = newVal; }
 
73
    wxString GetCType() const { return ctype; }
 
74
    void iSetCType( const wxString& newVal) { ctype = newVal; }
 
75
    long GetConnectionLimit() { return connectionLimit; }
 
76
    void iSetConnectionLimit(long newVal) { connectionLimit = newVal; }
70
77
 
71
78
    wxArrayString& GetVariables() { return variables; }
72
79
    bool GetAllowConnections() const { return allowConnections; }
74
81
    wxString GetSearchPath() const { return searchPath; }
75
82
    wxString GetSchemaPrefix(const wxString &schemaname) const;
76
83
    wxString GetQuotedSchemaPrefix(const wxString &schemaname) const;
77
 
        wxString GetDefaultSchema() { return defaultSchema; };
 
84
    wxString GetDefaultSchema() { return defaultSchema; };
78
85
    bool GetConnected() { return connected; }
79
86
    bool GetSystemObject() const;
80
87
    long GetMissingFKs() const { return missingFKs; }
111
118
    pgConn *conn;
112
119
    bool connected;
113
120
    bool useServerConnection;
114
 
    wxString searchPath, path, tablespace, defaultTablespace, encoding;
 
121
    wxString searchPath, path, tablespace, defaultTablespace, encoding, collate, ctype;
115
122
    wxString prettyOption, defaultSchema;
116
123
    bool allowConnections, createPrivilege;
117
124
    long missingFKs;
 
125
    long connectionLimit;
118
126
    wxArrayString variables;
119
127
 
120
128
    wxString schemaChanges;
122
130
 
123
131
    int canDebugPlpgsql, canDebugEdbspl;
124
132
 
125
 
        OID tablespaceOid;
 
133
    OID tablespaceOid;
126
134
};
127
135
 
128
136
class pgDatabaseCollection : public pgServerObjCollection
138
146
class pgDatabaseObjFactory : public pgServerObjFactory
139
147
{
140
148
public:
141
 
    pgDatabaseObjFactory(const wxChar *tn, const wxChar *ns, const wxChar *nls, char **img, char **imgSm=0) 
 
149
    pgDatabaseObjFactory(const wxChar *tn, const wxChar *ns, const wxChar *nls, const char **img, const char **imgSm=0) 
142
150
        : pgServerObjFactory(tn, ns, nls, img, imgSm) {}
143
151
    virtual pgCollection *CreateCollection(pgObject *obj);
144
152
};