You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,9 +12,11 @@ CREATE TABLE IF NOT EXISTS sqlpage_function_parameters (
11
12
"description_md"TEXT,
12
13
"type"TEXT
13
14
);
14
-
INSERT INTO sqlpage_functions ("name", "icon", "description_md")
15
+
INSERT INTO sqlpage_functions ("name", "return_type", "introduced_in_version", "icon", "description_md")
15
16
VALUES (
16
17
'cookie',
18
+
'TEXT',
19
+
'0.7.1',
17
20
'cookie',
18
21
'Reads a [cookie](https://en.wikipedia.org/wiki/HTTP_cookie) with the given name from the request.
19
22
Returns the value of the cookie as text, or NULL if the cookie is not present.
@@ -42,9 +45,10 @@ VALUES (
42
45
'The name of the cookie to read.',
43
46
'TEXT'
44
47
);
45
-
INSERT INTO sqlpage_functions ("name", "icon", "description_md")
48
+
INSERT INTO sqlpage_functions ("name", "introduced_in_version", "icon", "description_md")
46
49
VALUES (
47
50
'header',
51
+
'0.7.2',
48
52
'heading',
49
53
'Reads a [header](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields) with the given name from the request.
50
54
Returns the value of the header as text, or NULL if the header is not present.
@@ -72,9 +76,11 @@ VALUES (
72
76
'The name of the HTTP header to read.',
73
77
'TEXT'
74
78
);
75
-
INSERT INTO sqlpage_functions ("name", "icon", "description_md")
79
+
INSERT INTO sqlpage_functions ("name", "return_type", "introduced_in_version", "icon", "description_md")
76
80
VALUES (
77
81
'basic_auth_username',
82
+
'TEXT',
83
+
'0.7.2',
78
84
'user',
79
85
'Returns the username from the [Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) header of the request.
80
86
If the header is not present, this function raises an authorization error that will prompt the user to enter their credentials.
@@ -91,6 +97,8 @@ SELECT ''authentication'' AS component,
91
97
),
92
98
(
93
99
'basic_auth_password',
100
+
'TEXT',
101
+
'0.7.2',
94
102
'key',
95
103
'Returns the password from the [Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) header of the request.
96
104
If the header is not present, this function raises an authorization error that will prompt the user to enter their credentials.
@@ -104,9 +112,10 @@ SELECT ''authentication'' AS component,
104
112
```
105
113
'
106
114
);
107
-
INSERT INTO sqlpage_functions ("name", "icon", "description_md")
115
+
INSERT INTO sqlpage_functions ("name", "introduced_in_version", "icon", "description_md")
108
116
VALUES (
109
117
'hash_password',
118
+
'0.7.2',
110
119
'spy',
111
120
'Hashes a password using the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm.
112
121
The resulting hash can be stored in the database and then used with the [authentication component](documentation.sql?component=authentication#component).
0 commit comments