Added pgsql command for executing raw SQL.

development
Shawn Davis 5 months ago
parent 9c24c8b5d1
commit b8e0c11ceb
  1. 3
      scripttease/lib/commands/pgsql.py

@ -57,7 +57,8 @@ def pgsql(command, *args, excluded_kwargs=None, host="localhost", password=None,
a = list()
if password is not None:
# Password may be None or an empty string.
if password:
a.append('export PGPASSWORD="%s" &&' % password)
a.append(command)

Loading…
Cancel
Save