// FindOneJob finds all jobs.
FindOneJob finds all jobs.
// FindOneJob finds all jobs .
func (wr *WriterReader) FindOneJob(name string) (entities.Job, error) {
	stmt, _ := db.Prepare(findOneJobSQL)
	_ = stmt.Exec(name)
	if hasRow, _ := stmt.Step(); !hasRow {
		return entities.Job{}, errResourceNotFound
	}
	row := wr.readJobRow(stmt)
	return entities.NewJob(row.name, row.command, row.tick, row.status)
}
func ( wr * WriterReader ) FindOneJob ( name string ) ( entities . Job , error ) { stmt , _ := db . Prepare ( findOneJobSQL ) _ = stmt . Exec ( name ) if hasRow , _ := stmt . Step ( ) ; ! hasRow { return entities . Job { } , errResourceNotFound } row := wr . readJobRow ( stmt ) return entities . NewJob ( row . name , row . command , row . tick , row . status ) }
FindOneJob finds all jobs.
FindOneJob finds all jobs .