This file contains 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
from sqlalchemy import create_engine | |
from sqlalchemy.orm import scoped_session | |
from sqlalchemy.orm import sessionmaker | |
#variable engine global | |
ENGINE = None | |
#La función conexión | |
def createConnectionDB(conf: dict): | |
#Este es el global engine |
This file contains 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
const usuario = { nombre: 'Rumi' }; | |
usuario.segundo_nombre = 'Felipe'; | |
console.log(usuario); |
This file contains 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
#librerías necesarias para utilizar el sqlalchemy | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import scoped_session | |
from sqlalchemy.orm import sessionmaker | |
#variable engine global | |
ENGINE = None | |
#La función conexión, sirve para crear una conexión maestra a partir de engine(cadena de conexión) que recibe credenciales | |
def createConnectionDB(conf: dict): |