cockroachdb/finagle-postgres

Name: finagle-postgres

Owner: CockroachDB

Description: PostgreSQL protocol support for Finagle

Forked from: finagle/finagle-postgres

Created: 2016-04-05 12:40:19.0

Updated: 2016-06-23 18:30:30.0

Pushed: 2016-04-27 21:39:29.0

Homepage: null

Size: 215

Language: Scala

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Finagle Postgres

Build status Maven Central

This library provides PostgreSQL database support for Finagle. It was originally developed by Mairbek Khadikov, with subsequent work by The Factory, Vladimir Kostyukov, and others. In early 2015 Twitter began using the library, and this repository reflects the most recent changes (as of March 2015) from The Factory's fork together with changes from Twitter's internal fork (including new SSL support).

The library is currently cross-built for Scala 2.10 and 2.11 using SBT.

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(
om.github.finagle" %% "finagle-postgres" % "0.1.0"

lvers += Resolver.sonatypeRepo("snapshots")

aryDependencies ++= Seq(
om.github.finagle" %% "finagle-postgres" % "0.2.0-SNAPSHOT" changing()

Connecting to the DB
client = Client(host, username, password, database)
Selecting with simple query
f = client.select("select * from users") {row =>
User(row.getString("email"), row.getString("name"))

er.debug("Responded " + f.get)
Changelog
0.1.0
0.0.2
0.0.1
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.