From 4290701502d378a7dcb3414d32fabe2b8e88edd0 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 12 Oct 2022 15:33:50 +0200 Subject: Update Python OO and SQLAlchemy notebooks --- notebooks/sqlalchemy/sqlalchemy.ipynb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'notebooks/sqlalchemy/sqlalchemy.ipynb') diff --git a/notebooks/sqlalchemy/sqlalchemy.ipynb b/notebooks/sqlalchemy/sqlalchemy.ipynb index 51b00ab..8bb8333 100644 --- a/notebooks/sqlalchemy/sqlalchemy.ipynb +++ b/notebooks/sqlalchemy/sqlalchemy.ipynb @@ -288,7 +288,9 @@ "*Table* object can be instructed to load information about itself from the corresponding database schema object already existing within the database.\n", "This process is called *reflection*.\n", "\n", - "If the DB schema is already defined and maintained \"somewhere else\", it may be useful to \"reflect\" the schema instead of explicitly defining it." + "If the DB schema is already defined and maintained \"somewhere else\", it may be useful to \"reflect\" the schema instead of explicitly defining it.\n", + "\n", + "**N.B. This is not the recommended way to use SQLAlchemy**" ] }, { @@ -357,6 +359,7 @@ } ], "source": [ + "## N.B. This example does NOT represent SQLAlchemy - best practice\n", "from sqlalchemy.ext.declarative import declarative_base\n", "\n", "Base = declarative_base()\n", -- cgit v1.3