Skip to content

Commit

Permalink
indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zainhoda committed May 6, 2024
1 parent 7d04d3e commit 4d58c97
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/vanna/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,27 +1299,27 @@ def connect_to_presto(
protocol: str = 'https',
requests_kwargs: dict = None
):
"""
Connect to a Presto database using the specified parameters.
Args:
host (str): The host address of the Presto database.
catalog (str): The catalog to use in the Presto environment.
schema (str): The schema to use in the Presto environment.
user (str): The username for authentication.
password (str): The password for authentication.
port (int): The port number for the Presto connection.
combined_pem_path (str): The path to the combined pem file for SSL connection.
protocol (str): The protocol to use for the connection (default is 'https').
requests_kwargs (dict): Additional keyword arguments for requests.
Raises:
DependencyError: If required dependencies are not installed.
ImproperlyConfigured: If essential configuration settings are missing.
Returns:
None
"""
"""
Connect to a Presto database using the specified parameters.
Args:
host (str): The host address of the Presto database.
catalog (str): The catalog to use in the Presto environment.
schema (str): The schema to use in the Presto environment.
user (str): The username for authentication.
password (str): The password for authentication.
port (int): The port number for the Presto connection.
combined_pem_path (str): The path to the combined pem file for SSL connection.
protocol (str): The protocol to use for the connection (default is 'https').
requests_kwargs (dict): Additional keyword arguments for requests.
Raises:
DependencyError: If required dependencies are not installed.
ImproperlyConfigured: If essential configuration settings are missing.
Returns:
None
"""
try:
from pyhive import presto
except ImportError:
Expand Down

0 comments on commit 4d58c97

Please sign in to comment.