Skip to content

Instantly share code, notes, and snippets.

@fandrefh
Created December 15, 2020 00:00
Show Gist options
  • Save fandrefh/9e0431c9a8e10720cd98050a5ab533d4 to your computer and use it in GitHub Desktop.
Save fandrefh/9e0431c9a8e10720cd98050a5ab533d4 to your computer and use it in GitHub Desktop.
import psycopg2
class ConexaoDB:
def conectar(self):
conexao = psycopg2.connect(
host='localhost',
database='senacwebdb',
user='senacwebuser',
password='password123'
)
return conexao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment