Search code examples
umlkey-valuediagramberkeley-db

A UML way to describe a key/value datastore?


I'm currently writing the documentation for a database using berkeleyDB. I'd like to draw UML diagram describing the keys and the values of the datastores. Is there a 'standard' way to describe this kind of database using UML ?

Thanks


Solution

  • Nope. Just a class diagram with two properties. One for the key, one for the value. Do keep in mind that an UML design is meant for documentation purposes only, although some UML editors are capable of generating code based upon your model.

    Of course, you could also use an Activity model to show how this table interacts with others. Or a Use Case diagram which shows how the data is handled by the actors.

    There are more kinds of diagrams, though. The one you need depends on what you want to tell about your project.