The writ of prohibition may be issued upon affidavit on application of the person beneficially interested.
SDCL 21-30-3