Skip to content

Commit

Permalink
adding more queries
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciacatandi committed May 3, 2024
1 parent 1873058 commit c6c9b7b
Showing 1 changed file with 125 additions and 0 deletions.
125 changes: 125 additions & 0 deletions pipelines/sislic/dump_db_sislic/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,131 @@
FROM SMU_PRD.dbo.tbLIC_RestricoesLicencas
""",
},
"restricao_fase": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
Cod_restricao,
Cod_fase,
desc_restricao,
Tipo_Compl,
Compl,
ATIVO
FROM SMU_PRD.dbo.tbLic_restricoes
""",
},
"fase_obra": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
Cod_Fase,
Abrev_Fase,
OrdemImp
FROM SMU_PRD.dbo.tbLic_FasesObras
""",
},
"tipo_edificacao": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
Cod_TpEdificacao,
Desc_TpEdificacao
FROM SMU_PRD.dbo.tbLic_TiposEdificacoes
""",
},
"compl_1_tipo_edificacao": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
Cod_TpEdificacao,
Cod_Compl_TpEdificacao,
Compl_TpEdificacao
FROM SMU_PRD.dbo.tbLic_ComplTpEdificacoes1
""",
},
"compl_2_tipo_edificacao": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
cod_Edif,
cod_compl_TpEdificacao,
cod_compl_tpEdificacao2,
Compl2
FROM SMU_PRD.dbo.tbLic_ComplTpEdificacoes2
""",
},
"tipo_licenca_acao_requerente": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
COD_LIC,
DESCR_LIC,
TAB_AUX_CATEGORIA,
TAB_AUX_AREA,
GRATIS,
COMPL,
Compl_Obrigatorio
FROM SMU_PRD.dbo.tbLic_DescricoesLicencas
""",
},
"compl_tipo_licenca_acao_requerente": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
COD_LIC,
COD_COMPL_LIC,
COMPL,
GRATIS
FROM SMU_PRD.dbo.tbLic_ComplementosTpLicencas
""",
},
"tipo_licenca_acao_prefeitura_1": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
COD_TIPO_LIC,
DESCR_TIPO_LIC
FROM SMU_PRD.dbo.tbLic_TiposLicencas
""",
},
"tipo_licenca_acao_prefeitura_2": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
cod_classe,
descr_classe
FROM SMU_PRD.dbo.tbLIC_ClassesLicencas
""",
},
"tipo_unidade": {
"materialize_after_dump": True,
"materialization_mode": "prod",
"dump_mode": "overwrite",
"execute_query": """
SELECT
Desc_Unidade,
Desc_unidade_Plural
FROM SMU_PRD.dbo.tbLIC_Unidades
""",
},
}

sislic_clocks = generate_dump_db_schedules(
Expand Down

0 comments on commit c6c9b7b

Please sign in to comment.