7 if __name__ ==
"__main__":
11 sys.path.append(
"../")
12 from CondCore.Utilities.CondDBFW
import querying_framework_api
13 import CondCore.Utilities.CondDBFW.data_sources, CondCore.Utilities.CondDBFW.data_formats
as format
14 from CondCore.Utilities.CondDBFW.querying
import connect
19 tag = connection.tag(name=sys.argv[1])
20 iovs = tag.iovs(pretty=
True)
23 secrets_file =
"/afs/cern.ch/cms/DB/conddb/.cms_cond/netrc"
24 secrets_file_1 =
"netrc_test"
26 connection_data = {
"db_alias" :
"orapro",
"schema" :
"cms_conditions",
"host" :
"oracle",
"secrets" : secrets_file}
27 qf = querying_framework_api(connection_data)
30 data.as_table(columns=[
"since",
"payload_hash",
"insertion_time"], fit=[
"all"])