52 Q_DECLARE_PRIVATE(QODBCDriver)
54 friend class QODBCResultPrivate;
57 explicit QODBCDriver(QObject *parent=
nullptr);
58 QODBCDriver(SQLHANDLE env, SQLHANDLE con, QObject * parent=
nullptr);
59 virtual ~QODBCDriver();
60 bool hasFeature(DriverFeature f)
const override;
61 void close() override;
62 QSqlResult *createResult()
const override;
63 QStringList tables(QSql::TableType)
const override;
64 QSqlRecord record(
const QString &tablename)
const override;
65 QSqlIndex primaryIndex(
const QString &tablename)
const override;
66 QVariant handle()
const override;
67 QString formatValue(
const QSqlField &field,
68 bool trimStrings)
const override;
69 bool open(
const QString &db,
71 const QString &password,
74 const QString &connOpts) override;
76 QString escapeIdentifier(
const QString &identifier, IdentifierType type)
const override;
78 bool isIdentifierEscaped(
const QString &identifier, IdentifierType type)
const override;
81 bool beginTransaction() override;
82 bool commitTransaction() override;
83 bool rollbackTransaction() override;