{"id":15009095,"url":"https://github.com/samuel-ricardo/connectionfactory","last_synced_at":"2025-10-09T12:41:31.883Z","repository":{"id":153372372,"uuid":"327413684","full_name":"Samuel-Ricardo/ConnectionFactory","owner":"Samuel-Ricardo","description":"Library whose main objective is to generate connections to databases compatible with Java, for each bank there is a class with unit tests that guarantees consistency and quality.","archived":false,"fork":false,"pushed_at":"2021-01-14T03:30:44.000Z","size":151,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T01:48:35.152Z","etag":null,"topics":["apache-maven","connectionfactory","database","database-connection","database-connections","database-connector","java","maven","maven-project","mongodb","mysql","nosql","postgresql","slqserver","sql","sql-server","sqlite"],"latest_commit_sha":null,"homepage":"https://samuel-ricardo.github.io/Javadoc-ConnectionFactory.github.io/","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/Samuel-Ricardo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2021-01-06T19:44:52.000Z","updated_at":"2021-07-14T18:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c198fd4-797e-4146-82f5-29bd1a0270e9","html_url":"https://github.com/Samuel-Ricardo/ConnectionFactory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Samuel-Ricardo/ConnectionFactory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuel-Ricardo%2FConnectionFactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuel-Ricardo%2FConnectionFactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuel-Ricardo%2FConnectionFactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuel-Ricardo%2FConnectionFactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samuel-Ricardo","download_url":"https://codeload.github.com/Samuel-Ricardo/ConnectionFactory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuel-Ricardo%2FConnectionFactory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001434,"owners_count":26083078,"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-10-09T02:00:07.460Z","response_time":59,"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":["apache-maven","connectionfactory","database","database-connection","database-connections","database-connector","java","maven","maven-project","mongodb","mysql","nosql","postgresql","slqserver","sql","sql-server","sqlite"],"created_at":"2024-09-24T19:23:01.312Z","updated_at":"2025-10-09T12:41:31.878Z","avatar_url":"https://github.com/Samuel-Ricardo.png","language":"Java","readme":"# ConnectionFactory\n\n\n[![Badge](https://img.shields.io/static/v1?label=Samuel\u0026message=Ricardo\u0026color=green\u0026style=for-the-badge\u0026logo=GITHUB)](https://github.com/Samuel-Ricardo)\n[![Badge](https://img.shields.io/static/v1?label=Samuel\u0026message=Ricardo\u0026color=green\u0026style=for-the-badge\u0026logo=LinkedIn)](https://www.linkedin.com/in/samuel-ricardo-cabral/)\n[![Badge](https://img.shields.io/static/v1?label=License\u0026message=GNU%20v3.0\u0026color=green\u0026style=for-the-badge\u0026logo=GITHUB)](https://github.com/Samuel-Ricardo/ConnectionFactory/blob/master/LICENSE)\n\n\n[![Badge](https://img.shields.io/static/v1?label=Made%20With\u0026message=Java\u0026color=red\u0026style=for-the-badge\u0026logo=JAVA)](https://www.oracle.com/java/technologies/)\n[![Badge](https://img.shields.io/static/v1?label=JDK\u0026message=8\u0026color=red\u0026style=for-the-badge\u0026logo=JAVA)](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)\n[![Badge](https://img.shields.io/static/v1?label=Made%20With\u0026message=Apache%20Maven\u0026color=red\u0026style=for-the-badge\u0026logo=Apache-Maven)](https://maven.apache.org/)\n\n\n[![Badge](https://img.shields.io/static/v1?label=Compatible%20With\u0026message=MySQL\u0026color=green\u0026style=for-the-badge\u0026logo=Apache)](https://www.mysql.com/)\n\n\n![Badge](https://img.shields.io/static/v1?label=Version\u0026message=1.0.0\u0026color=green\u0026style=for-the-badge\u0026logo=GITHUB)\n![Badge](https://img.shields.io/static/v1?label=State\u0026message=in%20progress\u0026color=green\u0026style=for-the-badge\u0026logo=GITHUB)\n[![Badge](https://img.shields.io/static/v1?label=Documentation\u0026message=Javadoc\u0026color=red\u0026style=for-the-badge\u0026logo=JAVA)](https://samuel-ricardo.github.io/Javadoc-ConnectionFactory.github.io/)\n#\n\nLibrary whose main objective is to generate connections to databases compatible with Java, for each bank there is a class with unit tests that guarantees consistency and quality.\n\nThe first version includes a connection to the [MySQL](https://www.mysql.com/)\n\nFor the next versions are planned connections with:\n\n- [MongoDB](https://www.mongodb.com/),\n- [PostgreSQL](https://www.postgresql.org/),\n- [SQLite](https://www.sqlite.org/index.html),\n- [SQLServer](https://www.microsoft.com/pt-br/sql-server/sql-server-downloads)\n\n- __Documentation: [Javadoc](https://samuel-ricardo.github.io/Javadoc-ConnectionFactory.github.io/)__\n  \n# __*General Information:*__\n\n- __*Author:*__ [Samuel Ricardo Cabral de Barros](https://github.com/Samuel-Ricardo)\n\n- __*Documentation:* [Javadoc](https://samuel-ricardo.github.io/Javadoc-ConnectionFactory.github.io/)__\n\n- __*Created:*  01/2021__ \n\n- __*Last update:*  01/2021__ \n\n- __*State:*__ In Progress\n\n- __*Current version:*__ 1.0.0\n\n- __*License:*__ [GNU General Public License v3.0](https://github.com/Samuel-Ricardo/ConnectionFactory/blob/master/LICENSE)\n\n# To Use the Library \n## Maven Project:\n\n1. If you are working with a Maven project, look for the `pom.xml` file in your Maven project\n\n2. Inside this file, look for the tag:\n\n``` XML\n\u003cdependencies\u003e\n\t\n\u003c/dependencies\u003e\n``` \n\n3. And paste this code snippet into it...\n\n``` XML\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.samuel.cabral\u003c/groupId\u003e\n            \u003cartifactId\u003eConnectionFactory\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.0\u003c/version\u003e\n        \u003c/dependency\u003e\n``` \n\n2-1. If you don't have this tag in your pom.xml, paste this snippet at the end of the code before the tag `\u003c /project \u003e`:\n\n\n``` XML\n    \u003cdependencies\u003e\n       \n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.samuel.cabral\u003c/groupId\u003e\n            \u003cartifactId\u003eConnectionFactory\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.0\u003c/version\u003e\n        \u003c/dependency\u003e\n\n    \u003c/dependencies\u003e\n``` \n\n\n4. After doing this, execute the `build` in your application and it will be ready to be used with all dependencies installed...\n\n\n## Project without Maven \n\n\n- If your project is not Maven and you prefer to download it ...\n\n\n1. download this file: [ConnectionFactory-1.0.0.jar](https://github.com/Samuel-Ricardo/ConnectionFactory/blob/master/Lib/ConnectionFactory-1.0.0.jar?raw=true)\n\n\n2. After downloading, add the downloaded file to your project.\n\n\n__*WARNING*: Remember, when choosing this method you should download the JDBC and add it to your project, I will leave a list with the JDBC of the databases compatible with this version and the download links:__\n\n\n- MySQL - [MySQLConnector 8.0.22](https://dev.mysql.com/downloads/connector/j/?os=26)\n\n\n\n# How to create a connection: \n\t\n- MySQL:\n\n\n1. Import the MySQLConnectionFactory class:\n\n\n```Java\nimport static com.MySQL.Connection.MySQLConnectionFactory.*;\n```\n\n2. now call the `getConnection (...)` method, the method will connect to the database and return a Connection\n\n\n3. When you want to close a connection, call the `closeConnection (...)` method\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuel-ricardo%2Fconnectionfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuel-ricardo%2Fconnectionfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuel-ricardo%2Fconnectionfactory/lists"}