<s> import psycopg2 <EOL> from pprint import pprint <EOL> from mosql . query import select , left_join <EOL> from mosql . db import Database , all_to_dicts <EOL> db = Database ( psycopg2 , host = '<STR_LIT:127.0.0.1>' ) <EOL> with db as cur : <EOL> cur . execute ( select ( <EOL> '<STR_LIT>' , <EOL> { '<STR_LIT>' : '<STR_LIT>' } , <EOL> joins = left_join ( '<STR_LIT>' , using = '<STR_LIT>' ) , <EOL> ) ) <EOL> pprint ( all_to_dicts ( cur ) ) </s>
