1 source {{ source_name }}
3 type = {{ database_engine }}
6 sql_host = {{ database_host }}
7 sql_user = {{ database_user }}
8 sql_pass = {{ database_password }}
9 sql_db = {{ database_name }}
10 sql_port = {{ database_port }}
15 {% for table_name, content_type in tables %}
16 SELECT {{ field_names|join:", " }}, {{ content_type.id }} as content_type \
17 FROM `{{ table_name }}`{% if not loop.last %} UNION \{% endif %}
19 {% if group_columns %}
21 {% for field_name in group_columns %} sql_group_column = {{ field_name }}
22 {% endfor %}{% endif %}
25 {% for field_name in bool_columns %} sql_group_column = {{ field_name }}
26 {% endfor %}{% endif %}
28 # DateField's and DateTimeField's
29 {% for field_name in date_columns %} sql_date_column = {{ field_name }}
30 {% endfor %}{% endif %}