We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7c720 commit 202d191Copy full SHA for 202d191
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 =
- Setting (\config -> config {Config.initSession = x})
97
+ Setting (\config -> config {Config.insitSession = x})
0 commit comments