Liking cljdoc? Tell your friends :D

postgres.async adapter for HugSQL

Setup

Add the following to your project.clj:

Clojars Project

Then you have to install the adapter:

(ns core
  (:require [hugsql.core :as hugsql]
            [hugsql.adapter.postgres-async :as ps-adapter]))

(hugsql/def-db-fns "fns.sql")
(hugsql/set-adapter! (ps-adapter/hugsql-adapter-postgres-async))

Usage

The HugSQL documentation is the definitive guide. The difference is that this adapter returns core.async channels with the result or an exception. This adapter uses postgres.async, so naturally it only works with postgres.

Can you improve this documentation? These fine people already did:
Robin Heggelund Hansen & Colin Yates
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close