16#ifndef QGSDATABASESCHEMAMODEL_H
17#define QGSDATABASESCHEMAMODEL_H
24#include <QAbstractItemModel>
25#include <QSortFilterProxyModel>
80 QModelIndex parent(
const QModelIndex &child )
const override;
81 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
82 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
83 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
84 QModelIndex index(
int row,
int column,
const QModelIndex &parent )
const override;
90 void setAllowEmptySchema(
bool allowEmpty );
107 std::unique_ptr< QgsAbstractDatabaseProviderConnection > mConnection;
108 QStringList mSchemas;
109 bool mAllowEmpty =
false;
Provides common functionality for database based connections.
A model containing schemas from a database connection.
CustomRole
Custom model roles.
QgsDatabaseSchemaModel(const QString &provider, const QString &connection, QObject *parent=nullptr)
Constructor for QgsDatabaseSchemaModel, for the specified provider and connection name.
bool allowEmptySchema() const
Returns true if the model allows the empty schema ("not set") choice.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)