mspass-team / mspass

Massive Parallel Analysis System for Seismologists
https://mspass.org
BSD 3-Clause "New" or "Revised" License
28 stars 11 forks source link

add schema option #434

Closed wangyinz closed 1 year ago

wangyinz commented 1 year ago

This PR fix the API for db client, in which get_database method can set the default schema. We also added a single call to change the default schema in the Database class

codecov[bot] commented 1 year ago

Codecov Report

Merging #434 (02ef825) into master (902eb56) will increase coverage by 0.02%. The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
+ Coverage   54.59%   54.61%   +0.02%     
==========================================
  Files         141      141              
  Lines       21560    21588      +28     
==========================================
+ Hits        11770    11790      +20     
- Misses       9790     9798       +8     
Impacted Files Coverage Δ
python/mspasspy/db/client.py 100.00% <ø> (ø)
python/mspasspy/algorithms/window.py 56.42% <33.33%> (ø)
cxx/src/lib/algorithms/splicing.cc 51.20% <50.00%> (-0.42%) :arrow_down:
python/mspasspy/db/database.py 77.54% <77.77%> (-0.13%) :arrow_down:
python/mspasspy/util/converter.py 84.70% <100.00%> (+0.09%) :arrow_up:
python/mspasspy/util/decorators.py 65.20% <100.00%> (+1.04%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more