leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

multi-hosts #129

Closed liukaiyuliukaiyu closed 1 year ago

liukaiyuliukaiyu commented 1 year ago

jbdc client support multi-hosts,like "jdbc:postgresql://node1,node2,node3/accounting?targetServerType=preferSlave&loadBalanceHosts=true " why pgmoon client only support single host, When will support multi hosts be available?

leafo commented 1 year ago

This library will not be implementing any sort of load balancer, it's outside the scope. JDBC is an entire framework and interface for generalizing database connection. This library is a specific implementation of the postgresql protocol, it doesn't include anything else.