19 #ifndef QGSDATASOURCEURI_H 20 #define QGSDATASOURCEURI_H 22 #include "qgis_core.h" 65 QString connectionInfo(
bool expandAuthConfig =
true )
const;
68 QString uri(
bool expandAuthConfig =
true )
const;
71 QByteArray encodedUri()
const;
77 void setEncodedUri(
const QByteArray &uri )
SIP_SKIP;
80 void setEncodedUri(
const QString &uri );
83 QString quotedTablename()
const;
89 void setParam(
const QString &key,
const QString &value );
91 void setParam(
const QString &key,
const QStringList &value )
SIP_PYNAME( setParamList );
97 int removeParam(
const QString &key );
100 QString param(
const QString &key )
const;
103 QStringList params(
const QString &key )
const;
106 bool hasParam(
const QString &key )
const;
109 void setConnection(
const QString &aHost,
110 const QString &aPort,
111 const QString &aDatabase,
112 const QString &aUsername,
113 const QString &aPassword,
115 const QString &authConfigId = QString() );
118 void setConnection(
const QString &aService,
119 const QString &aDatabase,
120 const QString &aUsername,
121 const QString &aPassword,
123 const QString &authConfigId = QString() );
126 void setDatabase(
const QString &database );
129 void setDataSource(
const QString &aSchema,
130 const QString &aTable,
131 const QString &aGeometryColumn,
132 const QString &aSql = QString(),
133 const QString &aKeyColumn = QString() );
136 void setAuthConfigId(
const QString &authcfg );
139 void setUsername(
const QString &username );
142 void setPassword(
const QString &password );
145 static QString removePassword(
const QString &aUri );
148 QString authConfigId()
const;
151 QString username()
const;
154 QString schema()
const;
157 QString table()
const;
163 QString geometryColumn()
const;
166 void setUseEstimatedMetadata(
bool flag );
169 bool useEstimatedMetadata()
const;
172 void disableSelectAtId(
bool flag );
174 bool selectAtIdDisabled()
const;
181 void setSchema(
const QString &schema );
184 void setSql(
const QString &sql );
187 QString host()
const;
189 QString database()
const;
191 QString port()
const;
194 QString driver()
const;
197 void setDriver(
const QString &driver );
199 QString password()
const;
204 QString service()
const;
207 QString keyColumn()
const;
209 void setKeyColumn(
const QString &column );
220 QString srid()
const;
222 void setSrid(
const QString &srid );
228 static SslMode decodeSslMode(
const QString &sslMode );
234 static QString encodeSslMode(
SslMode sslMode );
237 void skipBlanks(
const QString &uri,
int &i );
238 QString getValue(
const QString &uri,
int &i );
239 QString escape(
const QString &uri, QChar delim )
const;
258 QString mGeometryColumn;
262 QString mAuthConfigId;
272 bool mUseEstimatedMetadata =
false;
274 bool mSelectAtIdDisabled =
false;
280 QMap<QString, QString> mParams;
283 #endif //QGSDATASOURCEURI_H
Type
The WKB type describes the number of dimensions a geometry has.
Class for storing the component parts of a PostgreSQL/RDBMS datasource URI.