{"id":23170973,"url":"https://github.com/ignatandrei/queryviewer","last_synced_at":"2025-06-12T18:32:33.218Z","repository":{"id":38995249,"uuid":"354658011","full_name":"ignatandrei/QueryViewer","owner":"ignatandrei","description":"QueryViewer","archived":false,"fork":false,"pushed_at":"2024-07-27T08:09:40.000Z","size":67832,"stargazers_count":6,"open_issues_count":29,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T18:31:48.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ignatandrei.png","metadata":{"files":{"readme":"README.md","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":"2021-04-04T22:20:38.000Z","updated_at":"2025-02-28T21:44:41.000Z","dependencies_parsed_at":"2025-04-04T23:41:48.200Z","dependency_job_id":"778dbaa2-6eeb-4f8e-91a6-7365b6b50be1","html_url":"https://github.com/ignatandrei/QueryViewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ignatandrei/QueryViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FQueryViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FQueryViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FQueryViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FQueryViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatandrei","download_url":"https://codeload.github.com/ignatandrei/QueryViewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FQueryViewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519255,"owners_count":22870327,"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-12-18T04:15:45.452Z","updated_at":"2025-06-12T18:32:33.193Z","avatar_url":"https://github.com/ignatandrei.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database2Code\n\nYou can download the extension from https://marketplace.visualstudio.com/items?itemName=ignatandrei.databasetocode\n\nModify the connectionDetails.txt and it will generate from you everything to WebAPI from SqlServer or Sqlite ( more providers soon). \n \nAlso, it generates  different projects ( models, context, controllers, REACT CRA) – and you can also modify the templates. It works ( for the moment) just with tables with 0 or 1 PK.\n\n\n\n\n# Steps to generate\n\n1. Start a new project with DB2Code template\n2. Modify the connection details from GeneratorPowershell\n3. Run the project and it will generate the code for you\n   1. If it shows an error , please copy the powershell command and run it from the terminal ( easy way: put into file a.bat)\n4. The code will be generated - run the WebAPI project ( modify connection string if you want )\n   1. If you want to use the REACT CRA, run the npm install and npm start\n5. Modify the templates if you want to change something \n\n## How It works\n\n\n```mermaid\nflowchart TD\n     \n\nsubgraph GRPWSH[\"technical Generate Powershell\"]\n    Run--\u003eCDet(\"Read ConnectionDetails.txt\")\n    CDet--\u003e PWSH(\"start powershell with each connection details\" )\n    PWSH --\u003e Rep(\"Replace templates in GeneratorCRA\")\n    Rep --\u003e RunScaf(\" run scaffold for each template\")\n    \n    \nend\nsubgraph MainFlow\n    new(install https://marketplace.visualstudio.com/items?itemName=ignatandrei.databasetocode  )\n     u(\"You\")\n     Edit(\"Edit DB Connection String \")\n     vsPWS(\"Run GeneratePowershell project\")\n     cPs1(\"Manual Run createPS1 with args shown\")\n     CRA( run http://localhost:3001  )\n     Swagger(Check http://localhost:5018/BlocklyAutomation , http://localhost:5018/swagger)\n     Do[Check Models, Context, Controllers, API project]\n     u-- Run Visual Studio --\u003e new     \n     new -- New Solution from from DB2Code template---\u003eEdit\n     Edit-- Go to Powershell Project ConnectionDetail.txt , WebAPI appSettings.json ---\u003evsPWS     \n     vsPWS-- Wait fa:fa-spinner--\u003eN{Run OK ?}\n     N --\u003e|No| cPs1\n     \n     cPs1--\u003eNManual{ Has Error ?}\n     NManual --\u003e|Yes| Solve\n     Solve --\u003e cPs1\n     NManual --\u003e|No!| Edit\n     N --\u003e|YES!| Do\n     subgraph Happy Path\n     Do-- Run WebAPI project   --\u003e Swagger\n     Swagger-- Run CRA projet  --\u003e CRA( run http://localhost:3001  )\n     CRA --\u003e End(end)\n     end \nend     \n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Fqueryviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatandrei%2Fqueryviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Fqueryviewer/lists"}