vertica_connection

In [ ]:
vertica_connection(section: str, 
                   dsn: str = "")

Reads the input DSN to create a connection to a Vertica database.

Parameters

Name Type Optional Description
section
str
Name of the section in the configuration file.
dsn
str
Path to the file containing the credentials. If empty, the Connection File will be used.

Returns

conn: Database connection.

Example

In [2]:
from verticapy.connect import vertica_connection

vertica_connection("VerticaDSN")
Out[2]:
<vertica_python.vertica.connection.Connection at 0x106526198>