Skip to content

A easy way to use SQL on Java. Without creating long queries.

Notifications You must be signed in to change notification settings

eikefs/sql-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sql-provider

A easy way to use SQL on Java. Create new connections and easy queries.

Creating database-connections

Database database = Provider.getInstance().submit(url, user, password); // Or Provider.getInstance().submit(url)

Creating tables

Database#update(new TableQuery()
      .name("users", true)
      .fields(new TableField()
              .name("id")
              .type("int")
              .size(8)
              .autoIncrement())
      .primary("id"));

And others examples you may get on QueriesTest.java file, on test folder.

How to install

<repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
</repository>
<dependency>
      <groupId>com.github.eikefs</groupId>
      <artifactId>sql-provider</artifactId>
      <version>1.0.1</version>
</dependency>

About

A easy way to use SQL on Java. Without creating long queries.

Resources

Stars

Watchers

Forks

Languages