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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This library provides PostgreSQL database support for Finagle.
See the GitHub Pages
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"
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")
f = client.select("select * from users") {row =>
User(row.getString("email"), row.getString("name"))
er.debug("Responded " + Await.result(f))
See CHANGELOG.md
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.