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 }}
16 {% for table_name, content_type in tables %}
17 SELECT {{ field_names|join:", " }}, {{ content_type.id }} as content_type \
18 FROM `{{ table_name }}`{% if not loop.last %} UNION \{% endif %}
20 {% if group_columns %}
22 {% for field_name in group_columns %} sql_attr_uint = {{ field_name }}
23 {% endfor %}{% endif %}
25 # DateField's and DateTimeField's
26 {% for field_name in date_columns %} sql_attr_timestamp = {{ field_name }}
27 {% endfor %}{% endif %}
30 {% for field_name in bool_columns %} sql_attr_bool = {{ field_name }}
31 {% endfor %}{% endif %}
32 {% if float_columns %}
33 # FloatField's and DecimalField's
34 {% for field_name in float_columns %} sql_attr_float = {{ field_name }}
35 {% endfor %}{% endif %}