for

for is a loop to iterate tables, views, procedures, vtables, columns etc. You can generate your code for each entity in the database by using this loop.

Syntax

for((([variable]:[predefined_collection]))) {{{

}}}

Example 1
Assume that we use a database with tables: TableA, TableB, TableC, …, TableZ. We can generate all table names with the following piece of code:

Table Names:

for(((item:tables))) {{{
[[[item.name]]]
}}}

Output 1

Table Names :
TableA
TableB
TableC

TableZ

Example 2
Assume that we use a database with views : ViewA, ViewB, ViewC, …, ViewZ. By using the following piece of code, we can generate classes for every view:

for(((myView:views))) {{{
public class [[[myView.name]]] {}
}}}

Output 2

public class ViewA {}
public class ViewB {}
public class ViewC {}

public class ViewZ {}