spinetoolbox.spine_db_fetcher

SpineDBFetcher class.

authors
  1. Marin (KTH)

date

13.3.2020

Module Contents

Classes

SpineDBFetcher

Fetches content from a Spine database.

class spinetoolbox.spine_db_fetcher.SpineDBFetcher(db_mngr, mini)[source]

Bases: PySide2.QtCore.QObject

Fetches content from a Spine database.

Initializes the fetcher object.

Parameters
  • db_mngr (SpineDBManager) – used for fetching.

  • mini (MiniSpineDBManager) – used for signalling about the fetching. It has the same cache and icon_mngr as db_mngr but not the same signaller. This means we can signal only to a specific listener.

finished[source]
_started[source]
clean_up(self)[source]
fetch(self, listener, db_maps, tablenames=None)[source]

Fetches items from the database and emit added signals.

Parameters
  • db_maps (Iterable of DatabaseMappingBase) – database maps to fetch

  • tablenames (list, optional) – If given, only fetches tables in this list, otherwise fetches them all

start(self)[source]
stop(self)[source]
_do_work(self)[source]