add selector functionality to generate script

This commit is contained in:
2021-08-28 19:00:49 +02:00
parent 4ec28e6064
commit a63076c07c
4 changed files with 57 additions and 19 deletions

View File

@ -7,6 +7,8 @@ SELECT
id
,description
FROM account_t
ORDER BY
description
""",
"params": ()
}
@ -42,6 +44,9 @@ SELECT
,iban
,account
FROM tenant_t
ORDER BY
lastname
,firstname
""",
"params": ()
}
@ -80,6 +85,8 @@ SELECT
,zip
,city
FROM premise_t
ORDER BY
description
""",
"params": ()
}
@ -110,6 +117,9 @@ SELECT
,area
,flat_no
FROM flat_t
ORDER BY
premise
,description
""",
"params": ()
}
@ -140,6 +150,9 @@ SELECT
,startdate
,enddate
FROM overhead_advance_t
ORDER BY
description
,startdate
""",
"params": ()
}
@ -168,6 +181,9 @@ SELECT
,overhead_advance
,flat
FROM overhead_advance_flat_mapping_t
ORDER BY
overhead_advance
,flat
""",
"params": ()
}
@ -194,6 +210,9 @@ SELECT
,description
,premise
FROM parking_t
ORDER BY
premise
,description
""",
"params": ()
}
@ -220,6 +239,9 @@ SELECT
,description
,premise
FROM commercial_premise_t
ORDER BY
premise
,description
""",
"params": ()
}
@ -251,6 +273,9 @@ SELECT
,startdate
,enddate
FROM tenancy_t
ORDER BY
description
,startdate
""",
"params": ()
}
@ -285,6 +310,9 @@ SELECT
,startdate
,enddate
FROM fee_t
ORDER BY
description
,startdate
""",
"params": ()
}

View File

@ -10,6 +10,14 @@ SELECT
,$column.name
#end for
FROM ${table.name}_t
#if $table.selectors
ORDER BY
#set $sep = ""
#for $selector in $table.selectors
$sep$selector
#set $sep = ","
#end for
#end if
""",
"params": ()
}