-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (44 loc) · 1.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: default
title: Tables
---
{% for schema in site.data.database.schemas %}
<a href="#{{schema.name}}">{{ schema.name }}</a> •
{% endfor %}
{% for schema in site.data.database.schemas %}
<h3>{{ schema.name }} Tables</h3>
{% for table in schema.tables %}
<a href="#{{table.name}}">{{ table.name }}</a> •
{% endfor %}
{% endfor %}
<!-- todo/fix: do not include bullet for first (or last) table -->
{% for schema in site.data.database.schemas %}
<a name="{{ schema.name }}"></a><h2>{{ schema.name }} Tables</h2>
{% for table in schema.tables %}
<a href="#{{table.name}}">{{ table.name }}</a> •
{% endfor %}
{% for table in schema.tables %}
<a name="{{table.name}}"></a><h3>Table {{ table.name }}</h3>
<table>
<tr>
<th>Name</th>
<th>Type</th>
<th></th>
<th>Default</th>
<th>Description</th>
</tr>
{% for column in table.columns %}
<tr>
<td>{{ column.name }}</td>
<td>{{ column.type }}</td>
<td>{% if column.null %}
NOT NULL
{% endif %}
</td>
<td>{{ column.default }}</td>
<td><!-- comments - to be done --></td>
</tr>
{% endfor %}
</table>
{% endfor %}
{% endfor %}