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
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Once installed, the macro functions provided by the extension can be used just l
30
30
31
31
This function extracts the main domain from a URL. For this purpose, the extension will get all public suffixes from the [publicsuffix.org](https://publicsuffix.org/) list and extract the main domain from the URL.
32
32
33
-
The download process of the public suffix list is done automatically when the function called for the first time. After that, the list is stored in the `public_suffix_list` table to avoid downloading it again.
33
+
The download process of the public suffix list is done automatically when the function is called for the first time. After that, the list is stored in the `public_suffix_list` table to avoid downloading it again.
34
34
35
35
```sql
36
36
D SELECT extract_domain('a.example.com') as domain;
@@ -214,7 +214,7 @@ D SELECT extract_subdomain('test.example.com.ac') as dns_record;
214
214
This function returns the [Tranco](https://tranco-list.eu/) rank of a domain. You have a `update_tranco` function to update the Tranco list manually.
215
215
216
216
```sql
217
-
D select update_tranco(true);
217
+
D SELECT update_tranco(true);
218
218
┌─────────────────────────────────────┐
219
219
│ update_tranco(CAST('f'ASBOOLEAN)) │
220
220
│ varchar │
@@ -228,7 +228,7 @@ This function will get the latest Tranco list and save it into the `tranco_list`
228
228
You can ignore the file and force the extension to download the list again by calling the function with `true` as a parameter. If you don't want to download the list again, you can call the function with `false` as a parameter.
229
229
230
230
```sql
231
-
D select update_tranco(false);
231
+
D SELECT update_tranco(false);
232
232
```
233
233
234
234
As the latest Tranco list is for the last day, you can download your list manually and rename it to `tranco_lit_%Y-%m-%d.csv` to use it with the extension too.
@@ -238,15 +238,15 @@ As the latest Tranco list is for the last day, you can download your list manual
238
238
You can use this function to get the ranking of a domain:
239
239
240
240
```sql
241
-
D select get_tranco_rank('microsoft.com') as rank;
241
+
D SELECT get_tranco_rank('microsoft.com') as rank;
242
242
┌───────┐
243
243
│ rank │
244
244
│ int32 │
245
245
├───────┤
246
246
│ 2 │
247
247
└───────┘
248
248
249
-
D select get_tranco_rank('cloudflare.com') as rank;
249
+
D SELECT get_tranco_rank('cloudflare.com') as rank;
250
250
┌───────┐
251
251
│ rank │
252
252
│ int32 │
@@ -257,6 +257,7 @@ D select get_tranco_rank('cloudflare.com') as rank;
257
257
258
258
## Roadmap 🗺️
259
259
260
+
-[ ] Create a version function `SELECT * from netquack_version();`
260
261
-[ ] Create a `TableFunction` for `extract_query_parameters` that return each key-value pair as a row.
0 commit comments