Skip to content

Commit

Permalink
Dox++
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 24, 2020
1 parent 5657fbc commit a035f43
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
17 changes: 15 additions & 2 deletions python/core/auto_generated/qgsdatasourceuri.sip.in
Expand Up @@ -147,6 +147,9 @@ Sets the URI database name.
const QString &aKeyColumn = QString() );
%Docstring
Sets all data source related members at once.

The ``aSql`` argument represents a subset filter string to be applied to the source, and should take the
form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").
%End

void setAuthConfigId( const QString &authcfg );
Expand Down Expand Up @@ -191,7 +194,12 @@ Returns the table name stored in the URI.

QString sql() const;
%Docstring
Returns the SQL query stored in the URI, if set.
Returns the SQL filter stored in the URI, if set.

This represents a subset filter string to be applied to the source, and takes the
form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").

.. seealso:: :py:func:`setSql`
%End

QString geometryColumn() const;
Expand Down Expand Up @@ -233,7 +241,12 @@ Sets the ``scheme`` for the URI.

void setSql( const QString &sql );
%Docstring
Sets the SQL query for the URI.
Sets the \sql filter for the URI.

The ``sql`` represents a subset filter string to be applied to the source, and should take the
form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").

.. seealso:: :py:func:`sql`
%End

QString host() const;
Expand Down
21 changes: 19 additions & 2 deletions src/core/qgsdatasourceuri.h
Expand Up @@ -158,6 +158,9 @@ class CORE_EXPORT QgsDataSourceUri

/**
* Sets all data source related members at once.
*
* The \a aSql argument represents a subset filter string to be applied to the source, and should take the
* form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").
*/
void setDataSource( const QString &aSchema,
const QString &aTable,
Expand Down Expand Up @@ -199,7 +202,14 @@ class CORE_EXPORT QgsDataSourceUri
//! Returns the table name stored in the URI.
QString table() const;

//! Returns the SQL query stored in the URI, if set.
/**
* Returns the SQL filter stored in the URI, if set.
*
* This represents a subset filter string to be applied to the source, and takes the
* form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").
*
* \see setSql()
*/
QString sql() const;

//! Returns the name of the geometry column stored in the URI, if set.
Expand All @@ -226,7 +236,14 @@ class CORE_EXPORT QgsDataSourceUri
*/
void setSchema( const QString &schema );

//! Sets the SQL query for the URI.
/**
* Sets the \sql filter for the URI.
*
* The \a sql represents a subset filter string to be applied to the source, and should take the
* form of a SQL "where" clause (e.g. "VALUE > 5", "CAT IN (1,2,3)").
*
* \see sql()
*/
void setSql( const QString &sql );

//! Returns the host name stored in the URI.
Expand Down

0 comments on commit a035f43

Please sign in to comment.