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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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"
SNAPSHOT
version:lvers += Resolver.sonatypeRepo("snapshots")
aryDependencies ++= Seq(
om.github.finagle" %% "finagle-postgres" % "0.2.0-SNAPSHOT" changing()
client = Client(host, username, password, database)
f = client.select("select * from users") {row =>
User(row.getString("email"), row.getString("name"))
er.debug("Responded " + f.get)
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.