File tree 3 files changed +404
-2
lines changed 3 files changed +404
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Ignore local configuration for superset
2
2
dev_config.py
3
+ env.sh
3
4
4
5
# Ignore recommended symlink
5
6
clickhouse_connect
Original file line number Diff line number Diff line change 1
- from llama_index . readers . database import DatabaseReader
1
+ import os
2
2
import timeplus_connect
3
3
4
+ from llama_index .readers .database import DatabaseReader
5
+
6
+
7
+ timeplus_host = os .getenv ("TIMEPLUS_HOST" ) or "localhost"
8
+ timeplus_user = os .getenv ("TIMEPLUS_USER" ) or "proton"
9
+ timeplus_password = os .getenv ("TIMEPLUS_PASSWORD" ) or "timeplus@t+"
10
+
4
11
5
12
# Ensure the timeplus-connect driver is registered
6
- TIMEPLUS_URI = "timeplus://user:password@localhost :8123"
13
+ TIMEPLUS_URI = f "timeplus://{ timeplus_user } : { timeplus_password } @ { timeplus_host } :8123"
7
14
db_reader = DatabaseReader (
8
15
uri = TIMEPLUS_URI # Use the explicit SQLAlchemy engine
9
16
)
You can’t perform that action at this time.
0 commit comments