connect¶
In [ ]:
connect(section: str,
dsn: str = "")
Connects to the 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. |
Example¶
In [10]:
from verticapy.connect import *
# Displays the available connections
available_connections()
Out[10]:
In [11]:
connect("VerticaDSN")