{"id":26277233,"url":"https://github.com/standard-query-language/csqly","last_synced_at":"2026-04-17T01:02:46.008Z","repository":{"id":282258982,"uuid":"947991013","full_name":"Standard-Query-Language/CSQLY","owner":"Standard-Query-Language","description":"CSQLY is a simplified query language for multiple databases that allows you to write database queries in YAML format and execute them against different database engines.","archived":false,"fork":false,"pushed_at":"2025-03-13T16:34:02.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T16:34:24.334Z","etag":null,"topics":["dotnet","nuget","yaml"],"latest_commit_sha":null,"homepage":"https://standard-query-language.github.io/CSQLY/","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/Standard-Query-Language.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["parttimelegend"],"ko_fi":"parttimelegend","liberapay":"parttimelegend"}},"created_at":"2025-03-13T15:12:36.000Z","updated_at":"2025-03-13T16:33:50.000Z","dependencies_parsed_at":"2025-03-13T16:34:30.297Z","dependency_job_id":"f9f804d2-fa81-4470-9eff-8cbb8023f00d","html_url":"https://github.com/Standard-Query-Language/CSQLY","commit_stats":null,"previous_names":["standard-query-language/csqly"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standard-Query-Language%2FCSQLY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standard-Query-Language%2FCSQLY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standard-Query-Language%2FCSQLY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standard-Query-Language%2FCSQLY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Standard-Query-Language","download_url":"https://codeload.github.com/Standard-Query-Language/CSQLY/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573495,"owners_count":20312883,"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":["dotnet","nuget","yaml"],"created_at":"2025-03-14T12:16:14.213Z","updated_at":"2026-04-17T01:02:44.179Z","avatar_url":"https://github.com/Standard-Query-Language.png","language":"C#","funding_links":["https://github.com/sponsors/parttimelegend","https://ko-fi.com/parttimelegend","https://liberapay.com/parttimelegend"],"categories":[],"sub_categories":[],"readme":"# CSQLY - SQL with YAML\n\n[![Build and Test](https://github.com/Standard-Query-Language/CSQLY/actions/workflows/build.yml/badge.svg)](https://github.com/Standard-Query-Language/CSQLY/actions/workflows/build.yml)\n[![NuGet](https://img.shields.io/nuget/v/CSQLY.svg)](https://www.nuget.org/packages/CSQLY/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nCSQLY is a simplified query language for multiple databases that allows you to write database queries in YAML format and execute them against different database engines.\n\n## Features\n\n- Write database queries in easy-to-read YAML format\n- Support for multiple database types:\n  - SQLite\n  - MySQL/MariaDB\n  - PostgreSQL\n  - Oracle\n  - Microsoft SQL Server\n- Simplified query syntax with type safety\n- Connection pooling and management\n- Easily extensible architecture\n- Command-line interface for quick queries\n\n## Installation\n\n### Package Manager Console\n\n```\nInstall-Package CSQLY\n```\n\n### .NET CLI\n\n```bash\ndotnet add package CSQLY\n```\n\n## Basic Usage\n\n```csharp\nusing CSQLY.Core;\nusing CSQLY.Connectors;\n\n// Create a database connection\nvar connector = DatabaseConnector.Create(DatabaseType.SQLite, \"Data Source=mydb.sqlite\");\n\n// Execute a CSQLY query\nvar result = await connector.ExecuteQueryAsync(@\"\nselect:\n  columns:\n    - name\n    - email\n  from: users\n  where:\n    active: true\n\");\n\n// Process results\nforeach (var row in result)\n{\n    Console.WriteLine($\"Name: {row[\"name\"]}, Email: {row[\"email\"]}\");\n}\n```\n\n## Command-Line Interface\n\nCSQLY also provides a command-line interface for quick queries:\n\n```bash\n# Install the CLI tool\ndotnet tool install --global CSQLY.CLI\n\n# Execute a query from a file\ncsqly -f query.yaml -c \"Data Source=mydb.sqlite\" -t sqlite\n```\n\n## Documentation\n\nFor detailed documentation, see:\n\n- [Getting Started](docs/getting-started.md)\n- [Query Syntax](docs/query-syntax.md)\n- [Database Connectors](docs/database-connectors.md)\n- [CLI Usage](docs/cli-usage.md)\n- [API Reference](docs/api-reference.md)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard-query-language%2Fcsqly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstandard-query-language%2Fcsqly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard-query-language%2Fcsqly/lists"}