Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

470
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!