How to use the on function from knex

Find comprehensive JavaScript knex.on code examples handpicked from public code repositorys.

10
11
12
13
14
15
16
17
18
19
20
21
    console.error("Can't connect to DB!")
    throw error
  })


if (process.env.NODE_ENV !== 'production') {
  knex.on('error', (error) => {
    console.log('Error', error)
  })


  knex.on('query', (query) => {
fork icon0
star icon0
watch icon0