Skip to content

Commit 202d191

Browse files
committed
Add docs
1 parent fd7c720 commit 202d191

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/library/other/Hasql/Pool/Config/Setting.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ observationHandler x =
8888
--
8989
-- Gets executed on every connection upon acquisition.
9090
-- Lets you specify the connection-wide settings.
91+
--
92+
-- E.g., you can set the search path for all the sessions executed by the pool by executing the following:
93+
--
94+
-- > initSession (Session.sql "SET search_path TO schema1, schema2, public;")
9195
initSession :: Session.Session () -> Setting
9296
initSession x =
93-
Setting (\config -> config {Config.initSession = x})
97+
Setting (\config -> config {Config.insitSession = x})

0 commit comments

Comments
 (0)