Skip to content

Commit 0729a42

Browse files
committed
make connections shortcuts
1 parent 1cb17a0 commit 0729a42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

elasticsearch_dsl/connections.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ def get_connection(self, alias='default'):
9494
raise KeyError('There is no connection with alias %r.' % alias)
9595

9696
connections = Connections()
97+
configure = connections.configure
98+
add_connection = connections.add_connection
99+
remove_connection = connections.remove_connection
100+
create_connection = connections.create_connection
101+
get_connection = connections.get_connection

0 commit comments

Comments
 (0)