Open petrus-v opened 4 years ago
I talked a bit with jssuzanne and he told me to look at your work. I have a project to do which the purpose is to query the db, export data in a specific format (csv) and finally send this file on a ftp server. I think that this could work for me, coupled with the anyblok-background-tasks repository.
For my specific case, the export won't be on one model only but it will be something custom because i have to generate a CSV file for SageX3. But it shouldn't be a problem.
Did you started something already ?
No I haven't start anything on this topic only this PR https://github.com/AnyBlok/anyblok-background-tasks/pull/10
If you plan to use anyblok-background-tasks there is still some works to achieve cf https://github.com/AnyBlok/anyblok-background-tasks/milestone/1
I'm not sure to understand your use case and if this mixins would be benefit in your case do you needs to track exported record with a last_exported_date field ?
l'idée est de fournir un outils plus légé que dans la proposition #6 pour faciliter l'export de données pour un modèle donné
Création de la mixin
Mixins.ExportRecords
qui apport:last_exported_date
si non null date du dernier exportget_records_to_export() -> Query