184 | | |
185 | | |
| 184 | == Example == |
| 185 | |
| 186 | For example, my resource file to convert ''ganymed'' files to SQL tables looks like this: |
| 187 | |
| 188 | {{{ |
| 189 | # Database uri and credentials |
| 190 | #uri=... |
| 191 | |
| 192 | # Regular expression to match columns which shell be ignored |
| 193 | ignore=ThetaSquared\..* |
| 194 | ignore=Ghostbuster\..* |
| 195 | ignore=MHillasSrc\..* |
| 196 | ignore=MHillasSrcAnti\..* |
| 197 | ignore=MSrcPosCam\..* |
| 198 | ignore=MSrcPosAnti\..* |
| 199 | ignore=DataType\..* |
| 200 | ignore=.*\.fUniqueID |
| 201 | ignore=.*\.fBits |
| 202 | ignore=MPointingPos\.fHa |
| 203 | |
| 204 | # Regular expressions to simplify column names in table |
| 205 | map=\.fVal/ |
| 206 | map=MHillas\.f/ |
| 207 | map=MHillasExt\.f/ |
| 208 | map=MPointingPos\.f/ |
| 209 | map=MImagePar\.f/ |
| 210 | map=MNewImagePar\.f/ |
| 211 | map=MTime\.fTime\.f/ |
| 212 | map=MTime\.f/ |
| 213 | |
| 214 | # Overwrites the SQL data type for some columns |
| 215 | sql-type=FileId/INT UNSIGNED |
| 216 | sql-type=EvtNumber/INT UNSIGNED |
| 217 | |
| 218 | # Columsn to be setup as primary keys |
| 219 | primary=FileId |
| 220 | primary=EvtNumber |
| 221 | }}} |
| 222 | |
| 223 | |
| 224 | |