Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sqlalchemy engine

from sqlalchemy import create_engine

# default
engine = create_engine('postgresql://{user}:{password}@{host}:{port}/{db_name}')

# psycopg2
engine = create_engine('postgresql+psycopg2://{user}:{password}@{host}:{port}/{db_name}')

 
PREVIOUS NEXT
Tagged: #python #sqlalchemy #engine
ADD COMMENT
Topic
Name
2+6 =