MCPcopy
hub / github.com/dbcli/pgcli / format_status

Function format_status

pgcli/main.py:1884–1890  ·  view source on GitHub ↗
(cur, status)

Source from the content-addressed store, hash-verified

1882 return data, headers
1883
1884 def format_status(cur, status):
1885 # redshift does not return rowcount as part of status.
1886 # See https://github.com/dbcli/pgcli/issues/1320
1887 if cur and hasattr(cur, "rowcount") and cur.rowcount is not None:
1888 if status and not status.endswith(str(cur.rowcount)):
1889 status += " %s" % cur.rowcount
1890 return status
1891
1892 output_kwargs = {
1893 "sep_title": "RECORD {n}",

Callers 1

format_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected