code: def get_view_definition(self, connection, view_name, schema=None, **kw):
          
          view = self._get_redshift_relation(connection, view_name, schema, **kw)
          return sa.text(view.view_definition)
docs: Return view definition.
          Given a :class:`.Connection`, a string `view_name`,
          and an optional string `schema`, return the view definition.
  
          Overrides interface
          :meth:`~sqlalchemy.engine.interfaces.Dialect.get_view_definition`.