@@ -53,9 +53,62 @@ Return object with properties:
5353| ` getValuesArray ` | Method to get values as array.<br >Exists only if ` separatedValues = true ` . |
5454| ` getValuesObject ` | Method to get values as object.<br >Exists only if ` separatedValues = true ` . |
5555
56- ## Queries
56+ ## Query types
5757
5858### select
5959
60- __ template: __ ` {with} {withRecursive} select {distinct} {fields} from {from} {table} {query} {select} {expression} {alias} {join} {condition} {group} {sort} {limit} {offset} `
60+ Template for select queries.
6161
62+ __ template:__ ` {with} {withRecursive} select {distinct} {fields} from {table} {query} {select} {expression} {alias} {join} {condition} {group} {sort} {limit} {offset} `
63+
64+ ### insert
65+
66+ Template for insert queries.
67+
68+ __ template:__ ` {with} {withRecursive} insert {or} into {table} {values} {condition} {returning} `
69+
70+ ### update
71+
72+ Template for update queries.
73+
74+ __ template:__ ` {with} {withRecursive} update {or} {table} {modifier} {condition} {returning} `
75+
76+ ### remove
77+
78+ Template for remove queries.
79+
80+ __ template:__ ` {with} {withRecursive} delete from {table} {condition} {returning} `
81+
82+ ### union / intersect / except
83+
84+ Template for union, intersect and except queries.
85+
86+ __ template:__ ` {with} {withRecursive} {queries} {sort} {limit} {offset} `
87+
88+ ### Auxiliary templates
89+
90+ Templates below are used inside of blocks:
91+
92+ ### subQuery
93+
94+ Template is used to build subqueries.
95+
96+ __ template:__ ` ({queryBody}) `
97+
98+ ### insertValues
99+
100+ Template is used by ` values ` block.
101+
102+ __ template:__ ` ({fields}) values {fieldValues} `
103+
104+ ### joinItem
105+
106+ Template is used by ` join ` block to build each item.
107+
108+ __ template:__ ` {type} join {table} {query} {select} {expression} {alias} {on} `
109+
110+ ### withItem
111+
112+ Template is used by ` with ` and ` withRecursive ` blocks to build each item.
113+
114+ __ template:__ ` {name} {fields} as {query} {select} {expression} `
0 commit comments