开发者

Interacting with a simple database in c++?

开发者 https://www.devze.com 2023-04-01 23:24 出处:网络
I\'m making a game in c++ that will need to store and retrieve information about players (name, email, high score) etc. I thought of trying to just do it myself with XML but I think a real database (m

I'm making a game in c++ that will need to store and retrieve information about players (name, email, high score) etc. I thought of trying to just do it myself with XML but I think a real database (maybe SQL?) would do a better job since over time there may be thousands of users.

Are there libraries to do simple interactions with databases like queries, retrieving information, and st开发者_Python百科oring information?

Thanks


Yes, SQLite will do exactly this. It stores the database as a local file, so if you want an online database server then this is perhaps not the best option.


It sounds like sqlite might be a good fit for you. It doesn't need a constantly running database server, and it does things smarter than hand-rolled xml-serialization.

Sqlite has documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消