{"id":20549139,"url":"https://github.com/neorandom/sql-pseudocode-transpiler","last_synced_at":"2025-10-25T16:03:46.554Z","repository":{"id":261764086,"uuid":"883525159","full_name":"neoRandom/sql-pseudocode-transpiler","owner":"neoRandom","description":"Transpile a custom SQL pseudocode into multiple things.","archived":false,"fork":false,"pushed_at":"2024-11-14T04:13:03.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T05:32:23.209Z","etag":null,"topics":["json","openpyxl","pandas","pandas-dataframe","pandas-python","pseudocode","sql","ssms"],"latest_commit_sha":null,"homepage":"","language":"Python","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/neoRandom.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T05:45:21.000Z","updated_at":"2024-11-14T04:13:06.000Z","dependencies_parsed_at":"2025-01-16T16:37:50.204Z","dependency_job_id":"f0cfecfe-097a-4199-91c3-68d5e4eb4b66","html_url":"https://github.com/neoRandom/sql-pseudocode-transpiler","commit_stats":null,"previous_names":["neorandom/sql-pseudocode-transpiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neoRandom/sql-pseudocode-transpiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoRandom%2Fsql-pseudocode-transpiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoRandom%2Fsql-pseudocode-transpiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoRandom%2Fsql-pseudocode-transpiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoRandom%2Fsql-pseudocode-transpiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neoRandom","download_url":"https://codeload.github.com/neoRandom/sql-pseudocode-transpiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoRandom%2Fsql-pseudocode-transpiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280979462,"owners_count":26423964,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"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":["json","openpyxl","pandas","pandas-dataframe","pandas-python","pseudocode","sql","ssms"],"created_at":"2024-11-16T02:16:29.634Z","updated_at":"2025-10-25T16:03:46.526Z","avatar_url":"https://github.com/neoRandom.png","language":"Python","readme":"# Pseudocode Translator\n\nMade by myself to myself.\n\n\u003cbr/\u003e\n\n## How it works\n\nThe software receives a path to the pseudocode file, reads the file, parse it into JSON and then turns it into SSMS SQL code and an Excel Data Dictionary.\n\n\u003cbr/\u003e\n\n## Functionalities\n\n- [x] Parse pseudocode into JSON\n- [x] Generate SQL code\n- [ ] Generate Data Dictionary\n  - [x] In .xlsx (Excel Spreadsheet)\n  - [ ] In .csv (Comma-Separated Values)\n  - [ ] In .ods (OpenDocument Spreadsheet)\n- [ ] Generate ERD (Entity-Relationship Diagram)\n  - [ ] With just the entities\n  - [ ] With the complete SQL in a table format\n\n\u003cbr/\u003e\n\n## Pseudocode Structure\n\n\u003e If this is too hard to read, see the [example](#example) and the [notes and rules](#notes-and-rules) to learn how to use it.\n```\n{for each table in the database}\n- {table name} {optional: {'// ' or '# ' + table notes}}\n  {optional: {'description: ' + table description }}\n  {for each attribute in the table}\n  - {name} {type}{optional: {'({size})'}} {constrains separated by spaces} {optional: {'// ' or '# ' + description}}\n  {end for}\n{end for}\n```\n\n### Example\n```\n- user  # Needs to have a special character in the name or the password\n  description: Stores the credentials of a user\n  - user_id PK\n  - name varchar(64)\n  - password varchar(256)  // Needs to have at least 8 characters\n\n- data  // References the user table\n  description: Stores at maximum 1024 characters of whatever the user wants\n  - data_id PK\n  - user_id FK(user)\n  - content: varchar(1024) null\n```\n\n### Notes and Rules\n- The Database name is the file name without extension (e.g.: `db.txt` database name is `db`).\n- All the words, except description and notes, become lower cased when parsed.\n- The `not null` constrain is replaced with `null`, to explicitly state that the attribute can be NULL.\n- PKs and FKs are defined without type, but when parsed the type will be INT.\n- FKs are defined with the \"size\" being the name of the referenced table.\n\n\u003cbr/\u003e\n\n## License\n\nThis project is currently not under any external [license](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneorandom%2Fsql-pseudocode-transpiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneorandom%2Fsql-pseudocode-transpiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneorandom%2Fsql-pseudocode-transpiler/lists"}