info_model.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. """
  2. /***************************************************************************
  3. Name : DB Manager
  4. Description : Database manager plugin for QGIS
  5. Date : May 23, 2011
  6. copyright : (C) 2011 by Giuseppe Sucameli
  7. email : brush.tyler@gmail.com
  8. ***************************************************************************/
  9. /***************************************************************************
  10. * *
  11. * This program is free software; you can redistribute it and/or modify *
  12. * it under the terms of the GNU General Public License as published by *
  13. * the Free Software Foundation; either version 2 of the License, or *
  14. * (at your option) any later version. *
  15. * *
  16. ***************************************************************************/
  17. """
  18. from qgis.PyQt.QtWidgets import QApplication
  19. from ..info_model import DatabaseInfo
  20. from ..html_elems import HtmlTable
  21. class GPKGDatabaseInfo(DatabaseInfo):
  22. def __init__(self, db):
  23. self.db = db
  24. def connectionDetails(self):
  25. tbl = [
  26. (QApplication.translate("DBManagerPlugin", "Filename:"), self.db.connector.dbname)
  27. ]
  28. return HtmlTable(tbl)
  29. def generalInfo(self):
  30. return None
  31. def spatialInfo(self):
  32. return None
  33. def privilegesDetails(self):
  34. return None