{"id":15347631,"url":"https://github.com/michaelmior/eson","last_synced_at":"2025-08-21T13:31:30.435Z","repository":{"id":48413720,"uuid":"58655312","full_name":"michaelmior/eson","owner":"michaelmior","description":"A normalization tool for denormalized databases","archived":false,"fork":false,"pushed_at":"2024-02-12T10:49:28.000Z","size":251,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-01T08:50:22.407Z","etag":null,"topics":["database","normalization","normalize"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelmior.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}},"created_at":"2016-05-12T15:47:36.000Z","updated_at":"2023-10-31T18:16:23.000Z","dependencies_parsed_at":"2022-08-30T14:31:38.534Z","dependency_job_id":null,"html_url":"https://github.com/michaelmior/eson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmior%2Feson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmior%2Feson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmior%2Feson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmior%2Feson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelmior","download_url":"https://codeload.github.com/michaelmior/eson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230516078,"owners_count":18238346,"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":["database","normalization","normalize"],"created_at":"2024-10-01T11:36:47.739Z","updated_at":"2024-12-19T23:41:29.635Z","avatar_url":"https://github.com/michaelmior.png","language":"Rust","readme":"# eson\n\n[![CI](https://github.com/michaelmior/eson/actions/workflows/ci.yml/badge.svg)](https://github.com/michaelmior/eson/actions/workflows/ci.yml)\n\n`eson` is a work in progress tool to extract a normalized schema from a denormalized relational schema.\nThe hope is that it can be useful for understanding and managing schemas of NoSQL applications.\n\n## Installation\n\nIf you are a Rust user, you can install eson with `cargo install eson`.\nOtherwise, you can download a Linux, Windows, or Mac binary from the [latest release](https://github.com/michaelmior/eson/releases/latest).\n\n## Input format\n\nExample input files are available in the `examples` directory.\nInput files to `eson` are split into four different sections.\nThe first specifies the denormalized input relations in the following format:\n\n```\nusers(*user_id, first_name, last_name)\n```\n\nFields marked with a `*` compose the primary key of that relation.\nThe second section specifies functional dependencies for each table.\nThe table name is given first, followed by the left and right-hand sides of the dependency.\n\n```\nusers user_id -\u003e first_name, last_name\n```\n\nInclusion dependencies are specified in a similar manner as in the examples below:\n\n```\nemployees user_id \u003c= users user_id\nusers user_id \u003c= employees user_id\n```\n\nThere are two shortcuts which can be used in this section.\nFirstly, if the inclusion dependency applies in both directions, then `==` can be used instead of separately specifying two dependencies.\nSecond, if the fields on the right-hand side are the same as those on the left, `...` can be used to replace the fields on the right.\nEmploying both of these shortcuts, the two dependencies above can be written as:\n\n```\nemployees user_id == users ...\n```\n\nThe final section is optional and specifies statistics on tables and columns when using a heuristics-based approach for ordering functional dependencies (the `--use-stats` option).\nStatistics for a relation simply list the total number of entries in the relation.\nStatistics for a column list the number of unique values as well as the maximum length.\n\n```\nusers 1000\nusers user_id 1000 1\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelmior%2Feson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelmior%2Feson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelmior%2Feson/lists"}