The district attorney shall take the following oath:
"I do swear that I will faithfully and impartially and without fear, favor, or affection discharge my duties as district attorney and will take only my lawful compensation. So help me God."
OCGA § 15-18-2