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

373
Vistas
How to use regexp in sqlite in nodejs

I have a sqlite table with fields api and status.

I want to fetch data using regex using this fields to match with them.

How can I use regex to fetch data from sqlite in nodejs?

similiar question: How do I use regex in a SQLite query?

The given anwer only works in ubuntu and my server has centos which does not support sqlite3-pcre

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This solved my problem in Ubuntu Os:

https://stackoverflow.com/a/8338515/13826483 this solves the problem using terminal but the real problem was how I can implement that in my nodejs project.

pool: {
    afterCreate: (conn, done) => {
        conn.loadExtension(`/usr/lib/sqlite3/pcre.so`, (err: any) => {
            done(err, conn);
        });
    }
}

Like this we can load sqlitepcre each time we initilaises a db object.So that we can use regex in our nodejs project.

about 4 years ago · Juan Pablo Isaza Denunciar
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