Remove duplicate records with multi value fields

This commit is contained in:
Tomaž Jerman
2021-09-17 12:00:14 +02:00
parent 3113257097
commit 69b087549b
5 changed files with 25 additions and 0 deletions
@@ -198,6 +198,11 @@ func (s Store) {{ unexport "fetchFullPageOf" $.Types.Plural }} (
} else {
tryQuery = q
}
{{ if .RDBMS.CustomPreLoadProcessor }}
if tryQuery, err = s.{{ unexport $.Types.Singular }}PreLoadProcessor(tryQuery); err != nil {
return
}
{{- end}}
if limit > 0 {
// fetching + 1 so we know if there are more items
+1
View File
@@ -86,6 +86,7 @@ type (
CustomFilterConverter bool `yaml:"customFilterConverter"`
CustomSortConverter bool `yaml:"customSortConverter"`
CustomCursorCollector bool `yaml:"customCursorCollector"`
CustomPreLoadProcessor bool `yaml:"customPreLoadProcessor"`
CustomPostLoadProcessor bool `yaml:"customPostLoadProcessor"`
CustomEncoder bool `yaml:"customEncoder"`