{"id":19734407,"url":"https://github.com/slott56/functional-sql","last_synced_at":"2025-04-30T04:30:44.042Z","repository":{"id":246989483,"uuid":"824762842","full_name":"slott56/functional-SQL","owner":"slott56","description":"An approach to writing function Python that parallels the concepts underlying the SQL select","archived":false,"fork":false,"pushed_at":"2024-08-26T15:56:42.000Z","size":1144,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-26T18:50:51.333Z","etag":null,"topics":["function","programminmg","sql"],"latest_commit_sha":null,"homepage":"https://slott56.github.io/functional-SQL/","language":"Python","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/slott56.png","metadata":{"files":{"readme":"README.rst","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-07-05T22:16:44.000Z","updated_at":"2024-08-26T15:56:45.000Z","dependencies_parsed_at":"2024-08-09T15:13:24.368Z","dependency_job_id":"4f70d3cd-6e63-42b9-b470-63d44b97c8af","html_url":"https://github.com/slott56/functional-SQL","commit_stats":null,"previous_names":["slott56/functional-sql"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slott56%2Ffunctional-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slott56%2Ffunctional-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slott56%2Ffunctional-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slott56%2Ffunctional-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slott56","download_url":"https://codeload.github.com/slott56/functional-SQL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224197950,"owners_count":17271999,"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":["function","programminmg","sql"],"created_at":"2024-11-12T00:36:47.786Z","updated_at":"2024-11-12T00:36:48.285Z","avatar_url":"https://github.com/slott56.png","language":"Python","readme":"###############\nfunctional-SQL\n###############\n\n|Python| |ruff-linter| |pyright-checker| |license| |sphinx|\n\nA library to help build SQL-like functionality without the overhead of a database.\n\nSee https://slott56.github.io/functional-SQL/_build/html/index.html for the documentation.\n\n\nSome SQL\n\n..  code-block:: SQL\n\n    SELECT n.name, v.c2\n    FROM names_table n, values_table v\n    WHERE n.code = v.c1\n\nSome Python that does the same thing.\n\n..  code-block:: python\n\n    Select(name=lambda cr: cr.n.name, value=lambda cr: cr.v.c2)\n    .from_(n=names_table, v=values_table)\n    .where(lambda cr: cr.n.code == cr.v.c1)\n\nYes. The Python is longer. Yes it has ``lambda cr: cr.`` scattered around. The Python produces the same results as the SQL query, using essentially the same algorithm.\nYou can write Python using the SQL algorithm design pattern.\nAnd without using a database.\n\n\n..  |Python| image:: https://img.shields.io/badge/Python-3.12-3776AB.svg?style=flat\u0026logo=python\u0026logoColor=white\n    :target: https://www.python.org\n\n..  |ruff-linter| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n\n..  |pyright-checker| image:: https://microsoft.github.io/pyright/img/pyright_badge.svg\n    :target: https://microsoft.github.io/pyright/\n\n..  |license| image:: https://img.shields.io/badge/License-Apache_2.0-blue.svg\n    :target: https://opensource.org/licenses/Apache-2.0\n\n..  |sphinx| image:: https://img.shields.io/badge/Sphinx-000?logo=sphinx\u0026logoColor=fff\n    :target: docs\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslott56%2Ffunctional-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslott56%2Ffunctional-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslott56%2Ffunctional-sql/lists"}