Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.
timsixth edited this page Aug 3, 2023 · 22 revisions

Welcome to the T-DataBasesAPI wiki!

About of libray

T-DataBasesApi is a library to manage database in your spigot plugin.
The library works on versions from 1.8.8 to 1.20.1.
The library supporting SQL databases MySql and SQLite.

Features

  1. The plugin connects to database which you type in config.yml. You don't have to configure database connection.
  2. Sync executing query.
  3. Async executing query.
  4. Manage the connection to database like close, open, get.
  5. Table creator. You don't have to write sql code which creates e.g. MySql table.
  6. Migrations system (You can migrate table once and update again).
  7. Query Builder (You don't have to write SQL queries, queries are generated automatically by method).

Adding Dependency

Maven

<repositories>
  <repository>
     <id>jitpack.io</id>
     <url>https://jitpack.io</url>
   </repository>
</repositories>
  
<dependency>
  <groupId>com.github.timsixth</groupId>
  <artifactId>T-DataBasesAPI</artifactId>
  <version>Tag</version>
</dependency>

Gradle

allprojects {
   repositories {
	maven { url 'https://jitpack.io' }
	}
}
  dependencies {
	implementation 'com.github.timsixth:T-DataBasesAPI:Tag'
}

Configuration

config.yml
Note: Type must be written in uppercase e.g. SQLITE,MYSQL.

hostname: 'localhost'
username: 'root'
password: ''
database: 'servertestowy'
port: 3306
type: MYSQL

Clone this wiki locally