Each county attorney, when requested by any judge of the district court of the county, shall appear on behalf of the state before such judge, and prosecute all complaints made in behalf of the state of which such judge has jurisdiction; and upon like request shall appear before such judge and conduct any criminal examination which may be had before such judge and, except as otherwise provided in subsection (b) of K.S.A. 19-702, and amendments thereof, shall also prosecute all civil suits before such judge in which the county is a party or interested.
K.S.A. 19-703