Skip to content

Instantly share code, notes, and snippets.

@mrn-aglic
Created October 11, 2022 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrn-aglic/9e1d0acd77e152542fa83fb5a4a801c5 to your computer and use it in GitHub Desktop.
Save mrn-aglic/9e1d0acd77e152542fa83fb5a4a801c5 to your computer and use it in GitHub Desktop.
def print_rows(conn_id, db_hook, **context):
hook = db_hook(conn_id)
rows = hook.get_records("SELECT COUNT(*) FROM movies")
logging.info(rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment