change_auto_connection

In [ ]:
change_auto_connection(name: str = "VML")

Changes the current auto connection.

Parameters

Name Type Optional Description
name
str
Name of the new auto connection.

Example

In [7]:
from verticapy.connect import *

new_auto_connection({"host": "10.211.55.14", 
                     "port": "5433", 
                     "database": "testdb", 
                     "password": "XxX", 
                     "user": "dbadmin"},
                     name = "my_auto_connection")
# Set the main auto connection
change_auto_connection("my_auto_connection")

See Also

new_auto_connection Saves a connection to automatically create DB cursors.
read_auto_connect Automatically creates a connection.
vertica_conn Creates a Vertica Database connection.