Skip to content

Commit 7af7106

Browse files
committed
add a link to the documentation
1 parent cce526e commit 7af7106

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/official-site/sqlpage/migrations/38_run_sql.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ VALUES (
1616
1717
It is common to want to run the same SQL queries at the beginning of all your pages,
1818
to check if an user is logged in, render a header, etc.
19-
You can create a file called `common_header.sql`, and use the `dynamic` component with the `run_sql` function to include it in all your pages.
19+
You can create a file called `common_header.sql`,
20+
and use the [`dynamic`](documentation.sql?component=dynamic#component) component with the `run_sql` function
21+
to include it in all your pages.
2022
2123
```sql
2224
select ''dynamic'' as component, sqlpage.run_sql(''common_header.sql'') as properties;

0 commit comments

Comments
 (0)