【文件属性】:
文件名称:jasync-sql:用Kotlin编写的Java和Kotlin MySQL和PostgreSQL异步数据库驱动程序
文件大小:604KB
文件格式:ZIP
更新时间:2021-01-30 15:37:16
reactive sql jdbc jdbc-driver postgresql-driver
是一个简单的,基于Netty,异步,高性能和可靠的数据库驱动程序,用于用Kotlin编写的PostgreSQL和MySQL。
入门
// 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
CompletableF