File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ defmodule Postgrex do
52
52
| { :prepare , :named | :unnamed }
53
53
| { :transactions , :strict | :naive }
54
54
| { :types , module }
55
- | { :search_path , [ String . t ( ) ] }
56
55
| { :disconnect_on_error_codes , [ atom ] }
57
56
| DBConnection . start_option ( )
58
57
@@ -161,14 +160,6 @@ defmodule Postgrex do
161
160
option is only required when using custom encoding or decoding (default:
162
161
`Postgrex.DefaultTypes`);
163
162
164
- * `:search_path` - A list of strings used to set the search path for the connection.
165
- This is useful when, for instance, an extension like `citext` is installed in a
166
- separate schema. If that schema is not in the connection's search path, Postgrex
167
- might not be able to recognize the extension's data type. When this option is `nil`,
168
- the search path is not modified. (default: `nil`).
169
- See the [PostgreSQL docs](https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH)
170
- for more details.
171
-
172
163
* `:disable_composite_types` - Set to `true` to disable composite types support.
173
164
This is useful when using Postgrex against systems that do not support composite types
174
165
(default: `false`).
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ defmodule Postgrex.Protocol do
120
120
parameters =
121
121
case opts [ :search_path ] do
122
122
path when is_list ( path ) ->
123
+ Logger . warning (
124
+ "the `:search_path` option is deprecated. Please use the `:parameters` option by " <>
125
+ "passing `:search_path` as a key and a comma delimited string as the value."
126
+ )
127
+
123
128
path = Enum . intersperse ( path , ", " )
124
129
Keyword . put ( parameters , :search_path , path )
125
130
You can’t perform that action at this time.
0 commit comments