@@ -49,16 +49,40 @@ def connect(host="localhost", port=33013, user=None, password=None,
49
49
ssl_cert_file = DEFAULT_SSL_CERT_FILE ,
50
50
ssl_ca_file = DEFAULT_SSL_CA_FILE ,
51
51
ssl_ciphers = DEFAULT_SSL_CIPHERS ):
52
- '''
52
+ """
53
53
Create a connection to the Tarantool server.
54
54
55
- :param str host: Server hostname or IP-address
56
- :param int port: Server port
55
+ :param host: Refer to :paramref:`~tarantool.Connection.params.host`.
57
56
58
- :rtype: :class :`~tarantool.connection. Connection`
57
+ :param port: Refer to :paramref :`~tarantool.Connection.params.port`.
59
58
60
- :raise: `NetworkError`
61
- '''
59
+ :param user: Refer to :paramref:`~tarantool.Connection.params.user`.
60
+
61
+ :param password: Refer to
62
+ :paramref:`~tarantool.Connection.params.password`.
63
+
64
+ :param encoding: Refer to
65
+ :paramref:`~tarantool.Connection.params.encoding`.
66
+
67
+ :param transport: Refer to
68
+ :paramref:`~tarantool.Connection.params.transport`.
69
+
70
+ :param ssl_key_file: Refer to
71
+ :paramref:`~tarantool.Connection.params.ssl_key_file`.
72
+
73
+ :param ssl_cert_file: Refer to
74
+ :paramref:`~tarantool.Connection.params.ssl_cert_file`.
75
+
76
+ :param ssl_ca_file: Refer to
77
+ :paramref:`~tarantool.Connection.params.ssl_ca_file`.
78
+
79
+ :param ssl_ciphers: Refer to
80
+ :paramref:`~tarantool.Connection.params.ssl_ciphers`.
81
+
82
+ :rtype: :class:`~tarantool.Connection`
83
+
84
+ :raise: :class:`~tarantool.Connection` exceptions
85
+ """
62
86
63
87
return Connection (host , port ,
64
88
user = user ,
@@ -77,15 +101,25 @@ def connect(host="localhost", port=33013, user=None, password=None,
77
101
78
102
def connectmesh (addrs = ({'host' : 'localhost' , 'port' : 3301 },), user = None ,
79
103
password = None , encoding = ENCODING_DEFAULT ):
80
- '''
81
- Create a connection to a mesh of Tarantool servers.
104
+ """
105
+ Create a connection to a cluster of Tarantool servers.
106
+
107
+ :param addrs: Refer to
108
+ :paramref:`~tarantool.MeshConnection.params.addrs`.
109
+
110
+ :param user: Refer to
111
+ :paramref:`~tarantool.MeshConnection.params.user`.
112
+
113
+ :param password: Refer to
114
+ :paramref:`~tarantool.MeshConnection.params.password`.
82
115
83
- :param list addrs: List of maps: {'host':(HOSTNAME|IP_ADDR), 'port':PORT}.
116
+ :param encoding: Refer to
117
+ :paramref:`~tarantool.MeshConnection.params.encoding`.
84
118
85
- :rtype: :class:`~tarantool.mesh_connection. MeshConnection`
119
+ :rtype: :class:`~tarantool.MeshConnection`
86
120
87
- :raise: `NetworkError`
88
- '''
121
+ :raise: :class:`~tarantool.MeshConnection` exceptions
122
+ """
89
123
90
124
return MeshConnection (addrs = addrs ,
91
125
user = user ,
0 commit comments