Files
gotify-tray-customized/venv/lib/python3.12/site-packages/PyQt6/bindings/QtSql/qsqlquery.sip
kdusek 5138303016
Some checks failed
build / build-pip (push) Failing after 16s
build / build-win64 (push) Has been cancelled
build / build-macos (push) Has been cancelled
Fix tray visibility and message reception issues
- Disable sound initialization to prevent hanging
- Add missing import re in utils.py
- Fix settings loading for QSettings
- Update file paths to use PROJECT_ROOT
- Revert to working API paths and listener from commit efdc63e
2025-12-07 22:39:07 +01:00

106 lines
3.4 KiB
Plaintext

// qsqlquery.sip generated by MetaSIP
//
// This file is part of the QtSql Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QSqlQuery
{
%TypeHeaderCode
#include <qsqlquery.h>
%End
public:
enum BatchExecutionMode
{
ValuesAsRows,
ValuesAsColumns,
};
explicit QSqlQuery(const QSqlDatabase &db);
QSqlQuery(const QString &query = QString(), const QSqlDatabase &db = QSqlDatabase()) /ReleaseGIL/;
explicit QSqlQuery(QSqlResult *r);
QSqlQuery(const QSqlQuery &other);
~QSqlQuery();
bool isValid() const;
bool isActive() const;
bool isNull(int field) const;
%If (Qt_6_8_0 -)
bool isNull(QAnyStringView name) const;
%End
%If (- Qt_6_8_0)
bool isNull(const QString &name) const;
%End
int at() const;
QString lastQuery() const;
int numRowsAffected() const;
QSqlError lastError() const;
bool isSelect() const;
int size() const;
const QSqlDriver *driver() const;
const QSqlResult *result() const;
bool isForwardOnly() const;
QSqlRecord record() const;
void setForwardOnly(bool forward);
bool exec(const QString &query) /ReleaseGIL/;
QVariant value(int i) const;
%If (Qt_6_8_0 -)
QVariant value(QAnyStringView name) const;
%End
%If (- Qt_6_8_0)
QVariant value(const QString &name) const;
%End
bool seek(int index, bool relative = false) /ReleaseGIL/;
bool next() /ReleaseGIL/;
bool previous() /ReleaseGIL/;
bool first() /ReleaseGIL/;
bool last() /ReleaseGIL/;
void clear() /ReleaseGIL/;
bool exec() /ReleaseGIL/;
bool execBatch(QSqlQuery::BatchExecutionMode mode = QSqlQuery::ValuesAsRows);
bool prepare(const QString &query) /ReleaseGIL/;
void bindValue(const QString &placeholder, const QVariant &val, QSql::ParamType type = QSql::In);
void bindValue(int pos, const QVariant &val, QSql::ParamType type = QSql::In);
void addBindValue(const QVariant &val, QSql::ParamType type = QSql::In);
QVariant boundValue(const QString &placeholder) const;
QVariant boundValue(int pos) const;
QVariantList boundValues() const;
QString executedQuery() const;
QVariant lastInsertId() const;
void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy precisionPolicy);
QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const;
void finish();
bool nextResult();
%If (Qt_6_2_0 -)
void swap(QSqlQuery &other /Constrained/);
%End
%If (Qt_6_6_0 -)
QStringList boundValueNames() const;
%End
%If (Qt_6_6_0 -)
QString boundValueName(int pos) const;
%End
%If (Qt_6_7_0 -)
void setPositionalBindingEnabled(bool enable);
%End
%If (Qt_6_7_0 -)
bool isPositionalBindingEnabled() const;
%End
};