{"id":19508337,"url":"https://github.com/efekos/simpleql","last_synced_at":"2025-08-18T11:12:15.202Z","repository":{"id":261494759,"uuid":"843043547","full_name":"efekos/SimpleQL","owner":"efekos","description":"SQL Database management library for Java","archived":false,"fork":false,"pushed_at":"2025-01-01T00:42:44.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T22:45:59.992Z","etag":null,"topics":["java","java-lib","java-library","maven","maven-library","maven-repository","sql","sql-database","sql-java","sql-query","sql-server-database","sqlite","sqlite-database","sqlite3","sqlite3-database"],"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/efekos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-15T16:55:40.000Z","updated_at":"2025-01-01T00:42:48.000Z","dependencies_parsed_at":"2024-11-06T21:41:05.283Z","dependency_job_id":"08b4a340-3456-4efe-85fd-4a38f9cd18d3","html_url":"https://github.com/efekos/SimpleQL","commit_stats":null,"previous_names":["efekos/simpleql"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/efekos/SimpleQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efekos%2FSimpleQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efekos%2FSimpleQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efekos%2FSimpleQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efekos%2FSimpleQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efekos","download_url":"https://codeload.github.com/efekos/SimpleQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efekos%2FSimpleQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982207,"owners_count":24679449,"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-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["java","java-lib","java-library","maven","maven-library","maven-repository","sql","sql-database","sql-java","sql-query","sql-server-database","sqlite","sqlite-database","sqlite3","sqlite3-database"],"created_at":"2024-11-10T23:04:48.160Z","updated_at":"2025-08-18T11:12:15.174Z","avatar_url":"https://github.com/efekos.png","language":"Java","readme":"# SimpleQL\n\n![](https://flat.badgen.net/github/license/efekos/SimpleQL)\n![](https://flat.badgen.net/github/release/efekos/SimpleQL)\n![](https://flat.badgen.net/github/releases/efekos/SimpleQL)\n![](https://flat.badgen.net/github/stars/efekos/SimpleQL)\n![](https://flat.badgen.net/github/issues/efekos/SimpleQL)\n![](https://flat.badgen.net/github/prs/efekos/SimpleQL)\n[![](https://flat.badgen.net/static/JavaDoc/Available/green)](https://efekos.dev/javadoc/simpleql/1.0/index.html)\n\nThis library lets you use an SQL database without knowing the SQL language at all! You can easily create tables, insert,\nupdate and delete rows and manage database connections.\n\nHere is a working example:\n\n```java\npackage dev.efekos.simple_ql;\n\nimport dev.efekos.simple_ql.data.Database;\nimport dev.efekos.simple_ql.data.Table;\n\nimport java.util.Optional;\nimport java.util.UUID;\n\n// Checkout test classes to learn more\npublic class SimpleQLExample {\n\n    public static void main(String[] args) throws Exception {\n        // Database connection. Database name, username and password is ignored since this is SQLite.\n        Database database = SimpleQL.createDatabase(\"jdbc:sqlite:my.db\",\"simpleql\",\"admin\",\"12345678\");\n        database.connect();\n\n        // Getting tables.\n        Table\u003cCustomer\u003e customers = database.registerTable(\"customers\", Customer.class);\n\n        // Data insertion.\n        UUID id = UUID.randomUUID();\n        Customer customer = customers.insertRow(c -\u003e {\n            c.setId(id);\n            c.setName(\"John Doe\");\n            c.setMoney(new CustomerMoney(50,0));\n            c.setGender(CustomerGender.FEMALE);\n        });\n        \n        // Getting data.\n        Optional\u003cCustomer\u003e row = customers.getRow(id);\n\n        // Querying data.\n        QueryResult\u003cCustomer\u003e result = customers.query(new QueryBuilder()\n                .filterWithCondition(Conditions.lessThan(\"age\", 18))\n                .sortAscending(\"age\")\n                .skip(5)\n                .limit(10)\n                .getQuery()\n        );\n        \n        // Updating data.\n        customer.setName(\"John Boe\");\n        CustomerMoney money = customer.getMoney();\n        money.setCents(10);\n        customer.setMoney(money);\n        customer.setGender(CustomerGender.MALE);\n        customer.clean(); // saves changes to database\n\n        // Deleting data.\n        customer.delete();\n\n        // Database disconnection.\n        database.disconnect();\n    }\n\n}\n\n```\n\n\u003e [!NOTE]\n\u003e You can look at the full example [here](https://github.com/efekos/SimpleQL/tree/v1.0/src/test/java/dev/efekos/simple_ql).\n\n# Installation\n\n## Maven\n\n1. Add this repository if you don't have it in your repositories.\n````xml\n\u003crepository\u003e\n    \u003cid\u003eefekosdev\u003c/id\u003e\n    \u003curl\u003ehttps://efekos.dev/maven\u003c/url\u003e\n\u003c/repository\u003e\n````\n\n2. Add this dependency. Replace the version with the latest version, which is ![](https://badgen.net/github/release/efekos/SimpleQL) (without `v`).\n````xml\n\u003cdependency\u003e\n    \u003cgroupId\u003edev.efekos\u003c/groupId\u003e\n    \u003cartifactId\u003eSimpleQL\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e \n````\n\n## Gradle\n\n1. Add this repository if you don't have it in your repositories\n````gradle\nmaven { url 'https://efekos.dev/maven' } \n````\n\n2. Add this dependency. Replace the version with the latest version. which is ![](https://badgen.net/github/release/efekos/SimpleQL) (without `v`).\n````gradle\nimplementation 'dev.efekos:SimpleQL:1.0.0' \n````\n\n# License\n\nThis project is licensed under the MIT License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefekos%2Fsimpleql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefekos%2Fsimpleql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefekos%2Fsimpleql/lists"}