From 33e3204cb2e2d48317c6f9ebedc819714b5afb8a Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Thu, 25 Aug 2022 14:19:29 +0200 Subject: [PATCH] codeblockreusefeature: stop echoing SQL statements --- Tst/codeblockreusefeature/db_schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tst/codeblockreusefeature/db_schema.py b/Tst/codeblockreusefeature/db_schema.py index 6522254..191ecb6 100644 --- a/Tst/codeblockreusefeature/db_schema.py +++ b/Tst/codeblockreusefeature/db_schema.py @@ -17,7 +17,7 @@ schema_name = 'tst' def crt_ngn(): - a_engine = create_engine(mysql_connection_string + '/' + schema_name, echo=True) + a_engine = create_engine(mysql_connection_string + '/' + schema_name, echo=False) return a_engine @@ -25,7 +25,7 @@ engine = crt_ngn() def crt_schm(): - a_engine = create_engine(mysql_connection_string, echo=True) + a_engine = create_engine(mysql_connection_string, echo=False) a_engine.execute('CREATE DATABASE IF NOT EXISTS {}'.format(schema_name)) """ If there comes up a access denied error, try following: @@ -41,7 +41,7 @@ def drp_schm(): """ drop the database scheme """ - a_engine = create_engine(mysql_connection_string, echo=True) + a_engine = create_engine(mysql_connection_string, echo=False) a_engine.execute('DROP DATABASE {}'.format(schema_name)) return -- GitLab