{"id":22472316,"url":"https://github.com/ckampfe/clog","last_synced_at":"2025-03-27T16:22:03.132Z","repository":{"id":72030342,"uuid":"132093147","full_name":"ckampfe/clog","owner":"ckampfe","description":"csv + datalog","archived":false,"fork":false,"pushed_at":"2018-05-07T00:38:50.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:11:21.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckampfe.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":"2018-05-04T05:44:45.000Z","updated_at":"2020-01-03T03:16:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2da57189-7dd3-4c2f-8e93-0f10dc45e218","html_url":"https://github.com/ckampfe/clog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fclog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fclog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fclog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fclog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/clog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245879083,"owners_count":20687317,"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":[],"created_at":"2024-12-06T12:14:20.439Z","updated_at":"2025-03-27T16:22:03.127Z","avatar_url":"https://github.com/ckampfe.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clog\n\nQuery CSVs with datalog\n\n## Installation\n\n`$ boot build-native-image`\n\n## Examples\n\n```\nxcxk066$\u003e wc -l junk.csv\n   10001 junk.csv\nxcxk066$\u003e head -10 junk.csv\nid,name,kind\n1,bill,kind\n2,sally,sad\n3,ernie,eerie\n4,jill,jolly\n5,bill,kind\n6,sally,sad\n7,ernie,eerie\n8,jill,jolly\n9,bill,kind\nxcxk066$\u003e ./clog junk.csv -i -t \"{:id :to-int}\"\nxcxk066$\u003e time ./clog junk.csv -q '[:find ?name (count ?e) :where [?e :name ?name]]' -t '{:id :to-long}'\n([\"jill\" 2500] [\"ernie\" 2500] [\"sally\" 2500] [\"bill\" 2500])\n./clog junk.csv -q '[:find ?name (count ?e) :where [?e :name ?name]]' -t   0.14s user 0.03s system 98% cpu 0.175 total\n```\n\n## Usage\n\n```\nxcxk066$\u003e ./clog\nclog:\n\nUsage: clog [options] file\n\nOptions:\n\n  -q, --query QUERY                     The query to run\n  -i, --index                           Create an index\n  -t, --typemap TYPEMAP                 A typemap of transforms\n  -s, --csv-separator CSV-SEPARATOR  ,  CSV separator character\n  -u, --csv-quote CSV-QUOTE          \"  CSV quote character\n  -o, --csv-header                      Show CSV header only\n  -v, --verbose                         Verbose mode\n  -h, --help\n```\n\n## License\n\nCopyright © 2018 Clark Kampfe\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fclog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Fclog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fclog/lists"}