{"id":19376631,"url":"https://github.com/gavinray97/hasura-sql-server-readonly-example","last_synced_at":"2026-02-08T12:06:21.536Z","repository":{"id":114757166,"uuid":"447745260","full_name":"GavinRay97/hasura-sql-server-readonly-example","owner":"GavinRay97","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-13T20:38:49.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-02T02:52:22.576Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GavinRay97.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":"2022-01-13T20:38:47.000Z","updated_at":"2022-01-14T10:33:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"0bc991d3-9369-4527-9588-92ab9eb4dfc7","html_url":"https://github.com/GavinRay97/hasura-sql-server-readonly-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GavinRay97/hasura-sql-server-readonly-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinRay97%2Fhasura-sql-server-readonly-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinRay97%2Fhasura-sql-server-readonly-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinRay97%2Fhasura-sql-server-readonly-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinRay97%2Fhasura-sql-server-readonly-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GavinRay97","download_url":"https://codeload.github.com/GavinRay97/hasura-sql-server-readonly-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GavinRay97%2Fhasura-sql-server-readonly-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29229415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T12:03:03.049Z","status":"ssl_error","status_checked_at":"2026-02-08T12:02:56.077Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-10T08:44:33.996Z","updated_at":"2026-02-08T12:06:21.232Z","avatar_url":"https://github.com/GavinRay97.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hasura Read-Only MS SQL Server Example\n\n- [Hasura Read-Only MS SQL Server Example](#hasura-read-only-ms-sql-server-example)\n  - [Description](#description)\n  - [Instructions](#instructions)\n  - [How it works](#how-it-works)\n\n## Description\n\nThis repo contains an example configuration for using Hasura with a read-only MS-SQL user.\n\n## Instructions\n\n1. Clone this repo\n2. Run `docker compose up -d` to start Hasura, Postgres, and MS-SQL\n3. `cd hasura` and then run `hasura migrate apply` to configure the MS-SQL database connection\n4. You should now see a DB called `sql-server-readonly-example` with a single table called `todo` that contains some test records\n5. Try to query and insert data. You should be able to read from `todo`, but not insert them or modify the DB schema\n\n- ![](./readme-images/hasura-mssql-db-view.png)\n\n- ![](readme-images/hasura-mssql-readonly-query-result.png)\n\n- ![](readme-images/hasura-mssql-readonly-mutation-result.png)\n\n\n\n## How it works\n\nThere is a series of commands in the `docker-compose.yaml` service for MS-SQL that copy all files from the `mssql-scripts` folder into the container, and then execute them.\n\nThe file `mssql-scripts/create-readonly-user.sql` contains the SQL-Server statements to create the `[dbo].todo` table, and the example readonly user.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinray97%2Fhasura-sql-server-readonly-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinray97%2Fhasura-sql-server-readonly-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinray97%2Fhasura-sql-server-readonly-example/lists"}