Skip to content

fitchle/datafitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Datafitch

An fastest, qualified & easy to use multi database library
📖 Documents 📖

Report Bug · Request Feature



Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Contributors

📗 About The Project

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.

Built With

In this project, HikariCP was used as connection pool and lombok was
used for code generation.

🌙 Getting Started

✨ Installation

  1. Firstly clone this project with Git
<dependency>
    <groupId>com.fitchle.datafitch</groupId>
    <artifactId>datafitch-%DB%</artifactId>
    <version>version</version>
</dependency>
  1. Read the documents
  2. Code, code, code!

⚡ Usage

Connecting to Database (MYSQL)

    DatafitchMySQL mysql = new DatafitchMySQL("host", 3306, "db", "username", "password");
    Connection conn=mysql.connect();
    // Do something
    conn.close();

Connecting to Database (MongoDB)

    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

🔐 License

Distributed under the MIT License. See LICENSE for more information.

📞 Contact

🧑🏻‍💻 Contributors