We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9e4100 + 839867a commit d23b77aCopy full SHA for d23b77a
src/library/other/Hasql/Pool/Config/Setting.hs
@@ -88,6 +88,10 @@ observationHandler x =
88
--
89
-- Gets executed on every connection upon acquisition.
90
-- 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;")
95
initSession :: Session.Session () -> Setting
96
initSession x =
97
Setting (\config -> config {Config.initSession = x})
0 commit comments