info_model.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. """
  2. /***************************************************************************
  3. Name : Virtual layers plugin for DB Manager
  4. Date : December 2015
  5. copyright : (C) 2015 by Hugo Mercier
  6. email : hugo dot mercier at oslandia dot com
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. """
  17. from qgis.PyQt.QtWidgets import QApplication
  18. from ..info_model import DatabaseInfo
  19. from ..html_elems import HtmlTable
  20. class LDatabaseInfo(DatabaseInfo):
  21. def __init__(self, db):
  22. self.db = db
  23. def connectionDetails(self):
  24. tbl = [
  25. ]
  26. return HtmlTable(tbl)
  27. def generalInfo(self):
  28. self.db.connector.getInfo()
  29. tbl = [
  30. (QApplication.translate("DBManagerPlugin", "SQLite version:"), "3")
  31. ]
  32. return HtmlTable(tbl)
  33. def privilegesDetails(self):
  34. return None