iambluedev1/pine-database


📜 pine-database is an intelligent MySQL database library in Java.

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.iambluedev1:pine-database:v1.2.2'
	}
	dependencies {
		implementation("com.github.iambluedev1:pine-database:v1.2.2")
	}
	<dependency>
	    <groupId>com.github.iambluedev1</groupId>
	    <artifactId>pine-database</artifactId>
	    <version>v1.2.2</version>
	</dependency>

                            
    libraryDependencies += "com.github.iambluedev1" % "pine-database" % "v1.2.2"
        
        

                            
    :dependencies [[com.github.iambluedev1/pine-database "v1.2.2"]]
        
        

Readme


How to import?

Gradle

repositories {
    maven {
        url 'http://ananagame.github.io/maven'
    }
}

dependencies {
    compile 'xyz.anana:pine-database:1.2-SNAPSHOT'
}

Maven

<repositories>
    <repository>
        <id>anana</id>
        <url>http://ananagame.github.io/maven</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>xyz.anana</groupId>
        <artifactId>pine-database</artifactId>
        <version>1.2-SNAPSHOT</version>
    </dependency>
</dependencies>

Or simply download the release.

How to use pine-database ?

Firstly you need to get the Table object:

Database database = new Database("The database host adress", "The database name", "The user", "The password");
Table table = database.getTable("The table name");

and you can select, update, insert, delete the table object, see more at the Table class

French video tutorial on this library