Fase03/Modulo02/Desafio02/src/app/models/Teacher.js
// Exibir um professor (show)
Exibir um professor (show)
Exibir um professor ( show )
find(id, callback){
        db.query(`
        SELECT * 
        FROM teachers
        WHERE id = $1`, [id], function(err, results){
            if(err) throw (`Database Error: ${err}`)
            callback(results.rows[0])
        })
    }
find ( id , callback ) { db . query ( ` ` , [ id ] , function ( err , results ) { if ( err ) throw ( ` ${ err } ` ) callback ( results . rows [ 0 ] ) } ) }
Exibir um professor (show)
Exibir um professor ( show )