verticapy.connection.verticapylab_connection#
- verticapy.connection.verticapylab_connection() Connection #
Returns the VerticaPyLab connection, if possible.
Returns#
- conn
Database connection.
Examples#
Get the VerticaPyLab connection:
Note
VerticaPyLab is a Dockerized environment designed for seamlessly using VerticaPy. This function returns the connection to the Vertica instance within the lab, allowing for necessary environment customization.
from verticapy.connection import verticalab_connection verticalab_connection()
<vertica_python.vertica.connection.Connection at 0x106526198>
See also
current_connection()
: Returns the current VerticaPy connection.new_connection()
: Creates a new VerticaPy connection.set_connection()
: Sets the VerticaPy connection.vertica_connection()
: Reads the input DSN and creates a Vertica Database connection.