Skip to content
Snippets Groups Projects

Adding age to taxa homicidios

Merged Rafael S Castilho requested to merge adding-age-to-taxa-homicidios into development
1 file
+ 24
0
Compare changes
  • Side-by-side
  • Inline
@@ -78,6 +78,30 @@ rqf.addField({
@@ -78,6 +78,30 @@ rqf.addField({
field: 'raca_cor',
field: 'raca_cor',
},
},
})
})
 
 
.addValue({
 
name: 'min_idade',
 
table: 'taxa_homicidios',
 
tableField: 'idade_obito_anos',
 
resultField: 'idade',
 
where: {
 
relation: '>=',
 
type: 'integer',
 
field: 'idade_obito_anos',
 
},
 
})
 
.addValue({
 
name: 'max_idade',
 
table: 'taxa_homicidios',
 
tableField: 'idade_obito_anos',
 
resultField: 'idade',
 
where: {
 
relation: '<=',
 
type: 'integer',
 
field: 'idade_obito_anos',
 
},
 
})
 
router.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
router.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
console.log(req.sql.toString());
console.log(req.sql.toString());
req.sql.field(
req.sql.field(
Loading