{"id":22816626,"url":"https://github.com/maximgorbatyuk/maximgorbatyuk.databasesqlendpoints","last_synced_at":"2025-04-22T21:16:37.424Z","repository":{"id":65448971,"uuid":"442473104","full_name":"maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints","owner":"maximgorbatyuk","description":"This nuget allows you to view table content of your ASP.NET core application during runtime","archived":false,"fork":false,"pushed_at":"2023-02-03T14:07:32.000Z","size":2134,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-22T21:16:29.911Z","etag":null,"topics":["netcore","nuget","nuget-package","sql"],"latest_commit_sha":null,"homepage":"","language":"C#","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/maximgorbatyuk.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}},"created_at":"2021-12-28T13:32:17.000Z","updated_at":"2024-01-26T05:57:37.000Z","dependencies_parsed_at":"2023-02-18T07:45:49.538Z","dependency_job_id":null,"html_url":"https://github.com/maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximgorbatyuk%2FMaximGorbatyuk.DatabaseSqlEndpoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximgorbatyuk%2FMaximGorbatyuk.DatabaseSqlEndpoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximgorbatyuk%2FMaximGorbatyuk.DatabaseSqlEndpoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximgorbatyuk%2FMaximGorbatyuk.DatabaseSqlEndpoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximgorbatyuk","download_url":"https://codeload.github.com/maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324707,"owners_count":21411946,"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":["netcore","nuget","nuget-package","sql"],"created_at":"2024-12-12T14:08:10.449Z","updated_at":"2025-04-22T21:16:37.372Z","avatar_url":"https://github.com/maximgorbatyuk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaximGorbatyuk.DatabaseSqlEndpoints\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints/test.yml?branch=dev) ![Nuget](https://img.shields.io/nuget/dt/MaximGorbatyuk.DatabaseSqlEndpoints) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints) ![GitHub](https://img.shields.io/github/license/maximgorbatyuk/MaximGorbatyuk.DatabaseSqlEndpoints)\n\nThis nuget allows you to view table content of your ASP.NET core application during runtime. The nuget creates a special endpoint and then return tables and data represented in html form.\n\n## Get started\n\n1. Install the [nuget](https://www.nuget.org/packages/MaximGorbatyuk.DatabaseSqlEndpoints/):\n\n```bash\ndotnet add package MaximGorbatyuk.DatabaseSqlEndpoints\n```\n\n2. Add routing line into your `Startup.cs` file before UseEndpoints():\n\n```csharp\n\nclass Startup\n{\n    public void Configure(IApplicationBuilder app)\n    {\n        // ... some settings\n\n        app\n            .UseSqlEndpoints\u003cAwesomeDbContext\u003e() \n            .UseTableOutputEndpoint() // default route is /database-sql-endpoints/table\n            .UseReadEndpoint() // default route is /database-sql-endpoints/read\n            .UseExecuteEndpoint(); // default route is /database-sql-endpoints/execute\n\n        app.UseEndpoints(endpoints =\u003e\n        {\n            endpoints.MapControllers();\n        });\n\n        // ... some settings\n    }\n}\n\n```\n\n## Requests\n\n### 1. Table content\n\nOpen `https:localhost:5001/database-sql-endpoints/table?tableName=\u003ctableName\u003e` in your browser and view your data\n\n### 2. Reading some data with the SQL command\n\nSend the following POST request:\n\n```bash\n\nPOST https:localhost:5001/database-sql-endpoints/read\n\nBODY:\n{\n    \"query\": \"select 1;\"\n}\n\n```\n\n### 3. Execute any SQL script\n\nSend the following POST request:\n\n```bash\n\nPOST https:localhost:5001/database-sql-endpoints/execute\n\nBODY:\n{\n    \"query\": \"delete fronm users;\"\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximgorbatyuk%2Fmaximgorbatyuk.databasesqlendpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximgorbatyuk%2Fmaximgorbatyuk.databasesqlendpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximgorbatyuk%2Fmaximgorbatyuk.databasesqlendpoints/lists"}