MCPcopy Create free account
hub / github.com/apache/cloudberry / exec_command_html

Function exec_command_html

src/bin/psql/command.c:1579–1593  ·  view source on GitHub ↗

* \H and \html -- toggle HTML formatting */

Source from the content-addressed store, hash-verified

1577 * \H and \html -- toggle HTML formatting
1578 */
1579static backslashResult
1580exec_command_html(PsqlScanState scan_state, bool active_branch)
1581{
1582 bool success = true;
1583
1584 if (active_branch)
1585 {
1586 if (pset.popt.topt.format != PRINT_HTML)
1587 success = do_pset("format", "html", &pset.popt, pset.quiet);
1588 else
1589 success = do_pset("format", "aligned", &pset.popt, pset.quiet);
1590 }
1591
1592 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
1593}
1594
1595/*
1596 * \i and \ir -- include a file

Callers 1

exec_commandFunction · 0.85

Calls 1

do_psetFunction · 0.85

Tested by

no test coverage detected