def expand_two_token_sql(self, ev):
        """Return special expansions for 'select tablename<tab>'
        and for insert 'tablename<tab>'"""
        first, tablename = ev.line.split()
        if first == 'select':
            colstr = ', '.join('%s.*' % t for t in tablename.split('**'))
            tablename = self.expand_join_expression(tablename)
            return [MonkeyString(ev.symbol, '%s from %s' %
                    (colstr, tablename))]
        elif first == 'insert':
            ins = self.db.insert_statement(tablename)
            return [MonkeyString(ev.symbol, ins.lstrip('insert'))]
dataset/ETHPy150Open jaysw/ipydb/ipydb/completion.py/IpydbCompleter.expand_two_token_sql/original