Commits

Owen Nelson  committed 1cb4492

adding a stubbed custom driver

  • Participants
  • Parent commits 41efbe3

Comments (0)

Files changed (2)

File cloudstudio/__init__.py

Empty file added.

File cloudstudio/driver.py

+from PySide import QtSql
+
+
+class CloudSqlDriver(QtSql.QSqlDriver):
+    pass
+
+
+class CloudSqlDriverCreatorBase(QtSql.QSqlDriverCreatorBase):
+
+    def createObject(self):
+        return CloudSqlDriver()
+
+_driver = CloudSqlDriverCreatorBase()
+QtSql.QSqlDatabase.registerSqlDriver("CLOUDSQL", _driver)
+db = QtSql.QSqlDatabase.addDatabase("CLOUDSQL")