1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtSql classes and functions."""
10 from . import PYQT5
, PYQT6
, PYSIDE2
, PYSIDE6
13 from PyQt5
.QtSql
import *
15 from PyQt6
.QtSql
import *
17 QSqlDatabase
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(
21 QSqlQuery
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(*args
, **kwargs
)
22 QSqlResult
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(*args
, **kwargs
)
24 from PySide6
.QtSql
import *
26 # Map DeprecationWarning methods
27 QSqlDatabase
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(
31 QSqlQuery
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(*args
, **kwargs
)
32 QSqlResult
.exec_
= lambda self
, *args
, **kwargs
: self
.exec(*args
, **kwargs
)
34 from PySide2
.QtSql
import *