Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/q/SQLAntaresia-0.4.2/sqlantaresia/QueryTab.py   SQLAntaresia(Download)
# -*- coding: utf-8 -*-
from PyQt4.QtGui import QTabWidget, QColor, QFont
from PyQt4.QtCore import pyqtSignature
from PyQt4.Qsci import QsciScintilla, QsciLexerSQL
from QPySqlModels import QPySelectModel
    def on_btnExecuteQuery_clicked(self):
        self.db.setDatabase(self.dbName)
        queryModel = QPySelectModel(self, self.db)
        queryModel.setSelect( self.txtQuery.text() )
        try:

src/s/q/SQLAntaresia-0.4.2/sqlantaresia/ProcessListTab.py   SQLAntaresia(Download)
# -*- coding: utf-8 -*-
from PyQt4.QtGui import QTabWidget
from PyQt4.QtCore import pyqtSignature, QTimer
from QPySqlModels import QPySelectModel
 
    def refresh(self):
        queryModel = QPySelectModel(self, self.connection)
        if self.processListInInfoSchema:
            where = "" if self.chkShowIdle.isChecked() else "WHERE STATE != ''"
            queryModel.setSelect( "SELECT %s FROM information_schema.PROCESSLIST %s ORDER BY TIME DESC" % (",".join(self.processListColumns), where) )