1 source {{ source_name }}
3 type = {{ database_engine }}
4 sql_host = {{ database_host }}
5 sql_user = {{ database_user }}
6 sql_pass = {{ database_password }}
7 sql_db = {{ database_name }}
8 sql_port = {{ database_port }}
13 SELECT {{ field_names|join:", " }} \
15 sql_query_info = SELECT * FROM `{{ table_name }}` WHERE `{{ primary_key }}` = $id
16 {% if group_columns %}
18 {% for field_name in group_columns %} sql_attr_uint = {{ field_name }}
19 {% endfor %}{% endif %}
21 # DateField's and DateTimeField's
22 {% for field_name in date_columns %} sql_attr_timestamp = {{ field_name }}
23 {% endfor %}{% endif %}
26 {% for field_name in bool_columns %} sql_attr_bool = {{ field_name }}
27 {% endfor %}{% endif %}
28 {% if float_columns %}
29 # FloatField's and DecimalField's
30 {% for field_name in float_columns %} sql_attr_float = {{ field_name }}
31 {% endfor %}{% endif %}