{"id":34869350,"url":"https://github.com/notacat1/t4-sql-generator-project","last_synced_at":"2026-04-27T14:01:32.854Z","repository":{"id":288064312,"uuid":"966716209","full_name":"NotACat1/T4-SQL-Generator-Project","owner":"NotACat1","description":"This project provides a flexible T4 (Text Template Transformation Toolkit) template for dynamically generating SQL queries. The solution allows developers to quickly produce standardized SQL scripts with configurable table and field structures.","archived":false,"fork":false,"pushed_at":"2025-04-15T11:02:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T07:51:24.341Z","etag":null,"topics":["automation","code-generation","csharp","database","dynamic-programming","script-generator","sql","t4","template"],"latest_commit_sha":null,"homepage":"","language":null,"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/NotACat1.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,"zenodo":null}},"created_at":"2025-04-15T10:51:00.000Z","updated_at":"2025-04-15T10:58:40.000Z","dependencies_parsed_at":"2025-04-15T11:44:45.131Z","dependency_job_id":"57bfffec-64ee-498c-ba44-88985a6e4737","html_url":"https://github.com/NotACat1/T4-SQL-Generator-Project","commit_stats":null,"previous_names":["notacat1/t4-sql-generator-project"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NotACat1/T4-SQL-Generator-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotACat1%2FT4-SQL-Generator-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotACat1%2FT4-SQL-Generator-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotACat1%2FT4-SQL-Generator-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotACat1%2FT4-SQL-Generator-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotACat1","download_url":"https://codeload.github.com/NotACat1/T4-SQL-Generator-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotACat1%2FT4-SQL-Generator-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32339290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","code-generation","csharp","database","dynamic-programming","script-generator","sql","t4","template"],"created_at":"2025-12-25T23:03:57.640Z","updated_at":"2026-04-27T14:01:32.848Z","avatar_url":"https://github.com/NotACat1.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# T4-SQL-Generator-Project\n\n![T4 Template](https://img.shields.io/badge/T4-Template-blue.svg)\n![SQL Generator](https://img.shields.io/badge/SQL-Generator-green.svg)\n\n## Описание проекта\n\nЭтот проект использует `Text Template Transformation Toolkit` (T4) для автоматической генерации `SQL-запросов` на основе заданных параметров. Шаблон создает `SQL-скрипт` с множеством `SELECT-запросов`, используя автоматически сгенерированные имена таблиц и полей.\n\n## Особенности\n\n- 🚀 Динамическая генерация `SQL-запросов`\n- ⚙️ Настраиваемые параметры через константы\n- ✅ Встроенная валидация входных данных\n- 📝 Автоматическая документация в выходном файле\n- 🧩 Модульная структура с вспомогательным классом\n\n## Технические детали\n\n- **Тип шаблона**: T4 Runtime template (`.tt` файл)\n- **Выходной формат**: SQL скрипт (`.sql` файл)\n- **Язык логики**: C#\n\n## Быстрый старт\n\n1. Клонируйте репозиторий\n2. Откройте файл `SqlGenerator.tt`\n3. Измените параметры генерации:\n```csharp\nconst int N = 3;  // Количество таблиц\nconst int M = 5;  // Количество доступных полей\n```\n4. Сохраните файл - автоматически сгенерируется SQL-скрипт\n\n## Пример вывода\n\n```sql\n-- Запрос 1 из 3 --\nSELECT Field_1 \nFROM Table_1; \n\n-- Запрос 2 из 3 --\nSELECT Field_2 \nFROM Table_2; \n\n-- Запрос 3 из 3 --\nSELECT Field_3 \nFROM Table_3; \n```\n\n## Структура проекта\n\n```\nT4-SQL-Generator/\n│\n├── SqlGenerator.tt          # Основной T4 шаблон\n├── SqlGenerator.sql         # Автогенерируемый выходной файл\n└── README.md                # Данный файл документации\n```\n\n## Настройка\n\nОсновные параметры для настройки находятся в начале T4-шаблона:\n\n```csharp\n// КОНФИГУРАЦИЯ ГЕНЕРАТОРА\nconst int N = 3; // Количество таблиц\nconst int M = 5; // Количество полей\n```\n\n## Валидация\n\nШаблон включает проверку:\n```csharp\nif (tablesCount \u003e fieldsCount)\n{\n    throw new ArgumentException(\n        $\"Ошибка: Количество таблиц ({tablesCount}) \" +\n        $\"превышает количество полей ({fieldsCount})\");\n}\n```\n\n## Лицензия\n\nЭтот проект распространяется под лицензией MIT. Подробнее см. в файле [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotacat1%2Ft4-sql-generator-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotacat1%2Ft4-sql-generator-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotacat1%2Ft4-sql-generator-project/lists"}