Datasource¶
In Sympathy for Data, the action of pointing out where data is located and actual importation of data are separated into two different categories of nodes. The internal data type Datasource is used to carry the information about the location of the data to the importation nodes.
There exist two nodes for establishing paths to locations with data, either you are interested in a single source of data, Datasource, or several sources, Datasources. The single source can either be a data file or a location in a data base. While for multiple sources only several data files are handled.
-
class
node_file_datasource.
FileDatasource
[source]¶ Create Datasource with path to a data source.
Ref. nodes: Outputs: - port1 : datasource
Datasource with path to file
Configuration: - Filename
A filename including path if needed
- SQLAlchemy engine URL
SQLAlchemy engine URL for connecting to the database
- Database connection method
Select which Database connection method that you want to use.
- Database driver
Database driver to use.
- Server name
A valid name to a database server.
- Database name
The name of the database.
- User
A valid database user.
- Password
A valid password for the selected user.
- Connection string
A connection string that will override other settings.
- Datasource type
Type of datasource.