{"id":19529046,"url":"https://github.com/calculationcollective/sqlcalculator","last_synced_at":"2026-06-19T14:31:40.139Z","repository":{"id":72470683,"uuid":"600201001","full_name":"CalculationCollective/SQLCalculator","owner":"CalculationCollective","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-10T21:13:48.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T02:41:28.646Z","etag":null,"topics":["calculator","sql","sqlite"],"latest_commit_sha":null,"homepage":"","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CalculationCollective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-02-10T20:14:16.000Z","updated_at":"2023-02-10T21:24:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"71593f8a-2a8f-4838-8c7c-4bc93ed084fc","html_url":"https://github.com/CalculationCollective/SQLCalculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CalculationCollective/SQLCalculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalculationCollective%2FSQLCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalculationCollective%2FSQLCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalculationCollective%2FSQLCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalculationCollective%2FSQLCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CalculationCollective","download_url":"https://codeload.github.com/CalculationCollective/SQLCalculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalculationCollective%2FSQLCalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34536274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculator","sql","sqlite"],"created_at":"2024-11-11T01:21:38.762Z","updated_at":"2026-06-19T14:31:40.112Z","avatar_url":"https://github.com/CalculationCollective.png","language":"SQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLCalculator\n\n- [SQLCalculator](#aqlcalculator)\n    - [Introduction](#introduction)\n    - [Installing SQLite](#installing-sqlite)\n    - [Execute the calculator](#execute-the-calculator)\n    - [Use the calculator](#use-the-calculator)\n\n## Introduction\nThis SQL calculator was created for the SQLite dialect and works by utilising triggers.\n\n## Installing SQLite\nYou can download precompiled versions of sqlite from the [official website](https://www.sqlite.org/download.html).\n\n## Execute the calculator\nTo set-up the calculator you will need to run the sql script (`SQLCalculator.sql`) on an `.sqlite` file.\n```bash\nsqlite3 database_file.sqlite # open your sqlite database\n.read SQLCalculator.sql # inside the sqlite terminal you can run the sql script\n```\n\n## Use the calculator\nThe calculator is used via the INSERT command. First open your `.sqlite` file in sqlite. Then enter the INSERT command. After that you can user a SELECT statement to view the result of the calculation.\n```bash\nsqlite3 database_file.sqlite # open your sqlite database.\nINSERT INTO Calculations(Num1, CalculationType, Num2) VALUES (1, '+', 1); # insert your calculation\nSELECT Result FROM Calculations WHERE Id = (SELECT MAX(Id) FROM Calculations); # view the result of your calculation (result will be 2.0 for this calculation)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalculationcollective%2Fsqlcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalculationcollective%2Fsqlcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalculationcollective%2Fsqlcalculator/lists"}