Storing data using a standalone C ++ application

I work with Apache, PHP and MySQL for web development and local applications. Over the past two years, I have been slowly learning C ++ and want to build an application this summer. In particular, I want to create a "library" application in which I can store information about books, CDs and records that I have. I know this type of application exists, but I want to learn C ++, and it seems like a good way to do it.

Here are a few questions:

  • Is it possible to create a standalone application that does not require a database to store data?

  • If the answer to No. 1 is yes, is it recommended to do this for an application that could potentially be needed to manage large amounts of data?

  • What data storage options would you recommend using with a C ++ application?

Thank!

Update Well, that had a lot of good answers. This is such a wonderful site with so many members. It turns out that at the moment I may not need to go to the C ++ route. Now I understand that I'm most interested in writing an application that can function as an organization system "library" more than I want to use C ++. Thank you all for your answers!

+3
source share
6 answers

Is it possible to create a standalone application that does not require a database to store data?

, - .

№ 1 "", , ?

, .

++?

SQLite. , .

+6

, (, , ). , , , : ? :

1) , ? - " ". , fwrite. : . , , , , .

2) ? XML. , tinyXML, . , / ( ).

3) , . MFC CArchive, , , .

+1
  • .
  • , , , , , .
  • - , () , .

, (-) , , . ( ) , , . , , , (.. , ,).

/. , ( , ). , , .

+1
  • , " " , , 1000 , , , DB, sqlite
  • , CSV XML.

, , SQL . , , , .

, .

+1

...

, .

, , - , RDBMS . , :

  • - , , , , , - ? ( "" ), ? - ? .
  • ad hoc. , , . , , ISBN . , , , , ls, dir -, CLI.
  • - XML. , , - XML. - .
  • - ! , , / .
  • , grep, sed, lex .., , .
  • - -, - " " , . , , .. , , , - - , , , - . , - , .
  • , , . .

.

, , , , - , - .

, .

+1

SQLite.

-:

"SQLite is a software library that implements a stand-alone, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely used SQL database engine in the world. The source code for SQLite is publicly available."

"Think of SQLite not as an Oracle replacement, but as a fopen () replacement"

0
source

Source: https://habr.com/ru/post/1746681/


All Articles