Government Code § 27642
CHAPTER 12. County Counsel
Whenever the board of supervisors appoints a county counsel pursuant to this chapter, he shall discharge all the duties vested by law in the district attorney other than those of a public prosecutor.