func (p *OrmPlugin) fieldToPQArrayIdent(field *protogen.Field) (i protogen.GoIdent, t string, err error) {
	fieldType := p.fieldType(field)
	switch fieldType {
	case "[]bool":
		return identpqBoolArray, "bool[]", nil
	case "[]float32":
		return identpqFloat32Array, "float[]", nil
	case "[]float64":
		return identpqFloat64Array, "float[]", nil
	case "[]int32":
		return identpqInt32Array, "integer[]", nil
	case "[]int64":
		return identpqInt64Array, "integer[]", nil
	case "[]string":
		return identpqStringArray, "text[]", nil
	default:
		return protogen.GoIdent{}, "", fmt.Errorf("invalid fieldtype")
	}
}
// IsAbleToMakePQArray tells us if the specific field-type can automatically be turned into a PQ array:
IsAbleToMakePQArray tells us if the specific field-type can automatically be turned into a PQ array.
// IsAbleToMakePQArray tells us if the specific field - type can automatically be turned into a PQ array :
func (p *OrmPlugin) fieldToPQArrayIdent(field *protogen.Field) (i protogen.GoIdent, t string, err error) {
	fieldType := p.fieldType(field)
	switch fieldType {
	case "[]bool":
		return identpqBoolArray, "bool[]", nil
	case "[]float32":
		return identpqFloat32Array, "float[]", nil
	case "[]float64":
		return identpqFloat64Array, "float[]", nil
	case "[]int32":
		return identpqInt32Array, "integer[]", nil
	case "[]int64":
		return identpqInt64Array, "integer[]", nil
	case "[]string":
		return identpqStringArray, "text[]", nil
	default:
		return protogen.GoIdent{}, "", fmt.Errorf("invalid fieldtype")
	}
}
func ( p * OrmPlugin ) fieldToPQArrayIdent ( field * protogen . Field ) ( i protogen . GoIdent , t string , err error ) { fieldType := p . fieldType ( field ) switch fieldType { case " " : return identpqBoolArray , " " , nil case " " : return identpqFloat32Array , " " , nil case " " : return identpqFloat64Array , " " , nil case " " : return identpqInt32Array , " " , nil case " " : return identpqInt64Array , " " , nil case " " : return identpqStringArray , " " , nil default : return protogen . GoIdent { } , " " , fmt . Errorf ( " " ) } }
IsAbleToMakePQArray tells us if the specific field-type can automatically be turned into a PQ array.
IsAbleToMakePQArray tells us if the specific field - type can automatically be turned into a PQ array .