def get_driver(type, provider):
 try:
  return DriverTypeFactoryMap[type](provider)
 except KeyError:
  raise DriverTypeNotFoundError(type)

def get_driver ( type , provider ) : try : return DriverTypeFactoryMap [ type ] ( provider ) except KeyError : raise DriverTypeNotFoundError ( type )
get the db api object for the specific database type .