Subject to §§ 23A-17-1 to 23A-17-4, inclusive, if a defendant is taken before a committing magistrate who did not issue the warrant, or in case no warrant has been issued, the committing magistrate shall inform him of the matters set out in § 23A-4-3 and admit the defendant to bail as provided by § 23A-2-4 or chapter 23A-43. Within three days thereafter, the committing magistrate shall transmit the minutes of the proceedings and all papers in the case, including bail if posted, to the court which issued the warrant. If no warrant has been issued, the transcript and papers shall be transmitted to the court where the complaint is filed or to the court in which the venue of the offense lies.
SDCL 23A-4-4