# `TaurusDbBaseModel`

digraph inheritanced5abc16799 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "QAbstractItemModel" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractItemModel(parent: QObject|None = None)"]; "QObject" -> "QAbstractItemModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject|None = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusBaseModel" [URL="taurus.qt.qtcore.model-TaurusBaseModel.html#taurus.qt.qtcore.model.TaurusBaseModel",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The base class for all Taurus Qt models."]; "QAbstractItemModel" -> "TaurusBaseModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Logger" -> "TaurusBaseModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusDbBaseModel" [URL="#taurus.qt.qtcore.model.TaurusDbBaseModel",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The base class for all Taurus database Qt models."]; "TaurusBaseModel" -> "TaurusDbBaseModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class TaurusDbBaseModel(parent=None, data=None)

  The base class for all Taurus database Qt models. By default, this model represents a plain device perspective of the underlying database.

  Import from `taurus.qt.qtcore.model` as:

      from taurus.qt.qtcore.model import TaurusDbBaseModel

  ColumnNames = ('Device', 'Alias', 'Server', 'Class', 'Alive', 'Host')
  ColumnRoles = ((3, 3), 4, 8, 2, 11, 12)
  columnIcon(column)
  columnSize(column)
  columnToolTip(column)
  createNewRootItem()
  mimeData(self, indexes: Iterable[QModelIndex]) → QMimeData | None
  mimeTypes(self) → list[str]
  pyData(index, role)
  refresh(refresh_source=False)
  roleIcon(taurus_role)
  roleSize(taurus_role)
  roleToolTip(taurus_role)
  setupModelData(data)