Files
gun-manager-backend/sql/photos.go
2023-03-19 22:13:49 -04:00

15 lines
232 B
Go

package sql
func (dbClient *SqlDb) GetPhoto(id uint) string {
var photo string
row := dbClient.db.QueryRow("SELECT photo from photos where id = ?", id)
err := row.Scan(&photo)
if err != nil {
panic(err)
}
return photo
}