Database, as its name suggests, it is an organized structure, capable of retaining information, and allowing this same information to be retrieved, providing specific mechanisms capable of boosting the task, making efficient, and secure the storage/retrieval of the data/information contained in it - or simply organized collection of data able to relate, so as to make it more consistent for certain tasks?.
What makes a data collection to be called a database is its organizational structure. The database groups the data into specific blocks so that they have their own characteristics - you ever wondered what it would be like to try to find someone with no name, no face, in the middle of a crowd with the same characteristics?
A simple text file (.txt
, or any other) may or may not be considered a database, but much depends on how you sort/group the information there, or even purpose for which the information contained therein is intended.
Databases are usually characterized by having a solid, well-defined and organized structure, easy access, retrieval and discrimination of the information contained in them, and above all for being safe, otherwise we would all be using files xml
to store passwords.
Some comments/ideas will obviously disagree, and rightly so, but that’s what it is, bank (financial institutions themselves) are so named because they comply with some, if not most, of the characteristics mentioned here. If they weren’t safe, and able to expedite some operations with the money, it would be better if we were using cans to store money, or walking around with millions in our wallet. For this reason when it comes to database these well-known storage systems come to mind.
Edit: security is not at all a key feature to characterize a database.
I must disagree that XML is not considered as valid database format. I remember studying hierarchical databases as a research project for a professor in college. As I don’t remember the original reference to this, I found another bit of this on the internet: wiki C2, I always find the discussion on this site fun; sitepoint. About being quick and easy, this is a desirable effect, not primary, in my understanding
– Jefferson Quesado
@Jeffersonquesado I think you didn’t read it carefully because I just said that XML can be a format used, it can’t be the database. By its definition anything that has data is a database, I do not know why there should be a term for this, after all "data" would suffice. If you can better define what database is for you, it would be nice.
– Maniero
I reread your answer a few times in this passage, I continued in the same understanding. Database definition would be a non-atomic set of data, and a database manager system is something that provides a read/write mechanism over the database. Thus, the database and the database management system are inseparable. I know it is somewhat vague, but that is the definition I have in mind, mainly taking into account the various types of database (hierarchical, key-value, tuples, etc)
– Jefferson Quesado
@Jeffersonquesado exactly, this does not mean anything and can be used for a lot of thing that nobody would dare call database.
– Maniero
Aurélio Verde disagrees on "no one dare": https://s3.amazonaws.com/static.novatec.com.br/sumarios/sumario-9788575221525.pdf chapter 10: textual databases ;-)
– Jefferson Quesado
I only saw an index, not some text that indicates something.
– Maniero
the idea was to exemplify that Aurelio had the audacity to characterize textual databases with shell script (tuples in csv, if I’m not mistaken in multiple table files). Unfortunately, I couldn’t find his book on the Internet
– Jefferson Quesado
I found the chapter code on Github: https://github.com/aureliojargas/livro-shell/blob/master/10-banco/
– Jefferson Quesado
I’m going to close because I feel like we’re going to go around in circles, which you’ve shown has nothing to do with the beginning of the conversation, I’m talking about oranges and you’re talking about lettuce. Everything you said and showed proves what I said in the reply, your conclusion is different.
– Maniero