{"id":16439133,"url":"https://github.com/jweyrich/generator-mssql-types","last_synced_at":"2025-04-26T02:33:12.511Z","repository":{"id":38833425,"uuid":"504725566","full_name":"jweyrich/generator-mssql-types","owner":"jweyrich","description":"A Yeoman code generator that inspects your Stored Procedures and generates strongly typed TypeScript code for them.","archived":false,"fork":false,"pushed_at":"2022-07-14T19:09:49.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:33:07.635Z","etag":null,"topics":["code-generator","mssql","sql-server","stored-procedures","typescript","yeoman-generator"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/generator-mssql-types","language":"TypeScript","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/jweyrich.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":"2022-06-18T02:39:09.000Z","updated_at":"2024-02-01T16:40:30.000Z","dependencies_parsed_at":"2022-08-29T05:30:27.090Z","dependency_job_id":null,"html_url":"https://github.com/jweyrich/generator-mssql-types","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fgenerator-mssql-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fgenerator-mssql-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fgenerator-mssql-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fgenerator-mssql-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jweyrich","download_url":"https://codeload.github.com/jweyrich/generator-mssql-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250922150,"owners_count":21508283,"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":["code-generator","mssql","sql-server","stored-procedures","typescript","yeoman-generator"],"created_at":"2024-10-11T09:08:04.522Z","updated_at":"2025-04-26T02:33:12.273Z","avatar_url":"https://github.com/jweyrich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-mssql-types\n\n[![npm version](https://badge.fury.io/js/generator-mssql-types.svg)](https://badge.fury.io/js/generator-mssql-types) [![Build Status](https://travis-ci.org/jweyrich/generator-mssql-types.svg?branch=master)](https://travis-ci.org/jweyrich/generator-mssql-types)\n\nA Yeoman code generator that inspects your Stored Procedures and generates strongly typed TypeScript code for them.\nCurrently supports only Microsoft SQL Server.\nYou can customize the templates according to your needs. See [templates](src/generators/app/templates/) for references.\n\n## What it does\n\nSee the description above :-)\n\n## How to install\n\n```sh\nyarn global add yo generator-mssql-types\n# or\nnpm install -g yo generator-mssql-types\n```\n\n## How to run\n\nYou have 2 options to run the generator.\n\n### 1. Run using an `.env` file\n\nHave an `.env` file containing the following:\n\n```bash\nDB_CONNECTION_STRING=mssql://username:password@localhost/DATABASE_NAME\n```\nThen just run:\n\n```bash\nyo mssql-types\n```\n\n### 2. Run manually specifying environment variables\n\n```bash\nDB_CONNECTION_STRING=mssql://username:password@localhost/DATABASE_NAME yo mssql-types\n```\n## Arguments \u0026 Options\n\nHere's the `--help` output:\n\n```bash\nUsage:\n  yo mssql-types:app [\u003ctemplatesDirectory\u003e] [options]\n\nOptions:\n  -h,   --help           # Print the generator's options and usage\n        --skip-cache     # Do not remember prompt answers               Default: false\n        --skip-install   # Do not automatically install dependencies    Default: false\n        --force-install  # Fail on install dependencies error           Default: false\n        --ask-answered   # Show prompts for already configured options  Default: false\n\nArguments:\n  templatesDirectory    Type: String  Required: false\n```\n\n### templatesDirectory\n\nYou can specify an alternative template directory. Example:\n\n```bash\nyo mssql-types ./my-templates\n```\n\n## TODO\n\n- Discover whether a stored procedure parameter has a default value or not. It's currently not possible without parsing the procedure definition. For more information see https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-parameters-transact-sql?view=sql-server-ver16\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweyrich%2Fgenerator-mssql-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjweyrich%2Fgenerator-mssql-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweyrich%2Fgenerator-mssql-types/lists"}