CMS 3D CMS Logo

Functions
shell Namespace Reference

Functions

def close_connections (verbose=True)
 
def connect (connection_data=None, mode="r", map_blobs=False, secrets=None, pooling=True)
 

Detailed Description

Contains classes for shell part of framework - basically a collection of classes that are designed to be invoked on the command line.

Function Documentation

◆ close_connections()

def shell.close_connections (   verbose = True)

Definition at line 22 of file shell.py.

22 def close_connections(verbose=True):
23  global connections
24  for connection in connections:
25  connection_string = "%s/%s" % (connection.connection_data["database_name"], connection.connection_data["schema"])
26  connection.tear_down()
27  if verbose:
28  print("Connection to %s was closed." % connection_string)

References print().

◆ connect()

def shell.connect (   connection_data = None,
  mode = "r",
  map_blobs = False,
  secrets = None,
  pooling = True 
)

Definition at line 15 of file shell.py.

15 def connect(connection_data=None, mode="r", map_blobs=False, secrets=None, pooling=True):
16  if connection_data == None:
17  connection_data = "frontier://FrontierProd/CMS_CONDITIONS"
18  connection = querying.connect(connection_data, mode=mode, map_blobs=map_blobs, secrets=secrets, pooling=pooling)
19  connections.append(connection)
20  return connection
21 

References querying.connect().

Referenced by shell_tests.shell_tests.test_init_shell().

querying.connect
def connect(connection_data, mode="r", map_blobs=False, secrets=None, pooling=True)
Definition: querying.py:452
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
shell.close_connections
def close_connections(verbose=True)
Definition: shell.py:22
shell.connect
def connect(connection_data=None, mode="r", map_blobs=False, secrets=None, pooling=True)
Definition: shell.py:15