lidb 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lidb might be problematic. Click here for more details.
- {lidb-1.1.2 → lidb-1.1.3}/PKG-INFO +1 -1
- {lidb-1.1.2 → lidb-1.1.3}/lidb/__init__.py +1 -1
- {lidb-1.1.2 → lidb-1.1.3}/lidb/database.py +2 -2
- {lidb-1.1.2 → lidb-1.1.3}/lidb.egg-info/PKG-INFO +1 -1
- {lidb-1.1.2 → lidb-1.1.3}/pyproject.toml +1 -1
- {lidb-1.1.2 → lidb-1.1.3}/README.md +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb/init.py +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb/parse.py +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb.egg-info/SOURCES.txt +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb.egg-info/dependency_links.txt +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb.egg-info/requires.txt +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/lidb.egg-info/top_level.txt +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/setup.cfg +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/tests/test_conf.py +0 -0
- {lidb-1.1.2 → lidb-1.1.3}/tests/test_parse.py +0 -0
|
@@ -135,14 +135,14 @@ def read_mysql(query: str, db_conf: str = "DATABASES.mysql"):
|
|
|
135
135
|
import polars as pl
|
|
136
136
|
try:
|
|
137
137
|
db_setting = get_settings().get(db_conf, {})
|
|
138
|
-
required_keys = ['user', 'password', 'url']
|
|
138
|
+
required_keys = ['user', 'password', 'url', 'db']
|
|
139
139
|
missing_keys = [key for key in required_keys if key not in db_setting]
|
|
140
140
|
if missing_keys:
|
|
141
141
|
raise KeyError(f"Missing required keys in database config: {missing_keys}")
|
|
142
142
|
|
|
143
143
|
user = urllib.parse.quote_plus(db_setting['user'])
|
|
144
144
|
password = urllib.parse.quote_plus(db_setting['password'])
|
|
145
|
-
uri = f"mysql://{user}:{password}@{db_setting['url']}"
|
|
145
|
+
uri = f"mysql://{user}:{password}@{db_setting['url']}/{db_setting['db']}"
|
|
146
146
|
return pl.read_database_uri(query, uri)
|
|
147
147
|
|
|
148
148
|
except KeyError as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|