'Given some text will call the appropriate method to process
it (eg :meth:`process_sql` or :meth:`process_command`)'

def process_complete_line(self, command):

    try:
        if (len(command.strip()) == 0):
            return
        if (command[0] == '.'):
            self.process_command(command)
        else:
            self.process_sql(command)
    except KeyboardInterrupt:
        self.handle_interrupt()
