在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jasync-sql/jasync-sql开源软件地址(OpenSource Url):https://github.com/jasync-sql/jasync-sql开源编程语言(OpenSource Language):Kotlin 96.7%开源软件介绍(OpenSource Introduction):jasync-sql is a Simple, Netty based, asynchronous, performant and reliable database drivers for PostgreSQL and MySQL written in Kotlin. 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. For docs and info see the wiki. DownloadMaven<!-- mysql -->
<dependency>
<groupId>com.github.jasync-sql</groupId>
<artifactId>jasync-mysql</artifactId>
<version>2.0.7</version>
</dependency>
<!-- postgresql -->
<dependency>
<groupId>com.github.jasync-sql</groupId>
<artifactId>jasync-postgresql</artifactId>
<version>2.0.7</version>
</dependency> Gradledependencies {
// mysql
compile 'com.github.jasync-sql:jasync-mysql:2.0.7'
// postgresql
compile 'com.github.jasync-sql:jasync-postgresql:2.0.7'
} OverviewThis project is a port of mauricio/postgresql-async to Kotlin. If you want information specific to the drivers, check the PostgreSQL README and the MySQL README. You can view the project's change log here. Follow us on twitter: @jasyncs. DateTime:Version 1.x always returns JodaTime when dealing with date types and not the
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 Zeko SQL Builder compared jasync to hikary and vertex: Support
More links
ContributingPull requests are welcome! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论