test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
shell.py
Go to the documentation of this file.
1 """
2 
3 Contains classes for shell part of framework - basically a collection of classes that are designed to be invoked on the command line.
4 
5 """
6 
7 import querying
8 
9 # function to setup database connection, based on given database name
10 def connect(connection_data=None):
11  if connection_data == None:
12  connection_data = {"db_alias":"orapro", "schema" : "cms_conditions", "host":"oracle", "secrets":"/afs/cern.ch/cms/DB/conddb/.cms_cond/netrc"}
13  connection = querying.connect(connection_data)
14  return connection
def connect
Definition: shell.py:10
def connect
Definition: querying.py:352