Popularity
5.5
Growing
Activity
7.4
Declining
886
35
71

Programming language: Kotlin
Tags: Database     Projects    
Latest version: v1.1.0

jasync-sql alternatives and similar libraries

Based on the "Database" category

Do you think we are missing an alternative of jasync-sql or a related project?

Add another 'Database' Library

README

Chat at https://gitter.im/jasync-sql/support Download Maven Central Build Status Apache License V.2 codecov Awesome Kotlin Badge

jasync-sql is a Simple, Netty based, asynchronous, performant and reliable database drivers for PostgreSQL and MySQL written in Kotlin.

Show your ❤ with a ★

Getting started

// Connection to MySQL DB
Connection connection = MySQLConnectionBuilder.createConnectionPool(
               "jdbc:mysql://$host:$port/$database?user=$username&password=$password");

// Connection to PostgreSQL DB    
Connection connection = PostgreSQLConnectionBuilder.createConnectionPool(
               "jdbc:postgresql://$host:$port/$database?user=$username&password=$password");

// Execute query
CompletableFuture<QueryResult> future = connection.sendPreparedStatement("select * from table");
// work with result ...
// Close the connection pool
connection.disconnect().get()

See a full example at jasync-mysql-example and jasync-postgresql-example.
More samples on the samples dir.

For docs and info see the wiki.

Download

Maven

<!-- mysql -->
<dependency>
  <groupId>com.github.jasync-sql</groupId>
  <artifactId>jasync-mysql</artifactId>
  <version>1.1.0</version>
</dependency>
<!-- postgresql -->
<dependency>
  <groupId>com.github.jasync-sql</groupId>
  <artifactId>jasync-postgresql</artifactId>
  <version>1.1.0</version>
</dependency>

Gradle

dependencies {
  // mysql
  compile 'com.github.jasync-sql:jasync-mysql:1.0.19'
  // postgresql
  compile 'com.github.jasync-sql:jasync-postgresql:1.0.19'
}

Overview

This project is a port of mauricio/postgresql-async to Kotlin.
Why? Because the original lib is not maintained anymore, We use it in ob1k, and would like to remove the Scala dependency in ob1k.

This project always returns JodaTime when dealing with date types and not the java.util.Date class. (We plan to move to jdk-8 dates).

If you want information specific to the drivers, check the [PostgreSQL README](postgresql-async/README.md) and the [MySQL README](mysql-async/README.md).

You can view the project's change log [here](CHANGELOG.md).

Follow us on twitter: @jasyncs.

Who is using it

Add your name here!

Is it used in production on large scale?

The graph above is from only couple of services using it. Y-Axis is # of queries per minute.

There is also a TechEmpower test using ktor and jasync-sql.

Support

Contributing

Pull requests are welcome!
See [CONTRIBUTING](CONTRIBUTING.md).


*Note that all licence references and agreements mentioned in the jasync-sql README section above are relevant to that project's source code only.