finagle/finagle-postgres

Name: finagle-postgres

Owner: Finagle

Description: PostgreSQL protocol support for Finagle

Created: 2015-03-10 16:01:08.0

Updated: 2018-01-11 02:04:10.0

Pushed: 2017-12-27 17:42:57.0

Homepage: null

Size: 968

Language: Scala

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Finagle Postgres

Build status Maven Central Join the chat at https://gitter.im/finagle/finagle-postgres

This library provides PostgreSQL database support for Finagle.

Documentation

See the GitHub Pages

Using the Postgres client
Installation

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

aryDependencies ++= Seq(
o.github.finagle" %% "finagle-postgres" % "0.5.0"

Connecting to the DB
client = Postgres.Client()
ithCredentials("user", Some("password"))
atabase("dbname")
ithSessionPool.maxSize(1) //optional; default is unbounded
ithBinaryResults(true)
ithBinaryParams(true)
ithTransport.tls("host")
ewRichClient("host:port")
Selecting with simple query
f = client.select("select * from users") {row =>
User(row.getString("email"), row.getString("name"))

er.debug("Responded " + Await.result(f))
Changelog

See CHANGELOG.md

Contributors
License

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.