rda-python-dbms 2.0.5__py3-none-any.whl → 2.0.7__py3-none-any.whl
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.
- rda_python_dbms/pgchksum.py +10 -6
- rda_python_dbms/tables/cntldb/ivadref.json +59 -0
- rda_python_dbms/tables/dssdb/allusage.json +1 -1
- rda_python_dbms/tables/dssdb/awsusage.json +1 -1
- rda_python_dbms/tables/dssdb/codusage.json +1 -1
- rda_python_dbms/tables/dssdb/dataset.json +6 -0
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/METADATA +1 -1
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/RECORD +12 -11
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/WHEEL +1 -1
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/entry_points.txt +0 -0
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/licenses/LICENSE +0 -0
- {rda_python_dbms-2.0.5.dist-info → rda_python_dbms-2.0.7.dist-info}/top_level.txt +0 -0
rda_python_dbms/pgchksum.py
CHANGED
|
@@ -176,7 +176,7 @@ class PgChksum(PgCMD, PgSplit):
|
|
|
176
176
|
# get the checksum filelist for wfile
|
|
177
177
|
def get_checksum_wfilelist(self):
|
|
178
178
|
self.PVALS['TYPE'] = "Web"
|
|
179
|
-
self.PVALS['BUCKET'] = '
|
|
179
|
+
self.PVALS['BUCKET'] = 'gdex-data'
|
|
180
180
|
flds = "wid, wfile, type, locflag, data_size, checksum, date_modified, time_modified"
|
|
181
181
|
if self.PGSUM['f']:
|
|
182
182
|
pgrecs = self.pgmhget('wfile', 'wid, dsid', {'wfile' : self.PGSUM['f']})
|
|
@@ -211,11 +211,15 @@ class PgChksum(PgCMD, PgSplit):
|
|
|
211
211
|
cnt = len(pgrecs['wid']) if pgrecs else 0
|
|
212
212
|
wfrecs = {}
|
|
213
213
|
if cnt > 0:
|
|
214
|
+
tmpcnt = 0
|
|
214
215
|
for i in range(cnt):
|
|
215
216
|
dsid = pgrecs['dsid'][i]
|
|
216
217
|
pgrec = self.pgget_wfile(dsid, flds, 'wid = {}'.format(pgrecs['wid'][i]))
|
|
217
|
-
pgrec
|
|
218
|
-
|
|
218
|
+
if pgrec:
|
|
219
|
+
pgrec['dsid'] = dsid
|
|
220
|
+
self.addrecord(wfrecs, pgrec, tmpcnt)
|
|
221
|
+
tmpcnt += 1
|
|
222
|
+
cnt = tmpcnt
|
|
219
223
|
if cnt > 0:
|
|
220
224
|
if fcnt == 0 or fcnt > cnt: self.PGSUM['c'] = cnt
|
|
221
225
|
self.PGSUM['f'] = wfrecs
|
|
@@ -226,7 +230,7 @@ class PgChksum(PgCMD, PgSplit):
|
|
|
226
230
|
# get the checksum filelist for sfile
|
|
227
231
|
def get_checksum_sfilelist(self):
|
|
228
232
|
self.PVALS['TYPE'] = "Saved"
|
|
229
|
-
self.PVALS['BUCKET'] = '
|
|
233
|
+
self.PVALS['BUCKET'] = 'gdex-decsdata'
|
|
230
234
|
flds = "sid, sfile, dsid, type, locflag, data_size, checksum, date_modified, time_modified"
|
|
231
235
|
hcnd = {}
|
|
232
236
|
fcnt = self.PGSUM['c']
|
|
@@ -331,7 +335,7 @@ class PgChksum(PgCMD, PgSplit):
|
|
|
331
335
|
locflag = pgrec['locflag']
|
|
332
336
|
if locflag == 'O':
|
|
333
337
|
fname = "{}/{}".format(pgrec['dsid'], pgrec['wfile'])
|
|
334
|
-
self.evaluate_object_file(fname, pgrec, '
|
|
338
|
+
self.evaluate_object_file(fname, pgrec, self.PVALS['BUCKET'], cnts)
|
|
335
339
|
else:
|
|
336
340
|
fname = pgrec['wfile']
|
|
337
341
|
if not re.match(r'^/', fname):
|
|
@@ -348,7 +352,7 @@ class PgChksum(PgCMD, PgSplit):
|
|
|
348
352
|
locflag = pgrec['locflag']
|
|
349
353
|
if locflag == 'O':
|
|
350
354
|
fname = "{}/{}".format(pgrec['dsid'], pgrec['sfile'])
|
|
351
|
-
self.evaluate_object_file(fname, pgrec, '
|
|
355
|
+
self.evaluate_object_file(fname, pgrec, self.PVALS['BUCKET'], cnts)
|
|
352
356
|
else:
|
|
353
357
|
fname = pgrec['sfile']
|
|
354
358
|
if not re.match(r'^/', fname):
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"header": {
|
|
3
|
+
"author": "Zaihua Ji, zji@ucar.edu",
|
|
4
|
+
"date": "04/10/2014",
|
|
5
|
+
"description": "icoads ivad reference table information"
|
|
6
|
+
},
|
|
7
|
+
"database": "rdadb",
|
|
8
|
+
"schema": "cntldb",
|
|
9
|
+
"name": "ivadref",
|
|
10
|
+
"pkey": "ridx",
|
|
11
|
+
"column": [
|
|
12
|
+
{
|
|
13
|
+
"name": "ridx",
|
|
14
|
+
"type": "bigserial",
|
|
15
|
+
"pkey": "PRIMARY KEY",
|
|
16
|
+
"comment": "reference index"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "tidx",
|
|
20
|
+
"type": "smallint",
|
|
21
|
+
"notnull": "NOT NULL",
|
|
22
|
+
"comment": "icoads table index id"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "fname",
|
|
26
|
+
"type": "char(5)",
|
|
27
|
+
"notnull": "NOT NULL",
|
|
28
|
+
"comment": "original field name"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "arci",
|
|
32
|
+
"type": "char(4)",
|
|
33
|
+
"notnull": "NOT NULL",
|
|
34
|
+
"comment": "author reference code"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "cdi",
|
|
38
|
+
"type": "int",
|
|
39
|
+
"notnull": "NOT NULL",
|
|
40
|
+
"comment": "creation date"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"index": [
|
|
44
|
+
{
|
|
45
|
+
"name": "ivadref_idx_1",
|
|
46
|
+
"column": "arci, cdi, fname, tidx",
|
|
47
|
+
"unique": "UNIQUE"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "ivadref_idx_2",
|
|
51
|
+
"column": "fname"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "ivadref_idx_3",
|
|
55
|
+
"column": "tidx"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"comment": "ICOADS IMMA TABLE SUMMARY"
|
|
59
|
+
}
|
|
@@ -141,6 +141,12 @@
|
|
|
141
141
|
"default": "'N'",
|
|
142
142
|
"comment": "automtic backup flag: B-Backup or D-Backup&Drdata"
|
|
143
143
|
},
|
|
144
|
+
{
|
|
145
|
+
"name": "taccflag",
|
|
146
|
+
"type": "char(1)",
|
|
147
|
+
"default": "'N'",
|
|
148
|
+
"comment": "tacc backup flag: B-Backup"
|
|
149
|
+
},
|
|
144
150
|
{
|
|
145
151
|
"name": "accessflag",
|
|
146
152
|
"type": "char(1)",
|
|
@@ -10,7 +10,7 @@ rda_python_dbms/pg_ddllib.py,sha256=-zawllfUCe7QZNvza-u5TAYKP4yilC9K6TetHhoGenU,
|
|
|
10
10
|
rda_python_dbms/pg_schema.py,sha256=Vsf5fKENYIOgMKE3yS0TkXhg-aeHZ2nYzpvltFAcdFY,5520
|
|
11
11
|
rda_python_dbms/pg_seq.py,sha256=wNxqsyIjcTplJErPirZ-VkZ8HS4mgQUwPz8Xwd12kYA,4914
|
|
12
12
|
rda_python_dbms/pgbackup.py,sha256=8LaRE7SeRT1hq0_oUby9lcjHSjKZI0YC_jXqtT5LNRo,4248
|
|
13
|
-
rda_python_dbms/pgchksum.py,sha256=
|
|
13
|
+
rda_python_dbms/pgchksum.py,sha256=8jfBncptxp57Gr2t66Kk9MFt5Z_aXfozOGZPaohKGwM,21802
|
|
14
14
|
rda_python_dbms/pgcmptables.py,sha256=LQ4KK4JuQs2z3nBdINWYgyiGu2MF9RZjS5_cAktbs6k,47123
|
|
15
15
|
rda_python_dbms/pgdbdump.py,sha256=vM-J3VfEDTXD97OV0Ke3BJzNiXxuMQS0Ut1SxkqujkU,3170
|
|
16
16
|
rda_python_dbms/pgdbrestore.py,sha256=aL1cfUQcNFlLCHBCGP3FPRc8biJfTxftq9lm_Ou8KHA,3108
|
|
@@ -26,6 +26,7 @@ rda_python_dbms/tables/cntldb/iattm.json,sha256=Hn7wRW0AZ4Pr7nc4YICKDby9MfVmLuKS
|
|
|
26
26
|
rda_python_dbms/tables/cntldb/iattm_daily.json,sha256=h3b-1K6DvuXYfW-chxJCP4rbPxwTvWoYRF7c5YTp9KY,1191
|
|
27
27
|
rda_python_dbms/tables/cntldb/inventory.json,sha256=ImQJgj-iVN87ARnvZYqxNR9QWBO0NGnsC5Z_kEz58tA,1624
|
|
28
28
|
rda_python_dbms/tables/cntldb/itidx.json,sha256=xa3yt_SeqhcN_ptyt0yeAr-_yQSjVY8Rsine7oQRz_o,1129
|
|
29
|
+
rda_python_dbms/tables/cntldb/ivadref.json,sha256=0LH6heVVChpAPk9Gbn9KpMk7KldqF2evXSqk6M_NXG0,1189
|
|
29
30
|
rda_python_dbms/tables/cntldb0/iattm.json,sha256=Hn7wRW0AZ4Pr7nc4YICKDby9MfVmLuKSCKMdYIthVqg,967
|
|
30
31
|
rda_python_dbms/tables/cntldb0/iattm_daily.json,sha256=h3b-1K6DvuXYfW-chxJCP4rbPxwTvWoYRF7c5YTp9KY,1191
|
|
31
32
|
rda_python_dbms/tables/cntldb0/iinventory.json,sha256=GALvz1LTFPgLSUcgYdxsOrugcNbw4QEZfQnrpA2EwoY,928
|
|
@@ -35,8 +36,8 @@ rda_python_dbms/tables/cntldb0/ivadref.json,sha256=0LH6heVVChpAPk9Gbn9KpMk7KldqF
|
|
|
35
36
|
rda_python_dbms/tables/dssdb/acard.json,sha256=Ls_cqEntul8ciWEzr07N0z_Qu-eiumPldKPeXWhFpHU,951
|
|
36
37
|
rda_python_dbms/tables/dssdb/access_types.json,sha256=i3UcF_leD2sg9Yz8sZDEgqIqK7P3I25uhzZgL_2kqWo,655
|
|
37
38
|
rda_python_dbms/tables/dssdb/access_types_dev.json,sha256=WfT6sCynXAg3TiKEUtfHK6ME2I0LbKO07p9Snbgb4F0,823
|
|
38
|
-
rda_python_dbms/tables/dssdb/allusage.json,sha256=
|
|
39
|
-
rda_python_dbms/tables/dssdb/awsusage.json,sha256=
|
|
39
|
+
rda_python_dbms/tables/dssdb/allusage.json,sha256=tXI9iomkHLX8fZdlS0l_WmyVY0ZDE1CHD3A7jnISibQ,2408
|
|
40
|
+
rda_python_dbms/tables/dssdb/awsusage.json,sha256=QJCvsUhhiEDJtGf_JN2AcJ_R-ltDLCtHvi3M0xQoG3Y,2209
|
|
40
41
|
rda_python_dbms/tables/dssdb/bfile.json,sha256=zs78X055a0kTcZSpj-MGptB96F2LFbOZwgA2S6sbun0,2920
|
|
41
42
|
rda_python_dbms/tables/dssdb/bldusage.json,sha256=3bviCAckkI-dMfYBFs96N_uCOnCVpWkJbFEj59M5NZI,2137
|
|
42
43
|
rda_python_dbms/tables/dssdb/cardhist.json,sha256=A_1LwSjiyv5sHqKMF6P_5jgRW3kRrQQNIRGVU62pTSg,1194
|
|
@@ -44,11 +45,11 @@ rda_python_dbms/tables/dssdb/checklimit.json,sha256=44kQIxVb0WtWTecrm90enzvympEm
|
|
|
44
45
|
rda_python_dbms/tables/dssdb/ci_cd.json,sha256=RM3qgXa5jl2dVlk6ZOSZv0C1SXf7mT8JSs2fv-YLQGc,526
|
|
45
46
|
rda_python_dbms/tables/dssdb/clranges.json,sha256=KnlsEGxg5Yjv7-m3oYkkMxNmNWdKOzGwmwksX6ui_5E,567
|
|
46
47
|
rda_python_dbms/tables/dssdb/cmd_reg.json,sha256=qKFg2BlDU-6DO7kORnvLm2W7Oq-FlQ62XUMnQsV5liE,868
|
|
47
|
-
rda_python_dbms/tables/dssdb/codusage.json,sha256=
|
|
48
|
+
rda_python_dbms/tables/dssdb/codusage.json,sha256=M39yic_8K0N7h3pXKrZDYjwEIjdcQ0Kg412QvoIPIaY,2287
|
|
48
49
|
rda_python_dbms/tables/dssdb/countries.json,sha256=nj7BLf39-hdt4P5QE5fW38ro5AOZhI8SCBGcWDt9_mg,832
|
|
49
50
|
rda_python_dbms/tables/dssdb/country_info.json,sha256=b7QbMS6bYgpkzpRe8wqzZfFn8YNWeaGSJUZcvx0MRP8,1477
|
|
50
51
|
rda_python_dbms/tables/dssdb/daphist.json,sha256=UrGIHs9rxbeWvNIS2n77ry6jMv4LYMe7uIK2pocjVZY,404
|
|
51
|
-
rda_python_dbms/tables/dssdb/dataset.json,sha256=
|
|
52
|
+
rda_python_dbms/tables/dssdb/dataset.json,sha256=27MOIQxyv5FgQWFHLXlBcoF_3LNfAPKgrkqN81Nky7Q,7074
|
|
52
53
|
rda_python_dbms/tables/dssdb/datastat.json,sha256=YN9anPt8YZrFI0he_oTB2z2UfLtmvqqL92lzt7v-6RM,1506
|
|
53
54
|
rda_python_dbms/tables/dssdb/dcard.json,sha256=FRPmy3vN2ZgEcurqIVO_hSsEsGh1yKGx8PWjPHYHyfE,953
|
|
54
55
|
rda_python_dbms/tables/dssdb/dcrqst.json,sha256=AJrROpsdJIcOdbrI0rL4pi8dz06egJD6vzJnMsszWNM,2664
|
|
@@ -953,9 +954,9 @@ rda_python_dbms/tables/obsua/wind_5v2_0.json,sha256=NehMFE-GMNlD5Bh_fiacfSOmZWkr
|
|
|
953
954
|
rda_python_dbms/tables/obsua/wind_60v2_0.json,sha256=jOyQgD5ph7YBMuQfvYz1Ln6X_-_Vdhl36HBexOHZ1dA,1067
|
|
954
955
|
rda_python_dbms/tables/obsua/wind_8v2_0.json,sha256=5wtCThmFeOyiAGH_Qv3_jrXjhjo9b87ehlpI9QQY2SM,1064
|
|
955
956
|
rda_python_dbms/tables/obsua/wind_9v2_0.json,sha256=7OKFUicOn15LL_WuF1VE_L8DjxsHmRP4uBnopuMIeTg,1064
|
|
956
|
-
rda_python_dbms-2.0.
|
|
957
|
-
rda_python_dbms-2.0.
|
|
958
|
-
rda_python_dbms-2.0.
|
|
959
|
-
rda_python_dbms-2.0.
|
|
960
|
-
rda_python_dbms-2.0.
|
|
961
|
-
rda_python_dbms-2.0.
|
|
957
|
+
rda_python_dbms-2.0.7.dist-info/licenses/LICENSE,sha256=Uky6fiiVw7cakFVRtVpzg-mvqOQ-WcA_H8lHqhPRg58,1101
|
|
958
|
+
rda_python_dbms-2.0.7.dist-info/METADATA,sha256=Rs9LOGe7lwIOFKICQ6HA79ndm_mu_5d73Z_MuyUQoMg,617
|
|
959
|
+
rda_python_dbms-2.0.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
960
|
+
rda_python_dbms-2.0.7.dist-info/entry_points.txt,sha256=iti6iZS2OEeBqO5aHlWeMFcbuwN_2assidP0qeSkQ6E,346
|
|
961
|
+
rda_python_dbms-2.0.7.dist-info/top_level.txt,sha256=4T1ShNUMyiqmwDIuDL7pDOm_S-6zWWW3Vy6OdAzYA4c,16
|
|
962
|
+
rda_python_dbms-2.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|