Created
December 15, 2020 00:00
-
-
Save fandrefh/9e0431c9a8e10720cd98050a5ab533d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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