Abstraction layer for data sources (CSV files or MySQL database).
This module provides a unified interface for reading data from either CSV files in the scripts/csv_data directory or directly from a MySQL SLiMS database.
Summary
Functions
Close data source connection.
Fetch data of specified type from the configured source. Returns a stream of data rows.
Get data count for specified type.
Initialize data source connection. For CSV: validates directory structure For MySQL: establishes database connection
Types
Functions
Close data source connection.
Fetch data of specified type from the configured source. Returns a stream of data rows.
Get data count for specified type.
Initialize data source connection. For CSV: validates directory structure For MySQL: establishes database connection