{"id":22902817,"url":"https://github.com/quackscience/duckdb-extension-webmacro","last_synced_at":"2025-05-08T05:52:50.779Z","repository":{"id":263275149,"uuid":"889873405","full_name":"quackscience/duckdb-extension-webmacro","owner":"quackscience","description":"DuckDB WebMacro: Share and Load your SQL Macros via gists","archived":false,"fork":false,"pushed_at":"2024-12-15T14:28:33.000Z","size":57,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T05:52:35.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://duckdb.org/community_extensions/extensions/webmacro.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quackscience.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T13:15:49.000Z","updated_at":"2025-03-12T15:14:49.000Z","dependencies_parsed_at":"2024-11-18T12:40:29.954Z","dependency_job_id":null,"html_url":"https://github.com/quackscience/duckdb-extension-webmacro","commit_stats":null,"previous_names":["quackscience/duckdb-webxtension","quackscience/duckdb-extension-webmacro"],"tags_count":0,"template":false,"template_full_name":"duckdb/extension-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-webmacro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-webmacro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-webmacro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-webmacro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quackscience","download_url":"https://codeload.github.com/quackscience/duckdb-extension-webmacro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253009850,"owners_count":21839713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T02:19:23.888Z","updated_at":"2025-05-08T05:52:50.773Z","avatar_url":"https://github.com/quackscience.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/user-attachments/assets/46a5c546-7e9b-42c7-87f4-bc8defe674e0\" width=250 /\u003e\n\n# DuckDB WebMacro Extension\n\nThis extension allows loading DuckDB Macros (both scalar and table) from URLs, gists, pasties, etc.\n\n### Installation\n\n```sql\nINSTALL webmacro FROM community;\nLOAD webmacro;\n```\n\n### Usage\nCreate a DuckDB SQL Macro and save it somewhere. Here's an [example](https://gist.githubusercontent.com/lmangani/518215a68e674ac662537d518799b893)\n\nLoad your remote macro onto your system using a URL: \n\n```sql\nSELECT load_macro_from_url('https://quacks.cc/r/search_posts') as res;\n┌─────────────────────────────────────────┐\n│                   res                   │\n│                 varchar                 │\n├─────────────────────────────────────────┤\n│ Successfully loaded macro: search_posts │\n└─────────────────────────────────────────┘\n```\n\nUse your new macro and have fun: \n\n```sql\nD SELECT * FROM search_posts('qxip.bsky.social', text := 'quack');\n┌──────────────────┬──────────────┬──────────────────────┬───┬─────────┬─────────┬───────┬────────┐\n│  author_handle   │ display_name │      post_text       │ … │ replies │ reposts │ likes │ quotes │\n│     varchar      │   varchar    │       varchar        │   │  int64  │  int64  │ int64 │ int64  │\n├──────────────────┼──────────────┼──────────────────────┼───┼─────────┼─────────┼───────┼────────┤\n│ qxip.bsky.social │ qxip         │ This is super cool…  │ … │       1 │       0 │     1 │      0 │\n│ qxip.bsky.social │ qxip         │ github.com/quacksc…  │ … │       0 │       1 │     2 │      0 │\n│ qxip.bsky.social │ qxip         │ #DuckDB works grea…  │ … │       2 │       3 │    24 │      0 │\n│ qxip.bsky.social │ qxip         │ github.com/quacksc…  │ … │       1 │       0 │     0 │      0 │\n│ qxip.bsky.social │ qxip         │ The latest #Quackp…  │ … │       0 │       0 │     2 │      0 │\n│ qxip.bsky.social │ qxip         │ The #DuckDB Ecosys…  │ … │       0 │       0 │     5 │      0 │\n│ qxip.bsky.social │ qxip         │ Ladies and Gents, …  │ … │       1 │       0 │     4 │      0 │\n├──────────────────┴──────────────┴──────────────────────┴───┴─────────┴─────────┴───────┴────────┤\n│ 7 rows                                                                      9 columns (7 shown) │\n└─────────────────────────────────────────────────────────────────────────────────────────────────┘\n```\n\n### Example \n![webmacro_example](https://github.com/user-attachments/assets/740f3092-1595-43b5-8816-7ecbb4702cbd)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackscience%2Fduckdb-extension-webmacro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquackscience%2Fduckdb-extension-webmacro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackscience%2Fduckdb-extension-webmacro/lists"}