You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
*`node.safe_psql(database, query)` - same as`psql()` except that it returns only`stdout`. If an error occures during the execution, an exception will be thrown.
101
-
*`node.execute(database, query)` - connects to postgresql server using`psycopg2` or`pg8000` library (depends on which is installed in your system) and returns two-dimensional array with data.
101
+
*`node.execute(database, query, username=None, commit=True)` - connects to postgresql server using`psycopg2` or`pg8000` library (depends on which is installed in your system) and returns two-dimensional array with data.
102
102
*`node.connect(database='postgres')` - returns connection wrapper (`NodeConnection`) capable of running several queries within a single transaction.
103
103
104
104
The last one is the most powerful: you can use`begin(isolation_level)`,`commit()` and`rollback()`: