Skip to content

Commit 5244252

Browse files
committed
Updated db readme
1 parent 9ba2a7f commit 5244252

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
*.propath
33
*.r
44
.settings/
5-
db/
5+
db/xrefdb-empty.zip
6+
db/xrefdb.db
7+
db/xrefdb.lk
8+
db/xrefdb.d1
9+
db/xrefdb.b1
10+
db/xrefdb.lic
11+
db/xrefdb.lg
12+
db/xrefdb_7.d1
13+
db/xrefdb_8.d1
614
html/
715
palcos/
816
src.debug/

db/readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Tables in the db
2+
3+
| Table | Description |
4+
| --- | ---- |
5+
| xref_XmlFile | XML files with xref info |
6+
| xref_ObjectType | Type of xref object (file, field etc) |
7+
| xref_RelationType | Type of relation between 2 xref objects |
8+
| xref_Object | Element in the XREF file (programs, fields, includes etc) |
9+
| xref_Relation | Relation between 2 xref objects |
10+
11+
After compiling, the XML files are read into the xref_XmlFile table and then processed. All references in the XML file are then stored in xref_Relation. When saving this, the master tables xref_ObjectType, xref_RelationType and xref_Object are updated if needed.
12+
13+
When all is loaded, you should end up with 1 xref_XmlFile record for each .w, .p or .cls file, a handful of object- and relation types, a couple of thousand xref_Object records and a whole lot of xref_Relation records. Depending on your application this can easily run into hundreds of thousands. Typical application:
14+
| Table | Nr of records |
15+
| --- | ----: |
16+
| xref_XmlFile | 1382 |
17+
| xref_ObjectType | 14 |
18+
| xref_RelationType | 34 |
19+
| xref_Object | 9.423 |
20+
| xref_Relation | 185.322 |

0 commit comments

Comments
 (0)