Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

472
Vistas
How execute a command on each Sequelize connection?

I need to set a Mysql session variable (aurora_replica_read_consistency) on each Sequelize connection for my nodejs application.

I can set this session variable with the below code, but I'm pretty sure this won't be set for all Sequelize connections, that I need a way of setting this each time a new DB connection is opened/added to the connection pool.

await sequelize.query("set aurora_replica_read_consistency = 'eventual'");

Is there a way to configure this session variable on my Sequeilize instance, or to extend/override Sequelize such that I can set this each time a new connection is created?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda