A Jailer Data Model file
is stored
in an extended CSV file format ('Comma
Separated Values')
- the separating character is ';'
- empty lines are ignored
- Lines starting with '#' are comments and will
be ignored
For each table the following information is required:
Example:
Name |
upsert |
primary
key colum 1 |
primary
key column 2 |
primary
key column 2 |
... |
Empty |
Author |
DEPARTMENT |
Y
|
DEPTNO INTEGER |
|
|
|
|
IBM DB2
JDBC Driver |
EMPLOYEE |
N |
EMPNO INTEGER |
|
|
|
|
IBM DB2
JDBC Driver |
SALARYGRADE |
Y
|
GRADE INTEGER |
LOSAL INTEGER |
HISAL INTEGER |
|
|
IBM DB2
JDBC Driver |
Contains column info for each table.
Example:
Name |
Colum
1 |
Column
2 |
Column
2 |
... |
Empty |
Author |
DEPARTMENT |
DEPTNO INTEGER |
NAME VARCHAR(14) null |
LOCATION VARCHAR(13) null |
|
|
IBM DB2
JDBC Driver |
EMPLOYEE |
EMPNO INTEGER |
NAME VARCHAR(10) null |
JOB VARCHAR(9) null |
|
|
IBM DB2
JDBC Driver |
SALARYGRADE |
GRADE INTEGER |
LOSAL INTEGER |
HISAL INTEGER |
|
|
IBM DB2
JDBC Driver |
For each table the following information is required:
Example:
Table A |
Table
B |
first-insert |
Cardinality
|
Join-Condition |
Name |
Author |
DEPARTMENT |
EMPLOYEE |
A
|
1:n
|
A.DEPTNO=B.DEPTNO |
DEPARTMENT
|
JDBC
Driver |
EMPLOYEE |
EMPLOYEE |
A |
1:n
|
A.EMPNO=B.BOSS |
SUBORDINATE |
JDBC
Driver |
EMPLOYEE |
SALARYGRADE |
|
n:1
|
A.SALARY
BETWEEN B.LOSAL AND B.HISAL |
SALARY
|
Wisser
|
|