Eu segui o código, mas dá um erro que não sei resolver. Na linha de comando aparece isso:
TypeError: this._db.all is not a function
at C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\src\app\infra\livro-dao.js:9:22
at new Promise (<anonymous>)
at LivroDao.lista (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\src\app\infra\livro-dao.js:8:16)
at C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\src\app\rotas\rotas.js:23:18
at Layer.handle [as handle_request] (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\Users\mauri\Google Drive\Alura\Node.js Parte 1 Inovando com JavaScript no backend\node_modules\express\lib\router\index.js:335:12)
O que poderia ser?