MCPcopy Create free account
hub / github.com/apache/impala / set_prompt

Method set_prompt

shell/impala_shell/impala_shell.py:776–778  ·  view source on GitHub ↗
(self, db)

Source from the content-addressed store, hash-verified

774 return command.lower() in ImpalaShell.QUIT_COMMANDS
775
776 def set_prompt(self, db):
777 self.prompt = ImpalaShell.PROMPT_FORMAT.format(
778 host=self.impalad[0], port=self.impalad[1], db=db)
779
780 def precmd(self, args):
781 # In Python2, 'args' could in str type if it's the original input line, or in unicode

Callers 2

do_connectMethod · 0.95
do_useMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected