AnnZhimol
49e327005e
+ch_experiment_data in click_house +experiment_data and experiment_parameters in postgresql +experiment_data has foreign_key from experiment_parameters +new connections +realize routes for ch_experiment_data +new alg csv_to_db +new methods in repos +update dockerfile +update readme "how to init db"
8 lines
298 B
Python
8 lines
298 B
Python
from clickhouse_sqlalchemy import make_session, get_declarative_base, engines
|
|
from sqlalchemy import create_engine
|
|
from settings import settings
|
|
|
|
engine_clickhouse = create_engine(settings.clickhouse_url)
|
|
BaseClickhouse = get_declarative_base()
|
|
session_clickhouse = make_session(engine_clickhouse)
|