Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HOTMapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOTMapper
HOTMapper
Commits
99a27b0b
Commit
99a27b0b
authored
5 years ago
by
jvfpw18
Browse files
Options
Downloads
Patches
Plain Diff
Add database_test table_definition, mapping_protocol
parent
536e9735
No related branches found
No related tags found
1 merge request
!13
v1.1.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mapping_protocols/test_database.csv
+0
-1
0 additions, 1 deletion
mapping_protocols/test_database.csv
table_definitions/test_database.json
+16
-8
16 additions, 8 deletions
table_definitions/test_database.json
with
16 additions
and
9 deletions
mapping_protocols/test_database.csv
+
0
−
1
View file @
99a27b0b
...
...
@@ -6,4 +6,3 @@ ESPCD,esp_cd,Código da massa,0,massa_id,INT,esp_cd
TIPOMASS,detipomass,Tipo,0,tipo,VARCHAR(16),detipomass
TIPOADM,dedominial,Tipo Administrativo,0,adm,VARCHAR(16),dedominial
CODADM,,Código Administrativo,0,adm_id,INT,"~CASE WHEN (""dedominial"" = 'Federal') THEN 1 WHEN (""dedominial"" = 'Estadual') THEN 2 END"
CODTIPO,,Código do tipo,0,tipo_id,INT,~CASE WHEN (tipo = 'Natural') THEN 1 WHEN (tipo = 'Artificial') THEN 0 END
This diff is collapsed.
Click to expand it.
table_definitions/test_database.json
+
16
−
8
View file @
99a27b0b
...
...
@@ -2,11 +2,19 @@
"pairing_description"
:
"Tabela utilizada para testes"
,
"data_source"
:
"Massa d' Água Região Hidrográfica Parana - ANA - dados.gov.br"
,
"pk"
:
[
"id"
],
"foreign_keys"
:
[
{
"foreign_keys"
:
[{
"keys"
:
[
"id"
],
"reference_columns"
:
[
"id"
],
"reference_table"
:
"test_reference"
}],
"columns"
:
{
"id"
:
[
"INT"
,
"OBJID"
],
"ano_censo"
:
[
"INT"
,
"ANO"
],
"nome"
:
[
"VARCHAR(64)"
,
"NOMEOG"
],
"esp_id"
:
[
"INT"
,
"ESPCD"
],
"adm"
:
[
"VARCHAR(16)"
,
"TIPOADM"
],
"adm_id"
:
[
"INT"
,
"CODADM"
],
"random_string"
:
[
"VARCHAR(16)"
,
"RDREF"
],
"tipo_id"
:
[
"INT"
,
"CODTIPO"
]
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment