I searched for a long time, but did not succeed, I will explain, for the coursework I need to make a program that works with a database that has its own extension (for example, "baza.qz"), I beg you to explain how to do this.
- @teanYCH, it seems to me that you made some mistake in judgments here. On hearing about the DBMS, you immediately thought of a relational DBMS. Of course, we all love SQL, it’s great, beautiful and versatile, but it’s not always the best tool for solving a particular task. Of course, we don’t know for sure what the task is for @ hj-81, but it is quite possible that for it there will be a fairly simple document-oriented DBMS implemented (in the simplest case) by writing a serialized data structure to disk. - MrClon
- @MrClon, the author did not specify which database he needs, so I can think about anything, even a relational database, even a notebook with a pen. And I do not consider it a mistake. - teanYCH
- @ teanYCH, you can think of anything, freedom of conscience hasn’t been canceled yet, but at least a strange idea to fence their RDBMS into their ropes and twigs. If the task fits well with the relational data model, and there is no reason to wish for something strange, then there will be more than enough banal sqlite. If sqlite is not suitable for some reason, then you need to go from the application tasks, and most likely creating your sqlite (with non-blocking transactions and versioning :) will not be the optimal solution - MrClon
- @MrClon, ok - teanPCh
2 answers
it is not so much a matter of the database itself as of a DBMS. You need not only to think over your database format, but also to organize a system that can work with this format. In short, the task is not trivial.
To get started, look towards xml, well, or try to collect something like tables from ini files ... Nothing comes to mind at once.
UPD
You can also refer to the standard means of serialization .
An extension is simply the ending of a file name that really does not affect anything. So, you can simply use any embedded database (for example, sqlite) and store the database itself in the baza.qz file, at least in video.avi. These are just names.
If there is no need for a relational database, or if the task involves writing your DBMS, then writing a simple nosql DBMS is simple enough. Perhaps writing such a DBMS would be a valuable experience for you (however, the same can be said about using sqlite, not to fence bicycles where it is not necessary - a valuable skill).
If you decide to go the second way - I recommend the course " Database " from the Computer Science Center. However, if you decide not to follow this path, but plan to work with databases, I still recommend this course.