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

Function register_new_formatter

pgcli/packages/formatter/sqlformatter.py:63–67  ·  view source on GitHub ↗
(TabularOutputFormatter)

Source from the content-addressed store, hash-verified

61
62
63def register_new_formatter(TabularOutputFormatter):
64 global formatter
65 formatter = TabularOutputFormatter
66 for sql_format in supported_formats:
67 TabularOutputFormatter.register_new_formatter(sql_format, adapter, preprocessors, {"table_format": sql_format})

Callers 3

test_output_sql_insertFunction · 0.90
test_output_sql_updateFunction · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by 2

test_output_sql_insertFunction · 0.72
test_output_sql_updateFunction · 0.72