How FMDB makes sqlite more simpler iOS?

后端 未结 2 1924
执笔经年
执笔经年 2021-02-11 10:43

i want to use fmdb in my iPhone application. What are the differences in using sqlite with fmdb without fmdb?

i need to be able to write queries.

how the fmdb i

相关标签:
2条回答
  • 2021-02-11 11:18

    FMDB is a wrapper on top of SQLite's C API with an API more in Objective-C style. Which API style is "easier" is more up to you, it would depend greatly on your programming background and personal preference.

    There's a guide showing how to use FMDB at its GitHub page which shows the API off pretty well, you should definitely read that before deciding.

    0 讨论(0)
  • 2021-02-11 11:34

    It should also be noted that the author of sqlite (D. Richard Hipp) never intended the sqlite api to be used directly by programmers. The idea was to create a low level API that higher level wrappers would use inside their applications (and I think that's largely why we see sqlite in just about everything these days!).

    So even if you don't use FMDB, you should find another wrapper around SQLite. Your life will be easier in the long run.

    0 讨论(0)
提交回复
热议问题