Skip to content

marvinerkes/Athena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Athena

Athena is a MySQL and SQLite util library with integrated HikariCP connection pool. One of the features is the query builder system with the builder design pattern. You don't have to write the complete SQL-Query string down anymore. You can instead use a cool and easy builder API.

Another big feature is the serialization system. You can create classes, add some annotations and then you can easy for example execute the create method like this: athena.serializationManager().create(SomeClass.class); The table is automatically created in your database.

With the simple async API from Athena you can query your database or anything else async without blocking your main thread. But you can also submit an async operation and wait with the Future to end.

You can now also get the row SQL query from all builders with the sql() method after you have called build() with a query builder.

The only thing that is different to MySQL is that you have to use the 'database' method in the settings builder as a path to a '.db' file and set the type to 'Type.SQLITE' with the settings builder. The directories to the '.db' file are created from Athena automatically.

Installation

  • Install Maven 3
  • Clone/Download this repo
  • Install it with: mvn clean install

Maven dependency

<dependency>
    <groupId>de.progme</groupId>
    <artifactId>athena-core</artifactId>
    <version>1.1.1-SNAPSHOT</version>
</dependency>

If you don't use maven you can download a release version and include it in your project.

Features

  • connection pool
  • query builder system
  • raw sql queries
  • aggregate functions
  • joins
  • serialization system (with annotations)
  • simple API
  • lightweight
  • async API
  • easy query result managing

Examples

Query builder

Serialization

License

Licensed under the GNU General Public License, Version 3.0.

About

Athena is an MySQL and SQLLite util library with integrated HikariCP connection pool and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages