<s> __author__ = '<STR_LIT>' <EOL> from hydro . connectors . base_classes import DBBaseConnector , DSN , CONNECTION_STRING <EOL> import pyodbc <EOL> from hydro . exceptions import HydroException <EOL> class VerticaConnector ( DBBaseConnector ) : <EOL> """<STR_LIT>""" <EOL> def _connect ( self ) : <EOL> if self . _conf_defs [ '<STR_LIT>' ] == DSN : <EOL> conn_string = '<STR_LIT>' % self . _conf_defs [ '<STR_LIT>' ] <EOL> self . logger . debug ( '<STR_LIT>' . format ( conn_string ) ) <EOL> self . _conn = pyodbc . connect ( conn_string , unicode_results = True ) <EOL> elif self . _conf_defs [ '<STR_LIT>' ] == CONNECTION_STRING : <EOL> self . _conn = pyodbc . connect ( self . _conf_defs [ '<STR_LIT>' ] , unicode_results = True ) <EOL> else : <EOL> raise HydroException ( "<STR_LIT>" ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> params = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> con = VerticaConnector ( params ) <EOL> print con . execute ( '<STR_LIT>' ) </s>
