{"id":25072413,"url":"https://github.com/pgassmann/universal-db","last_synced_at":"2026-01-11T03:07:20.222Z","repository":{"id":100887758,"uuid":"377641072","full_name":"pgassmann/universal-db","owner":"pgassmann","description":"UniversalDB - ultra fast TeamApps database","archived":false,"fork":false,"pushed_at":"2021-06-16T22:17:19.000Z","size":743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T22:32:42.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"teamapps-org/universal-db","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgassmann.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-06-16T22:16:34.000Z","updated_at":"2021-06-16T22:16:35.000Z","dependencies_parsed_at":"2025-02-06T22:39:28.919Z","dependency_job_id":null,"html_url":"https://github.com/pgassmann/universal-db","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgassmann%2Funiversal-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgassmann%2Funiversal-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgassmann%2Funiversal-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgassmann%2Funiversal-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgassmann","download_url":"https://codeload.github.com/pgassmann/universal-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246511959,"owners_count":20789602,"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":"2025-02-06T22:29:07.875Z","updated_at":"2026-01-11T03:07:20.198Z","avatar_url":"https://github.com/pgassmann.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# UniversalDB\n\nAn ultra fast embedded persisting in-memory database:\n\n* Easy and intuitive API through generated POJOs\n* Integrated full text search - including complex joins\n* Integrated file storage - either local or S3 compatible storage with AWS or min.io\n* File parsing and full text indexing\n\n### Setting up the dependencies\n\nCurrent UniversalDB version: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.teamapps/universal-db/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.teamapps/universal-db)\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.teamapps\u003c/groupId\u003e\n  \u003cartifactId\u003euniversal-db\u003c/artifactId\u003e\n  \u003cversion\u003e0.4.11\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Build configuration\n\nAdd this to your pom.xml:\n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.teamapps\u003c/groupId\u003e\n                \u003cartifactId\u003euniversal-db-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.2\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cphase\u003egenerate-sources\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003egenerate-model\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003cmodelSourceDirectory\u003e${project.basedir}/src/main/model\u003c/modelSourceDirectory\u003e\n                            \u003cmodelClasses\u003e\n                                \u003cmodelClass\u003eModel\u003c/modelClass\u003e\n                            \u003c/modelClasses\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n```\n\n## Create UniversalDB schema \n\nAdd a source folder e.g. `/src/main/model` and create a model class e.g. `Model` with the model you want to use:\n\n```java\nimport org.teamapps.universaldb.Database;\nimport org.teamapps.universaldb.Schema;\nimport org.teamapps.universaldb.SchemaInfoProvider;\nimport org.teamapps.universaldb.index.Table;\n\npublic class Model implements SchemaInfoProvider {\n\n\tpublic String getSchema() {\n\t\tSchema schema = Schema.create();\n\t\tDatabase database = schema.createDatabase(\"db\");\n\t\tTable table = database.createTable(\"table1\");\n\t\tTable table2 = database.createTable(\"table2\");\n\t\ttable\n\t\t\t\t.addText(\"text1\")\n\t\t\t\t.addText(\"text2\")\n\t\t\t\t.addTimestamp(\"timestamp\")\n\t\t\t\t.addEnum(\"enumValue\", \"value1\", \"value2\", \"value3\")\n\t\t\t\t.addInteger(\"number\")\n\t\t\t\t.addLong(\"bigNumber\")\n\t\t\t\t.addReference(\"reference\", table2, true, \"backRef\");\n\n\t\ttable2\n\t\t\t\t.addText(\"text\")\n\t\t\t\t.addReference(\"backRef\", table, false, \"reference\");\n\n\t\treturn schema.getSchema();\n\t}\n}\n```\nAfter compiling you will have a Table and a Table2 class to work with.\n\n\n## License\n\nThe UniversalDB maven plugin is released under version 2.0 of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgassmann%2Funiversal-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgassmann%2Funiversal-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgassmann%2Funiversal-db/lists"}