{"id":18664343,"url":"https://github.com/dzsquared/dab-dacfx","last_synced_at":"2025-11-06T09:30:34.289Z","repository":{"id":244677548,"uuid":"815748944","full_name":"dzsquared/dab-dacfx","owner":"dzsquared","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-18T01:43:41.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T09:15:32.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dzsquared.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":"2024-06-16T03:13:02.000Z","updated_at":"2024-11-16T10:35:54.000Z","dependencies_parsed_at":"2024-11-07T08:38:29.322Z","dependency_job_id":null,"html_url":"https://github.com/dzsquared/dab-dacfx","commit_stats":null,"previous_names":["dzsquared/dab-dacfx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fdab-dacfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fdab-dacfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fdab-dacfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fdab-dacfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzsquared","download_url":"https://codeload.github.com/dzsquared/dab-dacfx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239491352,"owners_count":19647811,"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-11-07T08:23:08.451Z","updated_at":"2025-02-18T14:45:43.726Z","avatar_url":"https://github.com/dzsquared.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dab-DacFx: Generate config entities for Data API Builder with DacFx from a dacpac or a database\n\nProof of concept.\n\n## Usage\n\n\nUse an existing dacpac to generate a config file for Data API Builder, including the views.\n```bash\ndab-dacfx -d \"C:\\path\\to\\your\\database.dacpac\" -c \"C:\\path\\to\\your\\dab\\config.json\" -i true\n```\n\n### Inputs\n\n| Name | Description | Required | Default |\n| --- | --- | --- | --- |\n| -d | Path to the dacpac file | true, or -s | |\n| -s | Connection string to the database | true, or -d | |\n| -c | Path to the config file | true | |\n| -i | Include views in the config file | false | false |\n| -p | Permissions to apply to the entities | false | \"anonymous:*\" |\n| -h | Show help | false | |\n\n## Notes\n\nThere's no library to manipulate the Data API Builder config files, so I went with using the CLI manually.\n- https://github.com/Azure/data-api-builder\n- https://learn.microsoft.com/en-us/azure/data-api-builder/reference-configuration#actions\n\n\nThe TSqlModel from either the DacPac or the SQL connection will also contain information about foreign keys that can be used to generate the relationships in the config file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzsquared%2Fdab-dacfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzsquared%2Fdab-dacfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzsquared%2Fdab-dacfx/lists"}