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

Function _align2string

src/bin/psql/command.c:4075–4112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4073
4074
4075static const char *
4076_align2string(enum printFormat in)
4077{
4078 switch (in)
4079 {
4080 case PRINT_NOTHING:
4081 return "nothing";
4082 break;
4083 case PRINT_ALIGNED:
4084 return "aligned";
4085 break;
4086 case PRINT_ASCIIDOC:
4087 return "asciidoc";
4088 break;
4089 case PRINT_CSV:
4090 return "csv";
4091 break;
4092 case PRINT_HTML:
4093 return "html";
4094 break;
4095 case PRINT_LATEX:
4096 return "latex";
4097 break;
4098 case PRINT_LATEX_LONGTABLE:
4099 return "latex-longtable";
4100 break;
4101 case PRINT_TROFF_MS:
4102 return "troff-ms";
4103 break;
4104 case PRINT_UNALIGNED:
4105 return "unaligned";
4106 break;
4107 case PRINT_WRAPPED:
4108 return "wrapped";
4109 break;
4110 }
4111 return "unknown";
4112}
4113
4114/*
4115 * Parse entered Unicode linestyle. If ok, update *linestyle and return

Callers 2

printPsetInfoFunction · 0.85
pset_value_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected