{"id":18414926,"url":"https://github.com/xerial/silk","last_synced_at":"2025-08-17T12:35:08.868Z","repository":{"id":2171572,"uuid":"3118175","full_name":"xerial/silk","owner":"xerial","description":"Simplify SQL Workflows with Scala","archived":false,"fork":false,"pushed_at":"2020-03-13T22:40:45.000Z","size":15339,"stargazers_count":38,"open_issues_count":1,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-16T09:51:07.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://xerial.org/silk","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xerial.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":"2012-01-06T13:53:15.000Z","updated_at":"2022-06-27T19:32:40.000Z","dependencies_parsed_at":"2022-08-28T20:10:21.994Z","dependency_job_id":null,"html_url":"https://github.com/xerial/silk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xerial/silk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xerial%2Fsilk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xerial%2Fsilk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xerial%2Fsilk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xerial%2Fsilk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xerial","download_url":"https://codeload.github.com/xerial/silk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xerial%2Fsilk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270850054,"owners_count":24656442,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2024-11-06T03:52:41.699Z","updated_at":"2025-08-17T12:35:08.809Z","avatar_url":"https://github.com/xerial.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Silk: A framework for managing SQL data flows.\n\nhttp://xerial.org/silk\n\n## Examples\n\n```scala\nimport xerial.silk.core._\n\nimport sampledb._\n\n// SELECT count(*) FROM nasdaq\ndef dataCount = nasdaq.size\n\n// SELECT time, close FROM nasdaq WHERE symbol = 'APPL'\ndef appleStock = nasdaq.filter(_.symbol is \"APPL\").select(_.time, _.close)\n\n// You can use a raw SQL statjement as well:\ndef appleStockSQL = sql\"SELECT time, close FROM nasdaq where symbol = 'APPL'\"\n\n// SELECT time, close FROM nasdaq WHERE symbol = 'APPL' LIMIT 10\nappleStock.limit(10).print\n\n// time-column based filtering\nappleStock.between(\"2015-05-01\", \"2015-06-01\")\n\nfor(company \u003c- Seq(\"YHOO\", \"GOOG\", \"MSFT\")) yield {\n  nasdaq.filter(_.symbol is company).selectAll\n}\n\n```\n\n## Milestones\n\n - Build SQL + local analysis workflows\n - Submit queries to Presto / Treasure Data\n - Run scheduled queries\n - Retry upon failures\n - Cache intermediate results\n - Resume workflow\n - Partial workflow executions\n - Sampling display\n    - Interactive mode\n - Split a large query into small ones\n    - Differential computation for time-series data\n\n - Windowing for stream queries\n\n - Object-oriented workflow\n\n - Input Source: fluentd/embulk\n - Output Source:\n\n - Workflow Executor\n   - Local-only mode\n   - Register SQL part to Treasure Data\n   - Run complex analysis on local cache\n   - UNIX command executor\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxerial%2Fsilk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxerial%2Fsilk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxerial%2Fsilk/lists"}