{"id":18462690,"url":"https://github.com/extism/extism-pql","last_synced_at":"2025-04-15T19:54:19.201Z","repository":{"id":229092557,"uuid":"764324775","full_name":"extism/extism-pql","owner":"extism","description":"RunReveal's PQL compiler as an Extism plugin.","archived":false,"fork":false,"pushed_at":"2024-02-27T21:52:02.000Z","size":276,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-15T19:54:13.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/runreveal/pql","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/extism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-27T21:51:40.000Z","updated_at":"2024-03-24T13:49:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c0eac0e-f34f-46cc-af22-26c4e7c08795","html_url":"https://github.com/extism/extism-pql","commit_stats":null,"previous_names":["extism/extism-pql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extism%2Fextism-pql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extism%2Fextism-pql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extism%2Fextism-pql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extism%2Fextism-pql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extism","download_url":"https://codeload.github.com/extism/extism-pql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145296,"owners_count":21219966,"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-11-06T09:04:04.743Z","updated_at":"2025-04-15T19:54:19.196Z","avatar_url":"https://github.com/extism.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# PQL as an Extism Plugin\n\n**Run the PQL compiler in 15+ programming languages, using Extism Host SDKs.**\n\nSee more: https://extism.org\n\n## Example\n\nDownload the compiled `main.wasm` module [from Modsurfer](https://modsurfer.dylibso.com/module?hash=85bcfd5198efdbc30c0aab652c4a5de3c0bb0dfcdedf164131ab5f77329dff5c), or build it using [TinyGo](https://tinygo.org/) or Go.\n\n```sh\ntinygo build -o main.wasm -target wasi main.go\n```\n\nNext, try calling it using the [`extism` CLI](https://github.com/extism/cli): \n\n```sh\ncat example.pql | extism call main.wasm compile --stdin --wasi\n\nSELECT * FROM \"StormEvents\" WHERE (\"DamageProperty\" \u003e 5000) AND (coalesce(\"EventType\" = 'Thunderstorm Wind', FALSE)) ORDER BY \"DamageProperty\" DESC NULLS LAST LIMIT 3;\n```\n\n## Using it from other languages\n\nExtism enables many languages to make calls to Wasm functions, and thus PQL could be used to generate SQL from virtually any application. See all the available Host SDKs where you can run PQL using Extism: \n\nhttps://extism.org/docs/concepts/host-sdk\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextism%2Fextism-pql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextism%2Fextism-pql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextism%2Fextism-pql/lists"}