{"id":48170207,"url":"https://github.com/clueless-skywatcher/litedb","last_synced_at":"2026-04-04T17:33:27.059Z","repository":{"id":263883559,"uuid":"883852490","full_name":"clueless-skywatcher/litedb","owner":"clueless-skywatcher","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-16T08:31:14.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T09:36:42.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/clueless-skywatcher.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-05T17:26:52.000Z","updated_at":"2025-05-16T08:31:18.000Z","dependencies_parsed_at":"2024-11-20T20:28:15.217Z","dependency_job_id":"c450d91d-b622-430b-904c-91ac3d364f33","html_url":"https://github.com/clueless-skywatcher/litedb","commit_stats":null,"previous_names":["clueless-skywatcher/litedb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/clueless-skywatcher/litedb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clueless-skywatcher%2Flitedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clueless-skywatcher%2Flitedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clueless-skywatcher%2Flitedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clueless-skywatcher%2Flitedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clueless-skywatcher","download_url":"https://codeload.github.com/clueless-skywatcher/litedb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clueless-skywatcher%2Flitedb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":[],"created_at":"2026-04-04T17:33:26.963Z","updated_at":"2026-04-04T17:33:27.038Z","avatar_url":"https://github.com/clueless-skywatcher.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteDB - A crude database from scratch\n\nWelcome to LiteDB! This is a basic SQL database I implemented from scratch using Java. This database is NOT to be used in production (although you may try, and fail :p).\n\nThis database supports the basic SELECT, INSERT, CREATE TABLE, UPDATE and DELETE queries. Query keywords are always lowercase. Most queries are very similar (or the exact same) as PostgreSQL.\n\n-   Create a table:\n    ```\n    create table students (id int, name varchar(100));\n    ```\n\n-   Insert into table:\n    ```\n    insert into students (id, name) values (1, 'Toby');\n    ```\n\n-   Query the table:\n    ```\n    select * from students where name = 'Toby';\n    select * from students;\n    ```\n\n-   Update table entries:\n    ```\n    update students set name = 'Adi' where id = 1;\n    update students set name = 'Adi';\n    ```\n\n-   Delete entries:\n    ```\n    delete from students where name = 'Adi';\n    delete from students;\n    ```\nYou can also retrieve table metadata.\n\n-   Fetch information for each table in the database, using the `tables_meta` table\n    ```\n    select * from tables_meta;\n\n    Returns:\n    row_size, table_name\n    267, columns_meta\n    109, tables_meta\n    109, students\n    ```\n\n-   Fetch the column information for each table in the database, using the `columns_meta` table\n\n    ```\n    select * from columns_meta;\n\n    Returns:\n    column_size, column_name, column_type, table_name\n    4, column_size, int, columns_meta\n    104, column_name, varchar(100), columns_meta\n    54, column_type, varchar(50), columns_meta\n    104, table_name, varchar(100), columns_meta\n    4, row_size, int, tables_meta\n    104, table_name, varchar(100), tables_meta\n    104, name, varchar(100), students\n    4, id, int, students\n    ```\n\n## Setup\n-   Clone this repository\n    ```\n    git clone https://github.com/clueless-skywatcher/litedb.git\n    ```\n-   Navigate to litedb folder\n    ```\n    cd litedb\n    ```\n-   Run Maven build\n    ```\n    mvn clean install -f litedb-core/pom.xml\n    ```\n-   Run the JAR\n    ```\n    java -jar litedb-core/target/litedb-0.0.1.jar\n    ```\n\nFeel free to play around with the `sample.sql` file provided.\n\n## Future Plans:\n- Implement buffer manager\n- Implement transactions and ACID compliance\n- Implement recovery and rollback systems\n- Implement indices\n- Implement views and materialization\n- Implement aggregations and sorting\n- Implement support for new data types:\n    - bigint\n    - text\n    - and more...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclueless-skywatcher%2Flitedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclueless-skywatcher%2Flitedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclueless-skywatcher%2Flitedb/lists"}