From 9825ab65bd35ce4b810de7b2f0222d87ac3abcdb Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Thu, 26 Jan 2023 16:56:18 +0100 Subject: [PATCH] Connection is unnecessary, GE connects itself. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2a6f5e2..0a6bd5b 100644 --- a/README.md +++ b/README.md @@ -124,18 +124,16 @@ with Flow(...) as flow: **Run a Great Expectations validation on a MySQL query** ```python -from lolafect.connections import connect_to_mysql from lolafect.data_testing import run_data_test_on_mysql with Flow(...) as flow: - - a_mysql_connection = connect_to_mysql(...) - + my_query = """SELECT something FROM somewhere""" my_expectations = {...} # A bunch of things you want to validate on the result of the query validation_results = run_validation_on_mysql( - mysql_connection=a_mysql_connection, + name="my-cool-validation", + mysql_credentials={...}, query=my_query, expectations=my_expectations )