How to connect mysql with swift?

前端 未结 4 2028
悲哀的现实
悲哀的现实 2020-12-13 05:22

I had a web app and I want to make a iOS app, I don\'t want to use HTTP request, my website has its own database (which is a MySQL database). I googled a lot, but I can\'t f

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 06:05

    Mobile apps generally connect to an API, not directly to a database. I know you said you didn't want to use HTTP request, but that's really the proper way to do it. Make a REST service using whatever programming language you like and do it right.

    If you like JS, try out SailsJS on Node. It takes 5 minutes to make an API from a MySQL database. http://sailsjs.org

提交回复
热议问题