Loading...

vastorbit.connection.vastorbitlab_connection

vastorbit.connection.vastorbitlab_connection() Any

Returns the vastorbitLab connection, if possible.

Returns:

Database connection.

Return type:

conn

Examples

Get the vastorbitLab connection:

Note

vastorbitLab is a Dockerized environment designed for seamlessly using vastorbit. This function returns the connection to the VAST instance within the lab, allowing for necessary environment customization.

from vastorbit.connection import vastorbitlab_connection

vastorbitlab_connection()

<trino.dbapi.Connection object at 0x106526198>

See also

current_connection() : Returns the current vastorbit connection.
new_connection() : Creates a new vastorbit connection.
set_connection() : Sets the vastorbit connection.
vast_connection() : Reads the input DSN and creates a VAST DataBase connection.