{"id":17985824,"url":"https://github.com/sah4ez/exdb","last_synced_at":"2025-04-04T02:25:29.252Z","repository":{"id":57722596,"uuid":"77551975","full_name":"sah4ez/exdb","owner":"sah4ez","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-26T10:41:21.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T14:17:34.980Z","etag":null,"topics":["database","java8","jdbc"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sah4ez.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}},"created_at":"2016-12-28T18:09:33.000Z","updated_at":"2016-12-28T18:09:43.000Z","dependencies_parsed_at":"2022-09-14T01:14:11.393Z","dependency_job_id":null,"html_url":"https://github.com/sah4ez/exdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sah4ez%2Fexdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sah4ez%2Fexdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sah4ez%2Fexdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sah4ez%2Fexdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sah4ez","download_url":"https://codeload.github.com/sah4ez/exdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247109369,"owners_count":20885076,"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","java8","jdbc"],"created_at":"2024-10-29T18:26:25.252Z","updated_at":"2025-04-04T02:25:29.230Z","avatar_url":"https://github.com/sah4ez.png","language":"Java","readme":"exdb\n==========\n[![Build Status](https://travis-ci.org/sah4ez/exdb.svg?branch=master)](https://travis-ci.org/sah4ez/exdb)\n[![Coverage Status](https://coveralls.io/repos/github/sah4ez/exdb/badge.svg?branch=master)](https://coveralls.io/github/sah4ez/exdb?branch=master)\n[![Code Climate](https://codeclimate.com/github/sah4ez/exdb/badges/gpa.svg)](https://codeclimate.com/github/sah4ez/exdb)\n\n### ABOUT ###\n\nMaven dependency\n\n```xml\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.github.sah4ez\u003c/groupId\u003e\n            \u003cartifactId\u003eexdb\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.2\u003c/version\u003e\n        \u003c/dependency\u003e\n```\n\nThis is a library for safe extraction from database through the ResultSet.\n\n##### Version #####\n\n- 1.0.13\nImplement AutoClosable for Prepared statement.\n\n- 1.0.3\nHas issue with lost connection.\n\n##### Why user Extractor? #####\n\nIn Extractor realized simple and short API for extraction data from database.\n\nYou have this code:\n```java\n\n    public Integer getInt(String columnName) {\n        Integer i = 0;\n        try {\n            i = rs.getInt(columnName);\n        } catch (SQLException ignored) {\n        }\n        return i;\n    }\n    \n```\nThis code allow get int value, even if we have exception. \n\nSo we create instance class with exception in Runtime. \n\n### EXAMPLE ###\n```java\npublic class Example{\n    //you load data from your DB in ResultSet and create instance of class used this ResultSet\n    private Integer id;\n    private String name;\n    private Float price;\n    private java.time.ZonedDateTime dateTime;\n    \n    private final com.github.sah4ez.exdb.Extractor extractor;\n    \n    public Example(java.sql.ResultSet resultSet){\n        extractor = new com.github.sah4ez.exdb.Extractor(resultSet);\n   \n        this.id = extractor.getInt(\"id\");\n        this.name = extractor.getString(\"name\");\n        this.dateTime = extractor.getLocalDateTime(\"date\");\n        this.price = extractor.getFloat(\"price\");\n    }\n}\n```\n\n### License ###\n## [**GPL**](http://www.gnu.org/licenses/gpl.txt) ##\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsah4ez%2Fexdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsah4ez%2Fexdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsah4ez%2Fexdb/lists"}