-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-data.go
More file actions
27 lines (26 loc) · 794 Bytes
/
Copy pathupdate-data.go
File metadata and controls
27 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
/*
* To be written:
*
* Connect to SQL Database.
* Fetch list of raw resources.
* Actually fetch all raw resources.
* Keep a copy of old version if any.
* Keep track of which file were updated.
* Fetch list of datas.
* Reformat datas whose raw resources have been updated.
* In case of error, later:
* - notify owner of resource
* - link data to old resource version
*/
/*
* As is, patches chains could rely on other Data, and should
* thus be formatted last. Would remain the matter of a chain of
* patches referencing a chain of patches.
*
* More generally, note that we're recreating yet-another dependency
* manager.
*
* The problem with pre-formatting patch chain is that not only we
* lose the italics, but it complicates web-based data edition.
*/