#PYTHON #DATABASE #MYSQL #VERTICA #PARQUST #CSV
def create_connection(dsn: str, password: str = None)
Create Database Connection
MySQL: mysql://{user}@{host}:{port}/{db_name}
Vertica: vertica://{user}@{host}:{port}/{db_name}
OtherDB: {dialect}+{driver}://{user}@{host}:{port}/{db_name}
Arguments:
dsn
str - dsn string connection Example: mysql://root@127.0.0.1:3306/mydb
password
str, optional - Password Database. Defaults to None.Returns:
DBConnection
- Connection Database if success.