@task
def psql(sql, show=True):
 out = postgres((u'psql -c "%s"' % sql))
 if show:
  print_command(sql)
 return out

@ task def psql ( sql , show = True ) : out = postgres ( ( u'psql -c "%s"' % sql ) ) if show : print_command ( sql ) return out
runs sql against the projects database .