rda-python-common 1.0.39__tar.gz → 1.0.40__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 rda-python-common might be problematic. Click here for more details.
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/PKG-INFO +1 -1
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/pyproject.toml +1 -1
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgDBI.py +10 -7
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/PKG-INFO +1 -1
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/LICENSE +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/README.md +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/setup.cfg +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-1.0.39 → rda_python_common-1.0.40}/test/test_common.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.40
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -46,6 +46,8 @@ DBPASS = {}
|
|
|
46
46
|
DBNAMES = {
|
|
47
47
|
'ivaddb' : 'ivaddb',
|
|
48
48
|
'cntldb' : 'ivaddb',
|
|
49
|
+
'ivaddb1' : 'ivaddb',
|
|
50
|
+
'cntldb1' : 'ivaddb',
|
|
49
51
|
'cdmsdb' : 'ivaddb',
|
|
50
52
|
'ispddb' : 'ispddb',
|
|
51
53
|
'obsua' : 'upadb',
|
|
@@ -113,20 +115,21 @@ PGDBI['SCPATH'] = None # additional schema path for set search_path
|
|
|
113
115
|
PGDBI['VHSET'] = 0
|
|
114
116
|
PGDBI['PGSIZE'] = 1000 # number of records for page_size
|
|
115
117
|
PGDBI['MTRANS'] = 5000 # max number of changes in one transactions
|
|
116
|
-
PGDBI['MAXICNT'] =
|
|
118
|
+
PGDBI['MAXICNT'] = 6000000 # maximum number of records in each table
|
|
117
119
|
|
|
118
120
|
#
|
|
119
121
|
# create a pgddl command string with
|
|
120
122
|
# table name (tname), prefix (pre) and suffix (suf)
|
|
121
123
|
#
|
|
122
|
-
def get_pgddl_command(tname, pre = None, suf = None):
|
|
124
|
+
def get_pgddl_command(tname, pre = None, suf = None, scname = None):
|
|
123
125
|
|
|
124
126
|
ms = re.match(r'^(.+)\.(.+)$', tname)
|
|
125
|
-
if
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
if not scname:
|
|
128
|
+
if ms:
|
|
129
|
+
scname = ms.group(1)
|
|
130
|
+
tname = ms.group(2)
|
|
131
|
+
else:
|
|
132
|
+
scname = PGDBI['SCNAME']
|
|
130
133
|
xy = ''
|
|
131
134
|
if suf: xy += ' -x ' + suf
|
|
132
135
|
if pre: xy += ' -y ' + pre
|
{rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.40
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
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
|
|
File without changes
|
|
File without changes
|
{rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-1.0.39 → rda_python_common-1.0.40}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|