Skip to main content

pql.set_connection

pc.set_connection(connection)

This method sets the default connection to use for any method requiring
a connection argument.

Parameters:

   connection: Union[str, int]
The desired connection name or id.

Returns:

   None

Examples:

Set the desired connection:

    pc.set_connection('file_uploads')

OR

    pc.set_connection(1)