code: 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:
              # If we can't produce this table with CQL, comment inline
              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()
          elif self.virtual:
              ret = ('/*\nWarning: Table {ks}.{tab} is a virtual table and cannot be recreated with CQL.\n'
                     'Structure, for reference:\n'
                     '{cql}\n*/').format(ks=self.keyspace_name, tab=self.name, cql=self._all_as_cql())
  
          else:
              ret = self._all_as_cql()
  
          return ret
docs: 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.