spine_io.io_api
¶
Contains a class template for a data source connector used in import ui.
author: |
|
---|---|
date: | 1.6.2019 |
Module Contents¶
-
class
spine_io.io_api.
SourceConnection
[source]¶ Template class to read data from another QThread
-
connect_to_source
(self, source)[source]¶ Connects to source, ex: connecting to a database where source is a connection string.
Parameters: {} -- object with information on source to be connected to, ex (source) – filepath string for a csv connection
-
get_tables
(self)[source]¶ Method that should return a list of table names, list(str)
Raises: NotImplementedError
– [description]
-
get_data_iterator
(self, table, options, max_rows=-1)[source]¶ Function that should return a data iterator, data header and number of columns.
-