DBC_Converter/venv/Lib/site-packages/PySide2/QtSql.pyi
2025-01-03 23:49:59 +09:00

749 lines
34 KiB
Python

# This Python file uses the following encoding: utf-8
#############################################################################
##
## Copyright (C) 2020 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of Qt for Python.
##
## $QT_BEGIN_LICENSE:LGPL$
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this file in
## accordance with the commercial license agreement provided with the
## Software or, alternatively, in accordance with the terms contained in
## a written agreement between you and The Qt Company. For licensing terms
## and conditions see https://www.qt.io/terms-conditions. For further
## information use the contact form at https://www.qt.io/contact-us.
##
## GNU Lesser General Public License Usage
## Alternatively, this file may be used under the terms of the GNU Lesser
## General Public License version 3 as published by the Free Software
## Foundation and appearing in the file LICENSE.LGPL3 included in the
## packaging of this file. Please review the following information to
## ensure the GNU Lesser General Public License version 3 requirements
## will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
##
## GNU General Public License Usage
## Alternatively, this file may be used under the terms of the GNU
## General Public License version 2.0 or (at your option) the GNU General
## Public license version 3 or any later version approved by the KDE Free
## Qt Foundation. The licenses are as published by the Free Software
## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
## included in the packaging of this file. Please review the following
## information to ensure the GNU General Public License requirements will
## be met: https://www.gnu.org/licenses/gpl-2.0.html and
## https://www.gnu.org/licenses/gpl-3.0.html.
##
## $QT_END_LICENSE$
##
#############################################################################
"""
This file contains the exact signatures for all functions in module
PySide2.QtSql, except for defaults which are replaced by "...".
"""
# Module PySide2.QtSql
import PySide2
try:
import typing
except ImportError:
from PySide2.support.signature import typing
from PySide2.support.signature.mapping import (
Virtual, Missing, Invalid, Default, Instance)
class Object(object): pass
import shiboken2 as Shiboken
Shiboken.Object = Object
import PySide2.QtCore
import PySide2.QtWidgets
import PySide2.QtSql
class QSql(Shiboken.Object):
AfterLastRow : QSql = ... # -0x2
BeforeFirstRow : QSql = ... # -0x1
HighPrecision : QSql = ... # 0x0
In : QSql = ... # 0x1
LowPrecisionInt32 : QSql = ... # 0x1
Tables : QSql = ... # 0x1
LowPrecisionInt64 : QSql = ... # 0x2
Out : QSql = ... # 0x2
SystemTables : QSql = ... # 0x2
InOut : QSql = ... # 0x3
Binary : QSql = ... # 0x4
LowPrecisionDouble : QSql = ... # 0x4
Views : QSql = ... # 0x4
AllTables : QSql = ... # 0xff
class Location(object):
AfterLastRow : QSql.Location = ... # -0x2
BeforeFirstRow : QSql.Location = ... # -0x1
class NumericalPrecisionPolicy(object):
HighPrecision : QSql.NumericalPrecisionPolicy = ... # 0x0
LowPrecisionInt32 : QSql.NumericalPrecisionPolicy = ... # 0x1
LowPrecisionInt64 : QSql.NumericalPrecisionPolicy = ... # 0x2
LowPrecisionDouble : QSql.NumericalPrecisionPolicy = ... # 0x4
class ParamType(object): ...
class ParamTypeFlag(object):
In : QSql.ParamTypeFlag = ... # 0x1
Out : QSql.ParamTypeFlag = ... # 0x2
InOut : QSql.ParamTypeFlag = ... # 0x3
Binary : QSql.ParamTypeFlag = ... # 0x4
class TableType(object):
Tables : QSql.TableType = ... # 0x1
SystemTables : QSql.TableType = ... # 0x2
Views : QSql.TableType = ... # 0x4
AllTables : QSql.TableType = ... # 0xff
class QSqlDatabase(Shiboken.Object):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, driver:PySide2.QtSql.QSqlDriver) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlDatabase) -> None: ...
@typing.overload
def __init__(self, type:str) -> None: ...
@staticmethod
def __copy__() -> None: ...
@typing.overload
@staticmethod
def addDatabase(driver:PySide2.QtSql.QSqlDriver, connectionName:str=...) -> PySide2.QtSql.QSqlDatabase: ...
@typing.overload
@staticmethod
def addDatabase(type:str, connectionName:str=...) -> PySide2.QtSql.QSqlDatabase: ...
@typing.overload
@staticmethod
def cloneDatabase(other:PySide2.QtSql.QSqlDatabase, connectionName:str) -> PySide2.QtSql.QSqlDatabase: ...
@typing.overload
@staticmethod
def cloneDatabase(other:str, connectionName:str) -> PySide2.QtSql.QSqlDatabase: ...
def close(self) -> None: ...
def commit(self) -> bool: ...
def connectOptions(self) -> str: ...
def connectionName(self) -> str: ...
@staticmethod
def connectionNames() -> typing.List: ...
@staticmethod
def contains(connectionName:str=...) -> bool: ...
@staticmethod
def database(connectionName:str=..., open:bool=...) -> PySide2.QtSql.QSqlDatabase: ...
def databaseName(self) -> str: ...
def driver(self) -> PySide2.QtSql.QSqlDriver: ...
def driverName(self) -> str: ...
@staticmethod
def drivers() -> typing.List: ...
def exec_(self, query:str=...) -> PySide2.QtSql.QSqlQuery: ...
def hostName(self) -> str: ...
@staticmethod
def isDriverAvailable(name:str) -> bool: ...
def isOpen(self) -> bool: ...
def isOpenError(self) -> bool: ...
def isValid(self) -> bool: ...
def lastError(self) -> PySide2.QtSql.QSqlError: ...
def numericalPrecisionPolicy(self) -> PySide2.QtSql.QSql.NumericalPrecisionPolicy: ...
@typing.overload
def open(self) -> bool: ...
@typing.overload
def open(self, user:str, password:str) -> bool: ...
def password(self) -> str: ...
def port(self) -> int: ...
def primaryIndex(self, tablename:str) -> PySide2.QtSql.QSqlIndex: ...
def record(self, tablename:str) -> PySide2.QtSql.QSqlRecord: ...
@staticmethod
def registerSqlDriver(name:str, creator:PySide2.QtSql.QSqlDriverCreatorBase) -> None: ...
@staticmethod
def removeDatabase(connectionName:str) -> None: ...
def rollback(self) -> bool: ...
def setConnectOptions(self, options:str=...) -> None: ...
def setDatabaseName(self, name:str) -> None: ...
def setHostName(self, host:str) -> None: ...
def setNumericalPrecisionPolicy(self, precisionPolicy:PySide2.QtSql.QSql.NumericalPrecisionPolicy) -> None: ...
def setPassword(self, password:str) -> None: ...
def setPort(self, p:int) -> None: ...
def setUserName(self, name:str) -> None: ...
def tables(self, type:PySide2.QtSql.QSql.TableType=...) -> typing.List: ...
def transaction(self) -> bool: ...
def userName(self) -> str: ...
class QSqlDriver(PySide2.QtCore.QObject):
FieldName : QSqlDriver = ... # 0x0
Transactions : QSqlDriver = ... # 0x0
UnknownDbms : QSqlDriver = ... # 0x0
UnknownSource : QSqlDriver = ... # 0x0
WhereStatement : QSqlDriver = ... # 0x0
MSSqlServer : QSqlDriver = ... # 0x1
QuerySize : QSqlDriver = ... # 0x1
SelectStatement : QSqlDriver = ... # 0x1
SelfSource : QSqlDriver = ... # 0x1
TableName : QSqlDriver = ... # 0x1
BLOB : QSqlDriver = ... # 0x2
MySqlServer : QSqlDriver = ... # 0x2
OtherSource : QSqlDriver = ... # 0x2
UpdateStatement : QSqlDriver = ... # 0x2
InsertStatement : QSqlDriver = ... # 0x3
PostgreSQL : QSqlDriver = ... # 0x3
Unicode : QSqlDriver = ... # 0x3
DeleteStatement : QSqlDriver = ... # 0x4
Oracle : QSqlDriver = ... # 0x4
PreparedQueries : QSqlDriver = ... # 0x4
NamedPlaceholders : QSqlDriver = ... # 0x5
Sybase : QSqlDriver = ... # 0x5
PositionalPlaceholders : QSqlDriver = ... # 0x6
SQLite : QSqlDriver = ... # 0x6
Interbase : QSqlDriver = ... # 0x7
LastInsertId : QSqlDriver = ... # 0x7
BatchOperations : QSqlDriver = ... # 0x8
DB2 : QSqlDriver = ... # 0x8
SimpleLocking : QSqlDriver = ... # 0x9
LowPrecisionNumbers : QSqlDriver = ... # 0xa
EventNotifications : QSqlDriver = ... # 0xb
FinishQuery : QSqlDriver = ... # 0xc
MultipleResultSets : QSqlDriver = ... # 0xd
CancelQuery : QSqlDriver = ... # 0xe
class DbmsType(object):
UnknownDbms : QSqlDriver.DbmsType = ... # 0x0
MSSqlServer : QSqlDriver.DbmsType = ... # 0x1
MySqlServer : QSqlDriver.DbmsType = ... # 0x2
PostgreSQL : QSqlDriver.DbmsType = ... # 0x3
Oracle : QSqlDriver.DbmsType = ... # 0x4
Sybase : QSqlDriver.DbmsType = ... # 0x5
SQLite : QSqlDriver.DbmsType = ... # 0x6
Interbase : QSqlDriver.DbmsType = ... # 0x7
DB2 : QSqlDriver.DbmsType = ... # 0x8
class DriverFeature(object):
Transactions : QSqlDriver.DriverFeature = ... # 0x0
QuerySize : QSqlDriver.DriverFeature = ... # 0x1
BLOB : QSqlDriver.DriverFeature = ... # 0x2
Unicode : QSqlDriver.DriverFeature = ... # 0x3
PreparedQueries : QSqlDriver.DriverFeature = ... # 0x4
NamedPlaceholders : QSqlDriver.DriverFeature = ... # 0x5
PositionalPlaceholders : QSqlDriver.DriverFeature = ... # 0x6
LastInsertId : QSqlDriver.DriverFeature = ... # 0x7
BatchOperations : QSqlDriver.DriverFeature = ... # 0x8
SimpleLocking : QSqlDriver.DriverFeature = ... # 0x9
LowPrecisionNumbers : QSqlDriver.DriverFeature = ... # 0xa
EventNotifications : QSqlDriver.DriverFeature = ... # 0xb
FinishQuery : QSqlDriver.DriverFeature = ... # 0xc
MultipleResultSets : QSqlDriver.DriverFeature = ... # 0xd
CancelQuery : QSqlDriver.DriverFeature = ... # 0xe
class IdentifierType(object):
FieldName : QSqlDriver.IdentifierType = ... # 0x0
TableName : QSqlDriver.IdentifierType = ... # 0x1
class NotificationSource(object):
UnknownSource : QSqlDriver.NotificationSource = ... # 0x0
SelfSource : QSqlDriver.NotificationSource = ... # 0x1
OtherSource : QSqlDriver.NotificationSource = ... # 0x2
class StatementType(object):
WhereStatement : QSqlDriver.StatementType = ... # 0x0
SelectStatement : QSqlDriver.StatementType = ... # 0x1
UpdateStatement : QSqlDriver.StatementType = ... # 0x2
InsertStatement : QSqlDriver.StatementType = ... # 0x3
DeleteStatement : QSqlDriver.StatementType = ... # 0x4
def __init__(self, parent:typing.Optional[PySide2.QtCore.QObject]=...) -> None: ...
def beginTransaction(self) -> bool: ...
def cancelQuery(self) -> bool: ...
def close(self) -> None: ...
def commitTransaction(self) -> bool: ...
def createResult(self) -> PySide2.QtSql.QSqlResult: ...
def dbmsType(self) -> PySide2.QtSql.QSqlDriver.DbmsType: ...
def escapeIdentifier(self, identifier:str, type:PySide2.QtSql.QSqlDriver.IdentifierType) -> str: ...
def formatValue(self, field:PySide2.QtSql.QSqlField, trimStrings:bool=...) -> str: ...
def hasFeature(self, f:PySide2.QtSql.QSqlDriver.DriverFeature) -> bool: ...
def isIdentifierEscaped(self, identifier:str, type:PySide2.QtSql.QSqlDriver.IdentifierType) -> bool: ...
def isOpen(self) -> bool: ...
def isOpenError(self) -> bool: ...
def lastError(self) -> PySide2.QtSql.QSqlError: ...
def numericalPrecisionPolicy(self) -> PySide2.QtSql.QSql.NumericalPrecisionPolicy: ...
def open(self, db:str, user:str=..., password:str=..., host:str=..., port:int=..., connOpts:str=...) -> bool: ...
def primaryIndex(self, tableName:str) -> PySide2.QtSql.QSqlIndex: ...
def record(self, tableName:str) -> PySide2.QtSql.QSqlRecord: ...
def rollbackTransaction(self) -> bool: ...
def setLastError(self, e:PySide2.QtSql.QSqlError) -> None: ...
def setNumericalPrecisionPolicy(self, precisionPolicy:PySide2.QtSql.QSql.NumericalPrecisionPolicy) -> None: ...
def setOpen(self, o:bool) -> None: ...
def setOpenError(self, e:bool) -> None: ...
def sqlStatement(self, type:PySide2.QtSql.QSqlDriver.StatementType, tableName:str, rec:PySide2.QtSql.QSqlRecord, preparedStatement:bool) -> str: ...
def stripDelimiters(self, identifier:str, type:PySide2.QtSql.QSqlDriver.IdentifierType) -> str: ...
def subscribeToNotification(self, name:str) -> bool: ...
def subscribedToNotifications(self) -> typing.List: ...
def tables(self, tableType:PySide2.QtSql.QSql.TableType) -> typing.List: ...
def unsubscribeFromNotification(self, name:str) -> bool: ...
class QSqlDriverCreatorBase(Shiboken.Object):
def __init__(self) -> None: ...
def createObject(self) -> PySide2.QtSql.QSqlDriver: ...
class QSqlError(Shiboken.Object):
NoError : QSqlError = ... # 0x0
ConnectionError : QSqlError = ... # 0x1
StatementError : QSqlError = ... # 0x2
TransactionError : QSqlError = ... # 0x3
UnknownError : QSqlError = ... # 0x4
class ErrorType(object):
NoError : QSqlError.ErrorType = ... # 0x0
ConnectionError : QSqlError.ErrorType = ... # 0x1
StatementError : QSqlError.ErrorType = ... # 0x2
TransactionError : QSqlError.ErrorType = ... # 0x3
UnknownError : QSqlError.ErrorType = ... # 0x4
@typing.overload
def __init__(self, driverText:str, databaseText:str, type:PySide2.QtSql.QSqlError.ErrorType, number:int) -> None: ...
@typing.overload
def __init__(self, driverText:str=..., databaseText:str=..., type:PySide2.QtSql.QSqlError.ErrorType=..., errorCode:str=...) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlError) -> None: ...
@staticmethod
def __copy__() -> None: ...
def databaseText(self) -> str: ...
def driverText(self) -> str: ...
def isValid(self) -> bool: ...
def nativeErrorCode(self) -> str: ...
def number(self) -> int: ...
def setDatabaseText(self, databaseText:str) -> None: ...
def setDriverText(self, driverText:str) -> None: ...
def setNumber(self, number:int) -> None: ...
def setType(self, type:PySide2.QtSql.QSqlError.ErrorType) -> None: ...
def swap(self, other:PySide2.QtSql.QSqlError) -> None: ...
def text(self) -> str: ...
def type(self) -> PySide2.QtSql.QSqlError.ErrorType: ...
class QSqlField(Shiboken.Object):
Unknown : QSqlField = ... # -0x1
Optional : QSqlField = ... # 0x0
Required : QSqlField = ... # 0x1
class RequiredStatus(object):
Unknown : QSqlField.RequiredStatus = ... # -0x1
Optional : QSqlField.RequiredStatus = ... # 0x0
Required : QSqlField.RequiredStatus = ... # 0x1
@typing.overload
def __init__(self, fieldName:str, type:type, tableName:str) -> None: ...
@typing.overload
def __init__(self, fieldName:str=..., type:type=...) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlField) -> None: ...
@staticmethod
def __copy__() -> None: ...
def clear(self) -> None: ...
def defaultValue(self) -> typing.Any: ...
def isAutoValue(self) -> bool: ...
def isGenerated(self) -> bool: ...
def isNull(self) -> bool: ...
def isReadOnly(self) -> bool: ...
def isValid(self) -> bool: ...
def length(self) -> int: ...
def name(self) -> str: ...
def precision(self) -> int: ...
def requiredStatus(self) -> PySide2.QtSql.QSqlField.RequiredStatus: ...
def setAutoValue(self, autoVal:bool) -> None: ...
def setDefaultValue(self, value:typing.Any) -> None: ...
def setGenerated(self, gen:bool) -> None: ...
def setLength(self, fieldLength:int) -> None: ...
def setName(self, name:str) -> None: ...
def setPrecision(self, precision:int) -> None: ...
def setReadOnly(self, readOnly:bool) -> None: ...
def setRequired(self, required:bool) -> None: ...
def setRequiredStatus(self, status:PySide2.QtSql.QSqlField.RequiredStatus) -> None: ...
def setSqlType(self, type:int) -> None: ...
def setTableName(self, tableName:str) -> None: ...
def setType(self, type:type) -> None: ...
def setValue(self, value:typing.Any) -> None: ...
def tableName(self) -> str: ...
def type(self) -> type: ...
def typeID(self) -> int: ...
def value(self) -> typing.Any: ...
class QSqlIndex(PySide2.QtSql.QSqlRecord):
@typing.overload
def __init__(self, cursorName:str=..., name:str=...) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlIndex) -> None: ...
@staticmethod
def __copy__() -> None: ...
@typing.overload
def append(self, field:PySide2.QtSql.QSqlField) -> None: ...
@typing.overload
def append(self, field:PySide2.QtSql.QSqlField, desc:bool) -> None: ...
def cursorName(self) -> str: ...
def isDescending(self, i:int) -> bool: ...
def name(self) -> str: ...
def setCursorName(self, cursorName:str) -> None: ...
def setDescending(self, i:int, desc:bool) -> None: ...
def setName(self, name:str) -> None: ...
class QSqlQuery(Shiboken.Object):
ValuesAsRows : QSqlQuery = ... # 0x0
ValuesAsColumns : QSqlQuery = ... # 0x1
class BatchExecutionMode(object):
ValuesAsRows : QSqlQuery.BatchExecutionMode = ... # 0x0
ValuesAsColumns : QSqlQuery.BatchExecutionMode = ... # 0x1
@typing.overload
def __init__(self, db:PySide2.QtSql.QSqlDatabase) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlQuery) -> None: ...
@typing.overload
def __init__(self, query:str=..., db:PySide2.QtSql.QSqlDatabase=...) -> None: ...
@typing.overload
def __init__(self, r:PySide2.QtSql.QSqlResult) -> None: ...
@staticmethod
def __copy__() -> None: ...
def addBindValue(self, val:typing.Any, type:PySide2.QtSql.QSql.ParamType=...) -> None: ...
def at(self) -> int: ...
@typing.overload
def bindValue(self, placeholder:str, val:typing.Any, type:PySide2.QtSql.QSql.ParamType=...) -> None: ...
@typing.overload
def bindValue(self, pos:int, val:typing.Any, type:PySide2.QtSql.QSql.ParamType=...) -> None: ...
@typing.overload
def boundValue(self, placeholder:str) -> typing.Any: ...
@typing.overload
def boundValue(self, pos:int) -> typing.Any: ...
def boundValues(self) -> typing.Dict: ...
def clear(self) -> None: ...
def driver(self) -> PySide2.QtSql.QSqlDriver: ...
def execBatch(self, mode:PySide2.QtSql.QSqlQuery.BatchExecutionMode=...) -> bool: ...
@typing.overload
def exec_(self) -> bool: ...
@typing.overload
def exec_(self, query:str) -> bool: ...
def executedQuery(self) -> str: ...
def finish(self) -> None: ...
def first(self) -> bool: ...
def isActive(self) -> bool: ...
def isForwardOnly(self) -> bool: ...
@typing.overload
def isNull(self, field:int) -> bool: ...
@typing.overload
def isNull(self, name:str) -> bool: ...
def isSelect(self) -> bool: ...
def isValid(self) -> bool: ...
def last(self) -> bool: ...
def lastError(self) -> PySide2.QtSql.QSqlError: ...
def lastInsertId(self) -> typing.Any: ...
def lastQuery(self) -> str: ...
def next(self) -> bool: ...
def nextResult(self) -> bool: ...
def numRowsAffected(self) -> int: ...
def numericalPrecisionPolicy(self) -> PySide2.QtSql.QSql.NumericalPrecisionPolicy: ...
def prepare(self, query:str) -> bool: ...
def previous(self) -> bool: ...
def record(self) -> PySide2.QtSql.QSqlRecord: ...
def result(self) -> PySide2.QtSql.QSqlResult: ...
def seek(self, i:int, relative:bool=...) -> bool: ...
def setForwardOnly(self, forward:bool) -> None: ...
def setNumericalPrecisionPolicy(self, precisionPolicy:PySide2.QtSql.QSql.NumericalPrecisionPolicy) -> None: ...
def size(self) -> int: ...
@typing.overload
def value(self, i:int) -> typing.Any: ...
@typing.overload
def value(self, name:str) -> typing.Any: ...
class QSqlQueryModel(PySide2.QtCore.QAbstractTableModel):
def __init__(self, parent:typing.Optional[PySide2.QtCore.QObject]=...) -> None: ...
def beginInsertColumns(self, parent:PySide2.QtCore.QModelIndex, first:int, last:int) -> None: ...
def beginInsertRows(self, parent:PySide2.QtCore.QModelIndex, first:int, last:int) -> None: ...
def beginRemoveColumns(self, parent:PySide2.QtCore.QModelIndex, first:int, last:int) -> None: ...
def beginRemoveRows(self, parent:PySide2.QtCore.QModelIndex, first:int, last:int) -> None: ...
def beginResetModel(self) -> None: ...
def canFetchMore(self, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def clear(self) -> None: ...
def columnCount(self, parent:PySide2.QtCore.QModelIndex=...) -> int: ...
def data(self, item:PySide2.QtCore.QModelIndex, role:int=...) -> typing.Any: ...
def endInsertColumns(self) -> None: ...
def endInsertRows(self) -> None: ...
def endRemoveColumns(self) -> None: ...
def endRemoveRows(self) -> None: ...
def endResetModel(self) -> None: ...
def fetchMore(self, parent:PySide2.QtCore.QModelIndex=...) -> None: ...
def headerData(self, section:int, orientation:PySide2.QtCore.Qt.Orientation, role:int=...) -> typing.Any: ...
def indexInQuery(self, item:PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex: ...
def insertColumns(self, column:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def lastError(self) -> PySide2.QtSql.QSqlError: ...
def query(self) -> PySide2.QtSql.QSqlQuery: ...
def queryChange(self) -> None: ...
@typing.overload
def record(self) -> PySide2.QtSql.QSqlRecord: ...
@typing.overload
def record(self, row:int) -> PySide2.QtSql.QSqlRecord: ...
def removeColumns(self, column:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def roleNames(self) -> typing.Dict: ...
def rowCount(self, parent:PySide2.QtCore.QModelIndex=...) -> int: ...
def setHeaderData(self, section:int, orientation:PySide2.QtCore.Qt.Orientation, value:typing.Any, role:int=...) -> bool: ...
def setLastError(self, error:PySide2.QtSql.QSqlError) -> None: ...
@typing.overload
def setQuery(self, query:PySide2.QtSql.QSqlQuery) -> None: ...
@typing.overload
def setQuery(self, query:str, db:PySide2.QtSql.QSqlDatabase=...) -> None: ...
class QSqlRecord(Shiboken.Object):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other:PySide2.QtSql.QSqlRecord) -> None: ...
@staticmethod
def __copy__() -> None: ...
def append(self, field:PySide2.QtSql.QSqlField) -> None: ...
def clear(self) -> None: ...
def clearValues(self) -> None: ...
def contains(self, name:str) -> bool: ...
def count(self) -> int: ...
@typing.overload
def field(self, i:int) -> PySide2.QtSql.QSqlField: ...
@typing.overload
def field(self, name:str) -> PySide2.QtSql.QSqlField: ...
def fieldName(self, i:int) -> str: ...
def indexOf(self, name:str) -> int: ...
def insert(self, pos:int, field:PySide2.QtSql.QSqlField) -> None: ...
def isEmpty(self) -> bool: ...
@typing.overload
def isGenerated(self, i:int) -> bool: ...
@typing.overload
def isGenerated(self, name:str) -> bool: ...
@typing.overload
def isNull(self, i:int) -> bool: ...
@typing.overload
def isNull(self, name:str) -> bool: ...
def keyValues(self, keyFields:PySide2.QtSql.QSqlRecord) -> PySide2.QtSql.QSqlRecord: ...
def remove(self, pos:int) -> None: ...
def replace(self, pos:int, field:PySide2.QtSql.QSqlField) -> None: ...
@typing.overload
def setGenerated(self, i:int, generated:bool) -> None: ...
@typing.overload
def setGenerated(self, name:str, generated:bool) -> None: ...
@typing.overload
def setNull(self, i:int) -> None: ...
@typing.overload
def setNull(self, name:str) -> None: ...
@typing.overload
def setValue(self, i:int, val:typing.Any) -> None: ...
@typing.overload
def setValue(self, name:str, val:typing.Any) -> None: ...
@typing.overload
def value(self, i:int) -> typing.Any: ...
@typing.overload
def value(self, name:str) -> typing.Any: ...
class QSqlRelation(Shiboken.Object):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, QSqlRelation:PySide2.QtSql.QSqlRelation) -> None: ...
@typing.overload
def __init__(self, aTableName:str, indexCol:str, displayCol:str) -> None: ...
@staticmethod
def __copy__() -> None: ...
def displayColumn(self) -> str: ...
def indexColumn(self) -> str: ...
def isValid(self) -> bool: ...
def swap(self, other:PySide2.QtSql.QSqlRelation) -> None: ...
def tableName(self) -> str: ...
class QSqlRelationalDelegate(PySide2.QtWidgets.QItemDelegate):
def __init__(self, aParent:typing.Optional[PySide2.QtCore.QObject]=...) -> None: ...
def createEditor(self, aParent:PySide2.QtWidgets.QWidget, option:PySide2.QtWidgets.QStyleOptionViewItem, index:PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QWidget: ...
def setEditorData(self, editor:PySide2.QtWidgets.QWidget, index:PySide2.QtCore.QModelIndex) -> None: ...
def setModelData(self, editor:PySide2.QtWidgets.QWidget, model:PySide2.QtCore.QAbstractItemModel, index:PySide2.QtCore.QModelIndex) -> None: ...
class QSqlRelationalTableModel(PySide2.QtSql.QSqlTableModel):
InnerJoin : QSqlRelationalTableModel = ... # 0x0
LeftJoin : QSqlRelationalTableModel = ... # 0x1
class JoinMode(object):
InnerJoin : QSqlRelationalTableModel.JoinMode = ... # 0x0
LeftJoin : QSqlRelationalTableModel.JoinMode = ... # 0x1
def __init__(self, parent:typing.Optional[PySide2.QtCore.QObject]=..., db:PySide2.QtSql.QSqlDatabase=...) -> None: ...
def clear(self) -> None: ...
def data(self, item:PySide2.QtCore.QModelIndex, role:int=...) -> typing.Any: ...
def insertRowIntoTable(self, values:PySide2.QtSql.QSqlRecord) -> bool: ...
def orderByClause(self) -> str: ...
def relation(self, column:int) -> PySide2.QtSql.QSqlRelation: ...
def relationModel(self, column:int) -> PySide2.QtSql.QSqlTableModel: ...
def removeColumns(self, column:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def revertRow(self, row:int) -> None: ...
def select(self) -> bool: ...
def selectStatement(self) -> str: ...
def setData(self, item:PySide2.QtCore.QModelIndex, value:typing.Any, role:int=...) -> bool: ...
def setJoinMode(self, joinMode:PySide2.QtSql.QSqlRelationalTableModel.JoinMode) -> None: ...
def setRelation(self, column:int, relation:PySide2.QtSql.QSqlRelation) -> None: ...
def setTable(self, tableName:str) -> None: ...
def updateRowInTable(self, row:int, values:PySide2.QtSql.QSqlRecord) -> bool: ...
class QSqlResult(Shiboken.Object):
PositionalBinding : QSqlResult = ... # 0x0
NamedBinding : QSqlResult = ... # 0x1
class BindingSyntax(object):
PositionalBinding : QSqlResult.BindingSyntax = ... # 0x0
NamedBinding : QSqlResult.BindingSyntax = ... # 0x1
def __init__(self, db:PySide2.QtSql.QSqlDriver) -> None: ...
def addBindValue(self, val:typing.Any, type:PySide2.QtSql.QSql.ParamType) -> None: ...
def at(self) -> int: ...
@typing.overload
def bindValue(self, placeholder:str, val:typing.Any, type:PySide2.QtSql.QSql.ParamType) -> None: ...
@typing.overload
def bindValue(self, pos:int, val:typing.Any, type:PySide2.QtSql.QSql.ParamType) -> None: ...
@typing.overload
def bindValueType(self, placeholder:str) -> PySide2.QtSql.QSql.ParamType: ...
@typing.overload
def bindValueType(self, pos:int) -> PySide2.QtSql.QSql.ParamType: ...
def bindingSyntax(self) -> PySide2.QtSql.QSqlResult.BindingSyntax: ...
@typing.overload
def boundValue(self, placeholder:str) -> typing.Any: ...
@typing.overload
def boundValue(self, pos:int) -> typing.Any: ...
def boundValueCount(self) -> int: ...
def boundValueName(self, pos:int) -> str: ...
def boundValues(self) -> typing.List: ...
def clear(self) -> None: ...
def data(self, i:int) -> typing.Any: ...
def detachFromResultSet(self) -> None: ...
def driver(self) -> PySide2.QtSql.QSqlDriver: ...
def execBatch(self, arrayBind:bool=...) -> bool: ...
def exec_(self) -> bool: ...
def executedQuery(self) -> str: ...
def fetch(self, i:int) -> bool: ...
def fetchFirst(self) -> bool: ...
def fetchLast(self) -> bool: ...
def fetchNext(self) -> bool: ...
def fetchPrevious(self) -> bool: ...
def handle(self) -> typing.Any: ...
def hasOutValues(self) -> bool: ...
def isActive(self) -> bool: ...
def isForwardOnly(self) -> bool: ...
def isNull(self, i:int) -> bool: ...
def isSelect(self) -> bool: ...
def isValid(self) -> bool: ...
def lastError(self) -> PySide2.QtSql.QSqlError: ...
def lastInsertId(self) -> typing.Any: ...
def lastQuery(self) -> str: ...
def nextResult(self) -> bool: ...
def numRowsAffected(self) -> int: ...
def numericalPrecisionPolicy(self) -> PySide2.QtSql.QSql.NumericalPrecisionPolicy: ...
def prepare(self, query:str) -> bool: ...
def record(self) -> PySide2.QtSql.QSqlRecord: ...
def reset(self, sqlquery:str) -> bool: ...
def resetBindCount(self) -> None: ...
def savePrepare(self, sqlquery:str) -> bool: ...
def setActive(self, a:bool) -> None: ...
def setAt(self, at:int) -> None: ...
def setForwardOnly(self, forward:bool) -> None: ...
def setLastError(self, e:PySide2.QtSql.QSqlError) -> None: ...
def setNumericalPrecisionPolicy(self, policy:PySide2.QtSql.QSql.NumericalPrecisionPolicy) -> None: ...
def setQuery(self, query:str) -> None: ...
def setSelect(self, s:bool) -> None: ...
def size(self) -> int: ...
class QSqlTableModel(PySide2.QtSql.QSqlQueryModel):
OnFieldChange : QSqlTableModel = ... # 0x0
OnRowChange : QSqlTableModel = ... # 0x1
OnManualSubmit : QSqlTableModel = ... # 0x2
class EditStrategy(object):
OnFieldChange : QSqlTableModel.EditStrategy = ... # 0x0
OnRowChange : QSqlTableModel.EditStrategy = ... # 0x1
OnManualSubmit : QSqlTableModel.EditStrategy = ... # 0x2
def __init__(self, parent:typing.Optional[PySide2.QtCore.QObject]=..., db:PySide2.QtSql.QSqlDatabase=...) -> None: ...
def clear(self) -> None: ...
def data(self, idx:PySide2.QtCore.QModelIndex, role:int=...) -> typing.Any: ...
def database(self) -> PySide2.QtSql.QSqlDatabase: ...
def deleteRowFromTable(self, row:int) -> bool: ...
def editStrategy(self) -> PySide2.QtSql.QSqlTableModel.EditStrategy: ...
def fieldIndex(self, fieldName:str) -> int: ...
def filter(self) -> str: ...
def flags(self, index:PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags: ...
def headerData(self, section:int, orientation:PySide2.QtCore.Qt.Orientation, role:int=...) -> typing.Any: ...
def indexInQuery(self, item:PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex: ...
def insertRecord(self, row:int, record:PySide2.QtSql.QSqlRecord) -> bool: ...
def insertRowIntoTable(self, values:PySide2.QtSql.QSqlRecord) -> bool: ...
def insertRows(self, row:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
@typing.overload
def isDirty(self) -> bool: ...
@typing.overload
def isDirty(self, index:PySide2.QtCore.QModelIndex) -> bool: ...
def orderByClause(self) -> str: ...
def primaryKey(self) -> PySide2.QtSql.QSqlIndex: ...
def primaryValues(self, row:int) -> PySide2.QtSql.QSqlRecord: ...
@typing.overload
def record(self) -> PySide2.QtSql.QSqlRecord: ...
@typing.overload
def record(self, row:int) -> PySide2.QtSql.QSqlRecord: ...
def removeColumns(self, column:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def removeRows(self, row:int, count:int, parent:PySide2.QtCore.QModelIndex=...) -> bool: ...
def revert(self) -> None: ...
def revertAll(self) -> None: ...
def revertRow(self, row:int) -> None: ...
def rowCount(self, parent:PySide2.QtCore.QModelIndex=...) -> int: ...
def select(self) -> bool: ...
def selectRow(self, row:int) -> bool: ...
def selectStatement(self) -> str: ...
def setData(self, index:PySide2.QtCore.QModelIndex, value:typing.Any, role:int=...) -> bool: ...
def setEditStrategy(self, strategy:PySide2.QtSql.QSqlTableModel.EditStrategy) -> None: ...
def setFilter(self, filter:str) -> None: ...
def setPrimaryKey(self, key:PySide2.QtSql.QSqlIndex) -> None: ...
def setQuery(self, query:PySide2.QtSql.QSqlQuery) -> None: ...
def setRecord(self, row:int, record:PySide2.QtSql.QSqlRecord) -> bool: ...
def setSort(self, column:int, order:PySide2.QtCore.Qt.SortOrder) -> None: ...
def setTable(self, tableName:str) -> None: ...
def sort(self, column:int, order:PySide2.QtCore.Qt.SortOrder) -> None: ...
def submit(self) -> bool: ...
def submitAll(self) -> bool: ...
def tableName(self) -> str: ...
def updateRowInTable(self, row:int, values:PySide2.QtSql.QSqlRecord) -> bool: ...
# eof