Persistence solutions for C++ (with a SQL database)?

后端 未结 5 636
孤独总比滥情好
孤独总比滥情好 2021-02-03 13:25

I\'m wondering what kind of persistence solutions are there for C++ with a SQL database? In addition to doing things with custom SQL (and encapsulating the data access to DAOs o

5条回答
  •  醉梦人生
    2021-02-03 13:52

    I use MYSQL or SQLite.

    MYSQL: Provides a server based DB that your application must dynamically connect to.
    SQLite:Provides an in memory or file base DB.

    Using the in memory DB is useful for quick development as setting up and configuring a DB server just for a single project is a big task. But once you have a DB server up and running it's just as easy to sue that.

    In memory DB is useful for holding small DB such as configuration etc. While for larger data sets a DB server is probably more practical.

    Download from here: http://dev.mysql.com/
    Download from here: http://www.sqlite.org/

提交回复
热议问题