fastiot.db.time_scale_helper_fn module¶
- fastiot.db.time_scale_helper_fn.get_timescaledb_client_from_env()[source]¶
For connecting TimeScaleDB, the environment variables can be set, if you want to use your own settings instead of default:
FASTIOT_TIME_SCALE_DB_HOST
,FASTIOT_TIME_SCALE_DB_PORT
,FASTIOT_TIME_SCALE_DB_USER
,FASTIOT_TIME_SCALE_DB_PASSWORD
,FASTIOT_TIME_SCALE_DB_DATABASE
>>> time_scale_db_client = get_timescaledb_client_from_env()