N
N
Nikita Yaremenko2020-11-11 12:14:58
Python
Nikita Yaremenko, 2020-11-11 12:14:58

Can a Python dictionary be considered a database?

I came across the following question: can a dictionary be considered as a relational database, that is, it stores certain types of elements that can be accessed using a key ..

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2020-11-11
@dmtrrr

A dictionary cannot be compared to a relational database, it can be compared to a key value store.

D
Denis, 2020-11-11
@MAD-Kuzia

In Excel, each cell is numbered with a unique key, you can even build relationships between cells. Can Excel be considered a relational database? What about any file system? From a formal point of view, yes. The main thing is not to forget to distinguish between a database and a DBMS. For from a formal point of view, a closet full of folders with files is also a database.

V
Vladimir Korotenko, 2020-11-11
@firedragon

As mentioned above key value. But I suspect that in python there are analogues of linq and then this is a real relational database.

M
mayton2019, 2020-11-11
@mayton2019

I suggest leaving the Python dictionary as a dictionary and not looking for forced analogies. A database (in the general sense of the word) is an RDBMS with ACID support.
Otherwise, the plucked rooster will be human.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question