{"id":13552036,"url":"https://github.com/m-rots/starlight","last_synced_at":"2025-12-24T09:47:30.879Z","repository":{"id":119746147,"uuid":"371480314","full_name":"m-rots/starlight","owner":"m-rots","description":"A small collection of tools to help with database normalisation.","archived":false,"fork":false,"pushed_at":"2021-05-28T01:12:54.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-03T22:33:55.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/m-rots.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}},"created_at":"2021-05-27T19:18:07.000Z","updated_at":"2021-05-28T01:12:57.000Z","dependencies_parsed_at":"2024-01-16T18:57:36.065Z","dependency_job_id":"b9fdf0d3-0789-4f43-bdab-13850a0f997f","html_url":"https://github.com/m-rots/starlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-rots%2Fstarlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-rots%2Fstarlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-rots%2Fstarlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-rots%2Fstarlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-rots","download_url":"https://codeload.github.com/m-rots/starlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246925519,"owners_count":20855895,"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-08-01T12:01:57.871Z","updated_at":"2025-12-24T09:47:30.871Z","avatar_url":"https://github.com/m-rots.png","language":"Rust","readme":"# Starlight\n\nA small collection of tools to help with database normalisation.\n\n## Installation\n\n1. Install [Rust](https://www.rust-lang.org/tools/install).\n2. Run `cargo install --git https://github.com/m-rots/starlight`.\n\n## Functional dependencies\n\nFunctional dependencies can be given in any .`txt` file and should be given with the `--file` option.\nThe file should follow this structure:\n\n```\nB, E -\u003e A, F\nF -\u003e A, B\nA, D, G -\u003e C\nA -\u003e E\nD -\u003e A, F\nC, G -\u003e A, D\nB, C -\u003e D, F\nA, E, F -\u003e B, D\n```\n\n## Commands\n\n### Calculate the cover\n\nCalculate the cover of the set of attributes {A, B}.\n\n```bash\nstarlight cover \"A,B\" --file \"deps.txt\"\n```\n\n*`deps.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### Check implication\n\nCheck whether a functional dependency is implied, given a set of functional dependencies.\n\n```bash\nstarlight implication \"B, C -\u003e B\" --file \"implication.txt\"\n```\n\n*`implication.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### Minimal keys\n\nCalculate all the minimal keys for a given set of functional dependencies.\n\n```bash\nstarlight minimal-keys --file \"minimal-keys.txt\"\n```\n\n*`minimal-keys.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### Determinants\n\nCalculate all the determinants for a given set of functional dependencies.\n\n```bash\nstarlight determinants --file \"determinants.txt\"\n```\n\n*`determinants.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### Cononical dependencies\n\nCalculate all the cononical dependencies for a given set of functional dependencies.\n\n```bash\nstarlight cononical --file \"cononical.txt\"\n```\n\n*`cononical.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### BCNF\n\nCheck whether a given set of functional dependencies is in BCNF.\n\n```bash\nstarlight bcnf --file \"bcnf.txt\"\n```\n\n*`bcnf.txt` should contain [Functional Dependencies](#functional-dependencies).*\n\n### 3NF\n\nCheck whether a given set of functional dependencies is in 3NF.\n\n```bash\nstarlight 3nf --file \"3nf.txt\"\n```\n\n*`3nf.txt` should contain [Functional Dependencies](#functional-dependencies).*","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-rots%2Fstarlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-rots%2Fstarlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-rots%2Fstarlight/lists"}