PostgreSQL protocol support for Finagle
Latest commit dee2332 Nov 29, 2016 @jeremyrsmith jeremyrsmith Release of 0.4.1
Failed to load latest commit information.
docs/src Update doc Nov 19, 2016
finagle-postgres-shapeless/src Add patchless support Nov 28, 2016
project 0.4.0 work Nov 16, 2016
src Fix state machine hangs Nov 29, 2016
.gitignore 0.4.0 work Nov 16, 2016
.travis.yml Fix .travis.yml Nov 18, 2016 Add patchless support Nov 28, 2016
LICENSE Add license Mar 12, 2015 0.4.0 work Nov 16, 2016
build.sbt Release of 0.4.1 Nov 29, 2016
dump.rdb New features Jun 16, 2016

Finagle Postgres

Build status Maven Central Join the chat at

This library provides PostgreSQL database support for Finagle.


See the GitHub Pages

Using the Postgres client


Finagle Postgres is published on Maven Central. Use the following sbt snippet to bring it as a dependency.

  • for the stable release:
libraryDependencies ++= Seq(
  "io.github.finagle" %% "finagle-postgres" % "0.3.2"
  • for the SNAPSHOT version:
resolvers += Resolver.sonatypeRepo("snapshots")

libraryDependencies ++= Seq(
  "io.github.finagle" %% "finagle-postgres" % "0.4.0-SNAPSHOT" changing()

Connecting to the DB

val client = Postgres.Client()
  .withCredentials("user", Some("password"))
  .withSessionPool.maxSize(1) //optional; default is unbounded

Selecting with simple query

val f ="select * from users") {row =>
    User(row.getString("email"), row.getString("name"))
logger.debug("Responded " + Await.result(f))





Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.