Mercurial > gemma
comparison pkg/imports/sr.go @ 5564:aaa9e658cabd
Log export: Added marker interface to JobCreators that log messages should be loaded at export.
Removes the hard coded SR export SQL logic.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 12 Feb 2022 18:56:55 +0100 |
parents | 5152b4db40cc |
children | 7e8830c808ba |
comparison
equal
deleted
inserted
replaced
5563:3be1d79ad3a3 | 5564:aaa9e658cabd |
---|---|
104 func (srJobCreator) Description() string { return "sounding results" } | 104 func (srJobCreator) Description() string { return "sounding results" } |
105 | 105 |
106 func (srJobCreator) AutoAccept() bool { return false } | 106 func (srJobCreator) AutoAccept() bool { return false } |
107 | 107 |
108 func (srJobCreator) Create() Job { return new(SoundingResult) } | 108 func (srJobCreator) Create() Job { return new(SoundingResult) } |
109 | |
110 // LoadingLogs ensures that log lines are loaded when import is exported. | |
111 func (srJobCreator) LoadingLogs() bool { return true } | |
109 | 112 |
110 func (srJobCreator) Depends() [2][]string { | 113 func (srJobCreator) Depends() [2][]string { |
111 return [2][]string{ | 114 return [2][]string{ |
112 {"sounding_results", "sounding_results_iso_areas", | 115 {"sounding_results", "sounding_results_iso_areas", |
113 "sounding_results_marking_points"}, | 116 "sounding_results_marking_points"}, |