{"id":18688746,"url":"https://github.com/miniconnect/miniconnect-api","last_synced_at":"2025-11-08T04:30:29.266Z","repository":{"id":183303703,"uuid":"577032458","full_name":"miniconnect/miniconnect-api","owner":"miniconnect","description":"MiniConnect API","archived":false,"fork":false,"pushed_at":"2025-02-16T16:55:18.000Z","size":330,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T17:41:15.671Z","etag":null,"topics":["database-access","database-connector","java","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miniconnect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-11T19:07:20.000Z","updated_at":"2025-02-16T16:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"c968f8bb-a210-4aa9-99d4-b34896a62f02","html_url":"https://github.com/miniconnect/miniconnect-api","commit_stats":null,"previous_names":["miniconnect/miniconnect-api"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniconnect%2Fminiconnect-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniconnect%2Fminiconnect-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniconnect%2Fminiconnect-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniconnect%2Fminiconnect-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniconnect","download_url":"https://codeload.github.com/miniconnect/miniconnect-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239549136,"owners_count":19657534,"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":["database-access","database-connector","java","sql"],"created_at":"2024-11-07T10:38:07.009Z","updated_at":"2025-11-08T04:30:29.238Z","avatar_url":"https://github.com/miniconnect.png","language":"Java","readme":"# MiniConnect API\n\nMinimalistic database API.\n\n## Getting started\n\nThis API is an alternative to JDBC.\nThe philosophy is, that a minimalistic database access API should\ndo two things and nothing more:\n\n- send SQL queries and input data to the server\n- accept the results\n\nThat's exactly what MiniConnect session API provides.\nNo odd abstractions like `startTransaction()` or `setCatalog()`.\nNo JDBC freaks like `nativeSQL()` or `setTypeMap()`.\nJust a lightweight, REPL-able SQL interpreter.\n\nHere is a minimal example:\n\n```java\ntry (MiniSession session = connectionFactory.connect()) {\n    MiniResult result = session.execute(\"SELECT name FROM employees\");\n    try (MiniResultSet resultSet = result.resultSet()) {\n        ImmutableList\u003cMiniValue\u003e row;\n        while ((row = resultSet.fetch()) != null) {\n            String name = row.get(0).contentAccess().get().toString();\n            System.out.println(\"name: \" + name);\n        }\n    }\n}\n```\n\nTo tell the truth, in practice there is a third one:\n\n- sending large data in an efficient way\n\nFor this the `putLargeData()` method can be used:\n\n```java\n// ...\n\nsession.putLargeData(\"mylargedata\", 20000L, myDataInputStream);\n\n// now, your large data is stored in the @mylargedata SQL variable\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiconnect%2Fminiconnect-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiconnect%2Fminiconnect-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiconnect%2Fminiconnect-api/lists"}