Skip to content

Commit

Permalink
add QgsDataSourceURI::database()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10579 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 16, 2009
1 parent 4bd78a3 commit 93b2f42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/qgsdatasourceuri.sip
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public:
QString table() const;
QString sql() const;
QString geometryColumn() const;
QString database() const; // added in version 1.1

void setSql(QString sql);
};
5 changes: 5 additions & 0 deletions src/core/qgsdatasourceuri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ QString QgsDataSourceURI::username() const
return mUsername;
}

QString QgsDataSourceURI::database() const
{
return mDatabase;
}

QString QgsDataSourceURI::schema() const
{
return mSchema;
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsdatasourceuri.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class CORE_EXPORT QgsDataSourceURI
QString table() const;
QString sql() const;
QString geometryColumn() const;
QString database() const; // added in version 1.1
enum SSLmode sslMode() const;

void clearSchema();
Expand Down

0 comments on commit 93b2f42

Please sign in to comment.