{"id":16633066,"url":"https://github.com/yazaldefilimone/spipe","last_synced_at":"2025-04-30T17:43:09.792Z","repository":{"id":255418303,"uuid":"847301578","full_name":"yazaldefilimone/spipe","owner":"yazaldefilimone","description":"A pipe-powered SQL compiler","archived":false,"fork":false,"pushed_at":"2024-09-02T14:51:10.000Z","size":134,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T20:56:33.815Z","etag":null,"topics":["compiler","rust","sql"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yazaldefilimone.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-08-25T12:42:45.000Z","updated_at":"2025-04-01T13:19:11.000Z","dependencies_parsed_at":"2024-08-29T22:20:59.673Z","dependency_job_id":"ade776ab-2537-4b79-8d54-76c834edc866","html_url":"https://github.com/yazaldefilimone/spipe","commit_stats":null,"previous_names":["yazaldefilimone/sql-compiler","yazaldefilimone/spipe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fspipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fspipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fspipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazaldefilimone%2Fspipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yazaldefilimone","download_url":"https://codeload.github.com/yazaldefilimone/spipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251753379,"owners_count":21638293,"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":["compiler","rust","sql"],"created_at":"2024-10-12T05:11:54.355Z","updated_at":"2025-04-30T17:43:09.762Z","avatar_url":"https://github.com/yazaldefilimone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003csamp\u003e\n\nThis compiler simplifies complex SQL with pipe syntax, enabling step-by-step query building that auto-generates native SQL. It includes a checker for readability, performance tips, and diagnostics to catch errors, making SQL writing and maintenance effortless.\n\n\nExample:\n\nwith pipe syntax:\n\n```sql\nFROM orders\n|\u003e JOIN customers ON orders.customer_id = customers.customer_id\n|\u003e WHERE orders.total_amount \u003e (SELECT AVG(total_amount) FROM orders)\n|\u003e AGGREGATE COUNT(order_id) AS num_orders\nGROUP BY customers.customer_name;\n```\n\nto native SQL:\n\n```sql\nSELECT COUNT(orders.order_id) AS num_orders\nFROM orders\nJOIN customers ON orders.customer_id = customers.customer_id\nWHERE orders.total_amount \u003e (SELECT AVG(total_amount) FROM orders)\nGROUP BY customers.customer_name;\n```\n\nwith pipe syntax:\n\n```sql\nFROM employees\n|\u003e JOIN departments ON employees.dept_id = departments.id\n|\u003e WHERE employees.salary \u003e 50000\n|\u003e ORDER BY employees.salary DESC\nLIMIT 5;\n```\n\nto native SQL:\n\n```sql\nSELECT *\nFROM employees\nJOIN departments ON employees.dept_id = departments.id\nWHERE employees.salary \u003e 50000\nORDER BY employees.salary DESC\nLIMIT 5;\n\n```\n\n\n\nchecker diagnostics exemple:\n\n![example](./example.png)\n\n\n\n----\n\n[paper](https://research.google/pubs/sql-has-problems-we-can-fix-them-pipe-syntax-in-sql/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazaldefilimone%2Fspipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyazaldefilimone%2Fspipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazaldefilimone%2Fspipe/lists"}