We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b2d135 commit e87da37Copy full SHA for e87da37
1 file changed
doc/User_Guide.md
@@ -205,15 +205,17 @@ CREATE FUNCTION local.lisa_count_loans(
205
end_date date DEFAULT '2050-01-01')
206
RETURNS TABLE(
207
item_id text,
208
- loan_count integer) AS
209
-$$
+ loan_count integer)
+AS $$
210
SELECT item_id,
211
count(*) AS loan_count
212
FROM circulation_loans
213
WHERE start_date <= loan_date AND loan_date < end_date
214
GROUP BY item_id
215
$$
216
-LANGUAGE SQL;
+LANGUAGE SQL
217
+STABLE
218
+PARALLEL SAFE;
219
```
220
221
Now the function can be called with different arguments to generate
0 commit comments