connext to postgres databse with PDO code example
Example 1: php pdo sql server connect
$db = new PDO("sqlsrv:Server=YouAddress;Database=YourDatabase", "Username", "Password");
Example 2: table pandas to postgresql
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:admin1@localhost:5432/postgres')
username^:pass^ databasename^