From a056cd06a62dd49a4e3645e40d36a3959766da73 Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Fri, 21 Jun 2024 11:58:13 -0700 Subject: [PATCH] Update README file in pyproject.toml --- docs/guides/compose-a-domain/initialize-domain.md | 6 +++--- docs_src/guides/composing-a-domain/017.py | 8 ++++---- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/guides/compose-a-domain/initialize-domain.md b/docs/guides/compose-a-domain/initialize-domain.md index 5b751d21..da6e0290 100644 --- a/docs/guides/compose-a-domain/initialize-domain.md +++ b/docs/guides/compose-a-domain/initialize-domain.md @@ -33,14 +33,14 @@ exposes them in a registry. ## 3. Inject dependencies +Calling `domain.init()` establishes connectivity with the underlying infra, +testing access, and making them available for use by the rest of the system. + By default, a protean domain is configured to use in-memory replacements for infrastructure, like databases, brokers, and caches. They are useful for testing and prototyping. But for production purposes, you will want to choose a database that actually persists data. -Calling `domain.init()` establishes connectivity with the underlying infra, -testing access, and making them available for use by the rest of the system. - ```python hl_lines="5-9 11" {! docs_src/guides/composing-a-domain/017.py !} ``` diff --git a/docs_src/guides/composing-a-domain/017.py b/docs_src/guides/composing-a-domain/017.py index e10c42d9..da2f2577 100644 --- a/docs_src/guides/composing-a-domain/017.py +++ b/docs_src/guides/composing-a-domain/017.py @@ -2,10 +2,10 @@ domain = Domain(__file__, load_toml=False) -domain.config["DATABASES"]["default"] = { - "PROVIDER": "protean.adapters.repository.sqlalchemy.SAProvider", - "DATABASE": "SQLITE", - "DATABASE_URI": "sqlite:///:memory:", +domain.config["databases"]["default"] = { + "provider": "sqlalchemy", + "database": "sqlite", + "database_uri": "sqlite:///test.db", } domain.init(traverse=False) diff --git a/pyproject.toml b/pyproject.toml index b2a6fedc..9cb2380e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.12.1" description = "Protean Application Framework" authors = ["Subhash Bhushan C "] license = "BSD 3-Clause" -readme = "README.rst" +readme = "README.md" repository = "https://github.com/proteanhq/protean" documentation = "https://protean.readthedocs.io/en/latest/" keywords = [