{"id":16416344,"url":"https://github.com/igapyon/nyancel-cs","last_synced_at":"2026-01-25T18:32:02.774Z","repository":{"id":245466689,"uuid":"818318251","full_name":"igapyon/NyanCEL-cs","owner":"igapyon","description":"NyanCEL is a library that allows you to query the contents of Excel workbooks (.xlsx) using SQL.","archived":false,"fork":false,"pushed_at":"2024-06-23T02:07:40.000Z","size":50,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"devel","last_synced_at":"2025-09-04T10:30:00.953Z","etag":null,"topics":["excel","json","sql","sqlite","xlsx"],"latest_commit_sha":null,"homepage":"","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/igapyon.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-21T15:20:31.000Z","updated_at":"2024-06-22T14:33:47.000Z","dependencies_parsed_at":"2024-06-22T08:38:55.450Z","dependency_job_id":"a7a8b525-8c0a-438d-8c2a-ef665641cc09","html_url":"https://github.com/igapyon/NyanCEL-cs","commit_stats":null,"previous_names":["igapyon/nyancel-cs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/igapyon/NyanCEL-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FNyanCEL-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FNyanCEL-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FNyanCEL-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FNyanCEL-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igapyon","download_url":"https://codeload.github.com/igapyon/NyanCEL-cs/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FNyanCEL-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28756442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: 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":["excel","json","sql","sqlite","xlsx"],"created_at":"2024-10-11T07:09:01.607Z","updated_at":"2026-01-25T18:32:02.756Z","avatar_url":"https://github.com/igapyon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NyanCEL\n\nNyanCEL is a library that allows you to query the contents of Excel workbooks (.xlsx) using SQL.\n\n- NyanCEL-cs is implemented in C#.\n- By providing an Excel workbook (.xlsx), each sheet is treated as a table that can be queried with SQL.\n- It is released under the MIT license.\n- NyanCEL-cs is part of the NyanCEL project.\n\n## Relationship with the NyanQL Project\n\n- NyanCEL is a friend project of the Nyankuru project.\n- It is an independent project inspired by the Nyankuru project.\n- NyanCEL respects and honors the Nyankuru project.\n\n## Workflow\n\n1. Provide an Excel workbook (.xlsx) file\n   - Use the sheet name as the table name\n   - Use the values in the first row as column names\n   - Derive column data types from the format of the second row\n2. Load the contents of the specified Excel workbook into an SQLite database\n   - Read data from the second row onward\n   - Load the read data into an in-memory SQLite database\n3. Execute a SELECT statement\n   - Query the database with the provided SELECT statement\n   - SQLite SQL syntax is available\n4. Return the results of the SELECT statement\n   - Return the search results row by row\n   - Default returns the search results as JSON data\n   - json, xml, xlsx are supported for search results\n\n## Usage\n\n```cs\n  using (var connection = await NyanCELUtil.CreateXlsxDatabase())\n  {\n    var memoryStream = await NyanCELUtil.ReadBinaryFile2MemoryStream(\"./TestData/Book1.xlsx\");\n    List\u003cNyanTableInfo\u003e tableInfoList = await NyanXlsx2Sqlite.LoadExcelFile(\n      connection, memoryStream);\n    string resultString = await NyanSql2Json.Sql2Json(connection, \"SELECT * FROM sqlite_master\");\n  }\n```\n\n## Internally Used OSS\n\nThe following OSS is used internally. Thanks to the providers of each OSS.\n\n- ClosedXML\n  - MIT\n  - Version 0.102.2\n- Microsoft.Data.Sqlite\n  - MIT\n  - Version 8.0.6\n- Newtonsoft.Json\n  - MIT\n  - Version 13.0.3\n\n## Limitations\n\n- It operates as an in-memory RDBMS, so it may not work with large amounts of data\n- Supports .xlsx files\n- Double quotes cannot be included in Excel sheet names or column names in the title row\n\n## Excel to SQLite Type Mapping\n\nInternally, cell value types are derived from Excel formats to SQLite types.\n\n| Excel Format | SQLite Type | Example |\n|--------------|-------------|---------|\n| 0            | TEXT        |         |\n| 1            | INTEGER     | 0       |\n| 2            | REAL        | 0.00    |\n| 3            | REAL        | #,##0   |\n| 4            | REAL        | #,##0.00|\n| 9            | REAL        | 0%      |\n| 10           | REAL        | 0.00%   |\n| 11           | TEXT        | 0.00E+00|\n| 12           | TEXT        | # ?/?   |\n| 13           | TEXT        | # ??/?? |\n| 14           | TEXT        | d/m/yyyy: Format yyyy-MM-dd |\n| 15           | TEXT        | d-mmm-yy: Format yyyy-MM-dd |\n| 16           | TEXT        | d-mmm: Format MM-dd |\n| 17           | TEXT        | mmm-yy: Format yyyy-MM |\n| 18           | TEXT        | h:mm tt |\n| 19           | TEXT        | h:mm:ss tt |\n| 20           | TEXT        | H:mm: Format HH:mm |\n| 21           | TEXT        | H:mm:ss: Format HH:mm:ss |\n| 22           | TEXT        | m/d/yyyy H:mm: Format yyyy-MM-dd HH:mm |\n| 37           | INTEGER     | #,##0;(#,##0) |\n| 38           | INTEGER     | #,##0;[Red](#,##0) |\n| 39           | REAL        | #,##0.00;(#,##0.00) |\n| 40           | REAL        | #,##0.00;[Red](#,##0.00) |\n| 45           | TEXT        | mm:ss: Format mm:ss |\n| 46           | TEXT        | [h]:mm:ss: Format HH:mm:ss |\n| 47           | TEXT        | mmss.0 |\n| 48           | TEXT        | ##0.0E+0 |\n| 49           | TEXT        |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fnyancel-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figapyon%2Fnyancel-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fnyancel-cs/lists"}