code: func (s *CreateContinuousQueryStatement) String() string {
  	var buf bytes.Buffer
  	fmt.Fprintf(&buf, "CREATE CONTINUOUS QUERY %s ON %s ", QuoteIdent(s.Name), QuoteIdent(s.Database))
  
  	if s.ResampleEvery > 0 || s.ResampleFor > 0 {
  		buf.WriteString("RESAMPLE ")
  		if s.ResampleEvery > 0 {
  			fmt.Fprintf(&buf, "EVERY %s ", FormatDuration(s.ResampleEvery))
  		}
  		if s.ResampleFor > 0 {
  			fmt.Fprintf(&buf, "FOR %s ", FormatDuration(s.ResampleFor))
  		}
  	}
  	fmt.Fprintf(&buf, "BEGIN %s END", s.Source.String())
  	return buf.String()
  }
docs: // String returns a string representation of the statement.