{"id":18026769,"url":"https://github.com/yegor256/tojos","last_synced_at":"2026-04-25T05:06:01.021Z","repository":{"id":37102803,"uuid":"441243519","full_name":"yegor256/tojos","owner":"yegor256","description":"Text Object Java Objects (TOJOs): an object representation of a multi-line structured text file like CSV, YAML, or JSON","archived":false,"fork":false,"pushed_at":"2025-03-17T19:11:45.000Z","size":428,"stargazers_count":20,"open_issues_count":12,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T21:06:44.830Z","etag":null,"topics":["csv","file-format","java","json"],"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/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-12-23T16:54:45.000Z","updated_at":"2025-03-10T13:35:46.000Z","dependencies_parsed_at":"2023-02-18T07:45:50.838Z","dependency_job_id":"7bdf7e2e-5b5d-4d28-9ca7-a67441317502","html_url":"https://github.com/yegor256/tojos","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftojos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftojos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftojos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ftojos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/tojos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764691,"owners_count":20668461,"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":["csv","file-format","java","json"],"created_at":"2024-10-30T08:07:59.050Z","updated_at":"2026-04-20T09:01:56.934Z","avatar_url":"https://github.com/yegor256.png","language":"Java","funding_links":[],"categories":["数据库"],"sub_categories":["微服务框架"],"readme":"# NoSQL Single-File Database\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](https://www.rultor.com/b/yegor256/tojos)](https://www.rultor.com/p/yegor256/tojos)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/yegor256/tojos/actions/workflows/mvn.yml/badge.svg)](https://github.com/yegor256/tojos/actions/workflows/mvn.yml)\n[![PDD status](https://www.0pdd.com/svg?name=yegor256/tojos)](https://www.0pdd.com/p?name=yegor256/tojos)\n[![Maintainability](https://api.codeclimate.com/v1/badges/742bde48ea6fabdba1ce/maintainability)](https://codeclimate.com/github/yegor256/tojos/maintainability)\n[![Maven Central](https://img.shields.io/maven-central/v/com.yegor256/tojos.svg)](https://maven-badges.herokuapp.com/maven-central/com.yegor256/tojos)\n[![Javadoc](https://www.javadoc.io/badge/com.yegor256/tojos.svg)](https://www.javadoc.io/doc/com.yegor256/tojos)\n[![codecov](https://codecov.io/gh/yegor256/tojos/branch/master/graph/badge.svg)](https://codecov.io/gh/yegor256/tojos)\n[![Hits-of-Code](https://hitsofcode.com/github/yegor256/tojos)](https://hitsofcode.com/view/github/yegor256/tojos)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/tojos/blob/master/LICENSE.txt)\n\nIt's a simple manager of \"records\" in a text file of CSV, JSON, etc. format.\nIt's something you would use when you don't want to run a full database, but\njust a list of lines in a file is not enough. You need a file with structured\nrecords.\n\nYou add this to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.yegor256\u003c/groupId\u003e\n  \u003cartifactId\u003etojos\u003c/artifactId\u003e\n  \u003cversion\u003e0.18.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThen, to manage `books.csv` file:\n\n```java\nimport com.yegor256.tojos.MnCsv;\nimport com.yegor256.tojos.TjDefault;\nimport com.yegor256.tojos.Tojo;\nimport com.yegor256.tojos.Tojos;\n\nTojos tojos = new TjDefault(new MnCsv(\"books.csv\"));\nTojo t1 = tojos.add(\"Object Thinking\"); // unique ID\nt1.set(\"author\", \"David West\");\nTojo t2 = tojos.select(\n    t -\u003e t.get(\"author\").equals(\"David West\")\n).get(0);\n```\n\nEach record has a unique ID, which is also the first column.\n\n## How to Contribute\n\nFork repository, make changes, send us a [pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).\nWe will review your changes and apply them to the `master` branch shortly,\nprovided they don't violate our quality standards. To avoid frustration,\nbefore sending us your pull request please run full Maven build:\n\n```bash\nmvn clean install -Pqulice\n```\n\nYou will need Maven 3.3+ and Java 8+.\n\n## How Fuzz Testing Works\n\nWe use [JQF](https://github.com/rohanpadhye/JQF) for fuzz testing. It helps\nus find inputs for some of our tests which are not obvious, but they\nstill break the code. Here is how you can run it:\n\n```bash\nmvn test jqf:fuzz\n```\n\nIf after this step you see any files in the\n`target/fuzz-results/com.yegor256.tojos.Fuzzing/fuzzMnTabs/failures/`\ndirectory, you got a few failures, very good!\nNow, you reproduce them in order to understand what's wrong:\n\n```bash\nmvn jqf:repro -Dinput=target/fuzz-results/com.yegor256.tojos.Fuzzing/fuzzMnTabs/failures/id_000000\n```\n\nYou should see a stack trace and a few lines of code that caused the failure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ftojos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Ftojos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ftojos/lists"}