<commit_before>.. _ref_datamodel_databases:

=========
Databases
=========<commit_msg>docs: Add details about `schema::Database`.<commit_after>.. _ref_datamodel_databases:

=========
Databases
=========

An EdgeDB cluster can have multiple databases in it. The
:eql:stmt:`CREATE DATABASE` EdgeQL command adds a new database to the
EdgeDB cluster.

The following command will get a list of all databases present in the
cluster:

.. code-block:: edgeql

    SELECT schema::Database.name;
{'fraction_non_alphanumeric': 0.1463917525773196, 'fraction_numerical': 0.0, 'mean_word_length': 5.48, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4304770', 'n_tokens_mistral': 151, 'n_tokens_neox': 139, 'n_words': 50}