func NewTagGroups(p P) *E {
	c := []string{
		"tag.tag IS NOT EMPTY",
		"supporter.Email IS NOT EMPTY",
		"supporter.Email LIKE %@%.%",
		//Left join munges Receive_Email, see SCT-969.
		//"supporter.Receive_Email>0",
		"tag_data.database_table_KEY=142",
	}

	e := NewEnv(p)
	e.Conditions = c
	e.Fields = p.T.Tag.Fields
	e.Headers = p.T.Tag.Headers
	e.Keys = p.T.Tag.Keys
	e.CsvFilename = "tag_groups.csv"
	e.TableName = "tag(tag_KEY)tag_data(tag_data.table_key=supporter.supporter_KEY)supporter"
	e.CountTableName = "tag_data"
	e.PrimaryKey = "tag.tag_KEY"
	e.PrimaryKeyMatchFills = "tag"
	return e
}
//NewTagGroups instantiates an environment for copying tag names and Emails
//to CSV files.  The CSV files will be imported as groups in Engage.
NewTagGroups instantiates an environment for copying tag names and Emails
to CSV files.  The CSV files will be imported as groups in Engage.
// NewTagGroups instantiates an environment for copying tag names and Emails // to CSV files . The CSV files will be imported as groups in Engage .
func NewTagGroups(p P) *E {
	c := []string{
		"tag.tag IS NOT EMPTY",
		"supporter.Email IS NOT EMPTY",
		"supporter.Email LIKE %@%.%",
		"tag_data.database_table_KEY=142",
	}
	e := NewEnv(p)
	e.Conditions = c
	e.Fields = p.T.Tag.Fields
	e.Headers = p.T.Tag.Headers
	e.Keys = p.T.Tag.Keys
	e.CsvFilename = "tag_groups.csv"
	e.TableName = "tag(tag_KEY)tag_data(tag_data.table_key=supporter.supporter_KEY)supporter"
	e.CountTableName = "tag_data"
	e.PrimaryKey = "tag.tag_KEY"
	e.PrimaryKeyMatchFills = "tag"
	return e
}
func NewTagGroups ( p P ) * E { c := [ ] string { " " , " " , " " , " " , } e := NewEnv ( p ) e . Conditions = c e . Fields = p . T . Tag . Fields e . Headers = p . T . Tag . Headers e . Keys = p . T . Tag . Keys e . CsvFilename = " " e . TableName = " " e . CountTableName = " " e . PrimaryKey = " " e . PrimaryKeyMatchFills = " " return e }
NewTagGroups instantiates an environment for copying tag names and Emails
to CSV files.
NewTagGroups instantiates an environment for copying tag names and Emails to CSV files .
//Left join munges Receive_Email, see SCT-969. //"supporter.Receive_Email>0",