mauricio / postgresql-async

Async, Netty based, database drivers for PostgreSQL and MySQL written in Scala
Apache License 2.0
1.43k stars 222 forks source link

Allow to customize bootstrap #233

Open vietj opened 6 years ago

vietj commented 6 years ago

The Connection seems to be tied to use JDK NIO channels.

Netty provides alternative channel native implementation as well as domain sockets.

The MySQLConnection and PostgreSQLConnection shall provide a way to customize the bootstrap to use so that MySQLConnectionHandler and PostgreSQLConnectionHandler can use native transport type instead of NioSocketChannel.class.