{"id":15105385,"url":"https://github.com/iunius118/cc-dbp-lite","last_synced_at":"2026-01-17T03:46:46.432Z","repository":{"id":252231791,"uuid":"837656403","full_name":"Iunius118/cc-dbp-lite","owner":"Iunius118","description":"Adds a database peripheral for CC: Tweaked","archived":false,"fork":false,"pushed_at":"2024-09-07T13:41:45.000Z","size":262,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:42:55.558Z","etag":null,"topics":["computercraft","database","minecraft","minecraft-forge","minecraft-mod"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Iunius118.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","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-08-03T16:09:27.000Z","updated_at":"2024-08-31T17:05:40.000Z","dependencies_parsed_at":"2024-08-22T17:43:53.075Z","dependency_job_id":"c354dbf8-87c0-4bc1-a037-53cd7bf97b0a","html_url":"https://github.com/Iunius118/cc-dbp-lite","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"8412f7beca5541f8a280b6733485803e0535b5d7"},"previous_names":["iunius118/cc-dbp-lite"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iunius118%2Fcc-dbp-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iunius118%2Fcc-dbp-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iunius118%2Fcc-dbp-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iunius118%2Fcc-dbp-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iunius118","download_url":"https://codeload.github.com/Iunius118/cc-dbp-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339134,"owners_count":20923009,"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":["computercraft","database","minecraft","minecraft-forge","minecraft-mod"],"created_at":"2024-09-25T20:23:50.253Z","updated_at":"2026-01-17T03:46:46.422Z","avatar_url":"https://github.com/Iunius118.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCDatabasePeripheralLite\n\nA Minecraft mod to add a peripheral for [CC: Tweaked](https://tweaked.cc/) to manipulate databases using [SQLite JDBC Driver](https://github.com/xerial/sqlite-jdbc).\n\n## Requirements\n\n- Minecraft 1.20.1\n- Minecraft Forge 47.3.0+\n- CC: Tweaked 1.20.1-forge-1.112.0+\n\n## Installation\n\nDownload a JAR file named `*-all.jar` from [Releases](https://github.com/Iunius118/cc-dbp-lite/releases) and place it in your `mods` folder.\n\n## How to Get Started\n\n1. Craft a Database Storage\n\n   from 6 Stones, 1 Disk Drive, 1 Block of Redstone, and 1 Iron Ingot\n\n   ![Crafting Database Storage](docs/media/crafting_database_storage.png)\n\n2. Connect the Database Storage to a Computer\n\n   ![Crafting Database Storage](docs/media/database_storage.png)\n\n3. Call functions of the Database Storage from the computer and manipulate database\n\n    See [mod_description.md](docs/mod_description.md) for more information about Database Storage functions\n\nSample code:\n\n```Lua\n-- Find peripheral\nlocal db = peripheral.find(\"dbstorage\")\n\nif not db then\n  print(\"Database Storage was not found\")\n  return\nend\n\n-- Connect to database\nlocal stmt = db.createStatement()\n\nprint(\"Connected to database, storage ID \" .. db.getID())\n\n-- Execute update\nstmt.execute(\"DROP TABLE IF EXISTS player\")\nstmt.execute(\"CREATE TABLE player (id INTEGER NOT NULL PRIMARY KEY, name TEXT)\")\nstmt.execute(\"INSERT INTO player VALUES(1, 'Steve')\")\nstmt.execute(\"INSERT INTO player VALUES(2, 'Alex')\")\nstmt.execute(\"INSERT INTO player VALUES(3, 'Noor')\")\n\n-- Execute query\nstmt.execute(\"SELECT * FROM player\")\n\n-- Get result set\nlocal rs = stmt.getResultSet()\n\n-- Print result\nlocal result = {colors.orange, {\"id\", \"name\"}, colors.white}\n\nwhile rs.next() do\n  local id = rs.getString(\"id\")  -- Get id as string\n  local name = rs.getString(\"name\")\n  table.insert(result, {id, name})\nend\n\ntextutils.tabulate(table.unpack(result))\n\n-- Disconnect from database\nrs.close()\nstmt.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiunius118%2Fcc-dbp-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiunius118%2Fcc-dbp-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiunius118%2Fcc-dbp-lite/lists"}