Commit Graph

5 Commits

Author SHA1 Message Date
Benjamin Dauvergne 5836641e90 wcs-olap: hash formdata and status table names when they are too long 2016-05-21 13:13:08 +02:00
Benjamin Dauvergne 0e2968f36f wcs-olap: do not resolve unassigned functions 2016-05-19 14:37:08 +02:00
Benjamin Dauvergne 9c44bb9711 wcs-olap: build a start schema from data exported by w.c.s. API
Given such an .INI file:

	[https://demarches.triffouilly.fr/]
	orig = bi.triffouilly.fr
	key = 452b8964
	pg_dsn = dbname=publik-bi
	email = bi@entrouvert.com
	schema = triffouilly
	# slugs = recette-technique-ajout-d-un-enfant

It builds a schema named 'triffouilly' in the pre-existing database named 'publik-bi', the schema will contains tables named:

    channel (label varchar)
    role (label varchar)
    category (label varchar)
    form (category, label)
    formdata : parent table of all formdata tables)
        (form, receipt_time, year, month, dow, hour, channel, backoffice, generic_status)
    status (generic statuses: new, in progress & closed
        label

    for each formdef tables named:

       formdata_{formdef.slug}
       status_{formdef.slug}

       for each anonymisable
2016-05-19 11:13:12 +02:00
Benjamin Dauvergne fef4726e92 remove eau potable and assainissement from global stats 2016-04-28 14:51:55 +02:00
Benjamin Dauvergne 331b5e634a start of wcs olap importer 2016-01-09 22:06:12 +01:00