An fastest, qualified & easy to use multi database library
📖 Documents 📖
Report Bug
·
Request Feature
Contents
BenDB is a useful & easy-to-use, multi-database library that supports multiple databases.
Here's why:
- It is an easy to use library, no need to waste time anymore!
- It is an useful library.
- It is an multi-database library, that supports multiple databases.
In this project, HikariCP was used as connection pool and lombok was
used for code generation.
- Firstly clone this project with Git
<dependency>
<groupId>com.fitchle.datafitch</groupId>
<artifactId>datafitch-%DB%</artifactId>
<version>version</version>
</dependency>
- Read the documents
- Code, code, code!
DatafitchMySQL mysql = new DatafitchMySQL("host", 3306, "db", "username", "password");
Connection conn=mysql.connect();
// Do something
conn.close();
DatafitchMongo mongo = new DatafitchMongo("host", 27017, "username", "password");
MongoDatabase database = mongo.database("database");
database.collection("collection"); // ...
// Do something
For more examples, please refer to the Documentation
Distributed under the MIT License. See LICENSE
for more information.