'Returns a string of CQL queries that can be used to recreate this table
along with all indexes on it.  The returned string is formatted to
be human readable.'

def export_as_string(self):

    if self._exc_info:
        import traceback
        ret = ('/*\nWarning:    Table    %s.%s    is    incomplete    because    of    an    error    processing    metadata.\n' % (self.keyspace_name, self.name))
        for line in traceback.format_exception(*self._exc_info):
            ret += line
        ret += ('\nApproximate    structure,    for    reference:\n(this    should    not    be    used    to    reproduce    this    schema)\n\n%s\n*/' % self._all_as_cql())
    elif (not self.is_cql_compatible):
        ret = ('/*\nWarning:    Table    %s.%s    omitted    because    it    has    constructs    not    compatible    with    CQL    (was    created    via    legacy    API).\n' % (self.keyspace_name, self.name))
        ret += ('\nApproximate    structure,    for    reference:\n(this    should    not    be    used    to    reproduce    this    schema)\n\n%s\n*/' % self._all_as_cql())
    else:
        ret = self._all_as_cql()
    return ret
