text: CREATE OR REPLACE FUNCTION get_all_dashboards()
   RETURNS SETOF dashboard AS
  $BODY$
  BEGIN
  
      RETURN QUERY
          SELECT d_id,
                 d_name,
                 d_created_by,
                 d_last_modified,
                 d_last_modified_by,
                 d_widget_configuration::text,
                 d_alert_teams,
                 d_view_mode,
                 d_edit_option,
                 d_shared_teams,
                 d_tags
            FROM zzm_data.dashboard;
  END
  $BODY$
  LANGUAGE 'plpgsql' VOLATILE SECURITY DEFINER
  COST 100;
  