Loading...

vastorbit.connection.change_auto_connection

vastorbit.connection.change_auto_connection(name: str) None

Changes the current auto connection.

Parameters:

name (str) – Name of the new auto connection.

Examples

Create a new connection:

from vastorbit.connection import new_connection, change_auto_connection

new_connection(
    {
        "host": "10.211.55.14",
        "port": "8080",
        "catalog": "vast",
        "schema": "default",
        "user": "admin",
    },
    name = "my_auto_connection",
    auto = False,
)

Change the auto connection to “my_auto_connection”:

change_auto_connection("my_auto_connection")

See also

new_connection() : Creates a new vastorbit connection.