Skip to content

Commit d23b77a

Browse files
committed
Merge branch 'master' into copilot/update-hasql-dependency
2 parents d9e4100 + 839867a commit d23b77a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
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 =
9397
Setting (\config -> config {Config.initSession = x})

0 commit comments

Comments
 (0)