In addition to the oaths prescribed by Chapter 3 of Title 45, relating to official oaths, the prosecuting attorney of a municipal court shall take and subscribe to the following oath: "I swear (or affirm) that I will well, faithfully, and impartially and without fear, favor, or affection discharge my duties as prosecuting attorney of the (City) (Town) of (here state the municipality)."