{"id":16393233,"url":"https://github.com/philippkueng/datalite","last_synced_at":"2026-05-20T05:44:11.818Z","repository":{"id":51616175,"uuid":"502301281","full_name":"philippkueng/datalite","owner":"philippkueng","description":"Datalog meets SQLite","archived":false,"fork":false,"pushed_at":"2022-09-24T18:39:42.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T00:33:41.883Z","etag":null,"topics":["clojure","datalog","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philippkueng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-11T09:10:56.000Z","updated_at":"2024-06-18T07:55:27.000Z","dependencies_parsed_at":"2023-01-18T18:40:17.489Z","dependency_job_id":null,"html_url":"https://github.com/philippkueng/datalite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philippkueng/datalite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippkueng%2Fdatalite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippkueng%2Fdatalite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippkueng%2Fdatalite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippkueng%2Fdatalite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philippkueng","download_url":"https://codeload.github.com/philippkueng/datalite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippkueng%2Fdatalite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266673586,"owners_count":23966379,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["clojure","datalog","sqlite"],"created_at":"2024-10-11T04:52:42.769Z","updated_at":"2026-05-20T05:44:11.804Z","avatar_url":"https://github.com/philippkueng.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataLite\n\n[![CI](https://github.com/philippkueng/datalite/actions/workflows/main.yml/badge.svg)](https://github.com/philippkueng/datalite/actions/workflows/main.yml)\n\n**Disclaimer: This repo is highly experimental, expect APIs and implementations to change.**\n\nDatalog meets [SQLite](https://www.sqlite.org/index.html), [DuckDB](https://duckdb.org/) or [PostgreSQL](https://www.postgresql.org/) for lower volume of data.\n\n## Reasoning \u0026 Vision\n\nThe thought being that while [Datomic](https://www.datomic.com/), [DataScript](https://github.com/tonsky/datascript), [Datalevin](https://github.com/juji-io/datalevin), [XTDB](https://xtdb.com/) all have their niche I was thinking of another niche, that it'd be handy to be able to query a SQL database using Datalog and hence expand the reach of applications written but also tap into tools that are being developed for SQLite eg. [litestream](https://litestream.io) or DuckDB's capability to query CSVs. \n\nThis is the reason why I'd like to explore the idea of creating a wrapper on top of SQL, mapping a schema as used for Datomic and create SQL tables from it supporting both nested maps and arrays (to a certain degree) and then offering the database to be queried with [Datalog](https://datomic.learn-some.com/).\n\nFurthermore, having a Clojure-wrapper over SQLite, with SQLite running anywhere from embedded devices to in browser using WASM and Clojure being deployable pretty much anywhere too there's a chance that if one writes their local-first application against DataLite one can lift and shift it to another environment with minimal adaptations.\n\n## Getting started\n\nAdd the dependency into your `deps.edn`\n\n```clojure\nio.github.philippkueng/datalite {:git/sha \"bb271de51ed19bba48e90622f3f8b1d6b5be588c\"}\n```\n\nThen head over to the [submit-tx-test](test/datalite/submit_tx_test.clj) which will demonstrate the how to apply the schema, submit data and query it.\n\n## Run tests\n\n```\nclj -X:test\n```\n\n### Run a specific test namespace\n\n```\nclj -X:test :nses '[datalite.submit-tx-test]'\n```\n\n## License\n\nDataLite is licensed under the Mozilla Public License, version 2\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippkueng%2Fdatalite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippkueng%2Fdatalite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippkueng%2Fdatalite/lists"}