QGIS/python/PyQt6/core/auto_additions/qgssqlstatement.py
Nyall Dawson 1f27fc627a [pyqgis] Wrap unambiguously static methods in staticmethod
sip doesn't use the standard Python staticmethod type for defining
static methods, which means that standard means of testing
for a static method (like `isinstance(..., staticmethod)`) fail
with any PyQGIS static methods.

This causes issues with lint tools, which incorrectly flag
calls to QGIS static methods as missing self arguments. It also
breaks detection of static methods in the sphinx PyQGIS docs,
so all static methods are shown as non-static.

Work around this in sipify, by wrapping unambiguously static
methods in staticmethod wrappers.
2024-08-14 22:08:41 +10:00

52 lines
3.3 KiB
Python

# The following has been generated automatically from src/core/qgssqlstatement.h
QgsSQLStatement.uoNot = QgsSQLStatement.UnaryOperator.uoNot
QgsSQLStatement.uoMinus = QgsSQLStatement.UnaryOperator.uoMinus
QgsSQLStatement.boOr = QgsSQLStatement.BinaryOperator.boOr
QgsSQLStatement.boAnd = QgsSQLStatement.BinaryOperator.boAnd
QgsSQLStatement.boEQ = QgsSQLStatement.BinaryOperator.boEQ
QgsSQLStatement.boNE = QgsSQLStatement.BinaryOperator.boNE
QgsSQLStatement.boLE = QgsSQLStatement.BinaryOperator.boLE
QgsSQLStatement.boGE = QgsSQLStatement.BinaryOperator.boGE
QgsSQLStatement.boLT = QgsSQLStatement.BinaryOperator.boLT
QgsSQLStatement.boGT = QgsSQLStatement.BinaryOperator.boGT
QgsSQLStatement.boLike = QgsSQLStatement.BinaryOperator.boLike
QgsSQLStatement.boNotLike = QgsSQLStatement.BinaryOperator.boNotLike
QgsSQLStatement.boILike = QgsSQLStatement.BinaryOperator.boILike
QgsSQLStatement.boNotILike = QgsSQLStatement.BinaryOperator.boNotILike
QgsSQLStatement.boIs = QgsSQLStatement.BinaryOperator.boIs
QgsSQLStatement.boIsNot = QgsSQLStatement.BinaryOperator.boIsNot
QgsSQLStatement.boPlus = QgsSQLStatement.BinaryOperator.boPlus
QgsSQLStatement.boMinus = QgsSQLStatement.BinaryOperator.boMinus
QgsSQLStatement.boMul = QgsSQLStatement.BinaryOperator.boMul
QgsSQLStatement.boDiv = QgsSQLStatement.BinaryOperator.boDiv
QgsSQLStatement.boIntDiv = QgsSQLStatement.BinaryOperator.boIntDiv
QgsSQLStatement.boMod = QgsSQLStatement.BinaryOperator.boMod
QgsSQLStatement.boPow = QgsSQLStatement.BinaryOperator.boPow
QgsSQLStatement.boConcat = QgsSQLStatement.BinaryOperator.boConcat
QgsSQLStatement.jtDefault = QgsSQLStatement.JoinType.jtDefault
QgsSQLStatement.jtLeft = QgsSQLStatement.JoinType.jtLeft
QgsSQLStatement.jtLeftOuter = QgsSQLStatement.JoinType.jtLeftOuter
QgsSQLStatement.jtRight = QgsSQLStatement.JoinType.jtRight
QgsSQLStatement.jtRightOuter = QgsSQLStatement.JoinType.jtRightOuter
QgsSQLStatement.jtCross = QgsSQLStatement.JoinType.jtCross
QgsSQLStatement.jtInner = QgsSQLStatement.JoinType.jtInner
QgsSQLStatement.jtFull = QgsSQLStatement.JoinType.jtFull
QgsSQLStatement.ntUnaryOperator = QgsSQLStatement.NodeType.ntUnaryOperator
QgsSQLStatement.ntBinaryOperator = QgsSQLStatement.NodeType.ntBinaryOperator
QgsSQLStatement.ntInOperator = QgsSQLStatement.NodeType.ntInOperator
QgsSQLStatement.ntBetweenOperator = QgsSQLStatement.NodeType.ntBetweenOperator
QgsSQLStatement.ntFunction = QgsSQLStatement.NodeType.ntFunction
QgsSQLStatement.ntLiteral = QgsSQLStatement.NodeType.ntLiteral
QgsSQLStatement.ntColumnRef = QgsSQLStatement.NodeType.ntColumnRef
QgsSQLStatement.ntSelectedColumn = QgsSQLStatement.NodeType.ntSelectedColumn
QgsSQLStatement.ntSelect = QgsSQLStatement.NodeType.ntSelect
QgsSQLStatement.ntTableDef = QgsSQLStatement.NodeType.ntTableDef
QgsSQLStatement.ntJoin = QgsSQLStatement.NodeType.ntJoin
QgsSQLStatement.ntColumnSorted = QgsSQLStatement.NodeType.ntColumnSorted
QgsSQLStatement.ntCast = QgsSQLStatement.NodeType.ntCast
QgsSQLStatement.quotedIdentifier = staticmethod(QgsSQLStatement.quotedIdentifier)
QgsSQLStatement.quotedIdentifierIfNeeded = staticmethod(QgsSQLStatement.quotedIdentifierIfNeeded)
QgsSQLStatement.stripQuotedIdentifier = staticmethod(QgsSQLStatement.stripQuotedIdentifier)
QgsSQLStatement.stripMsQuotedIdentifier = staticmethod(QgsSQLStatement.stripMsQuotedIdentifier)
QgsSQLStatement.quotedString = staticmethod(QgsSQLStatement.quotedString)