Skip to content

Commit 2526e00

Browse files
committed
Update info about connect, reconnect and close methods
1 parent bfc5685 commit 2526e00

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ $tnt = new Tarantool('localhost', 16847);
226226

227227
## Connection manipulations
228228

229+
Notice that `Tarantool::connect`, `Tarantool::open` (an alias for `connect`) and
230+
`Tarantool::reconnect` are deprecated as any other connection-related
231+
instructions now cause an automatic connect.
232+
229233
### Tarantool::disconnect
230234

231235
``` php
@@ -235,6 +239,7 @@ public bool Tarantool::disconnect ( void )
235239
_**Description**_: Explicitly close a connection to the Tarantool server.
236240
If persistent connections are in use, then the connection will be saved in
237241
the connection pool.
242+
You can also use an alias for this method, `Tarantool::close`.
238243

239244
_**Return value**_: **BOOL**: True
240245

@@ -623,7 +628,8 @@ $tnt->upsert("test", array(124, 10, "new tuple"), array(
623628
* Global constants, e.g. `TARANTOOL_ITER_<name>`;
624629
* `Tarantool::authenticate` method, please provide credentials in the
625630
constructor instead;
626-
* `Tarantool::connect` method, since any other connection-related instructions
631+
* `Tarantool::connect`, `Tarantool::open` (an alias for `connect`) and
632+
`Tarantool::reconnect` methods as any other connection-related instructions
627633
now cause an automatic connect;
628634
* `Tarantool::eval` method, please use the `evaluate` method instead;
629635
* `Tarantool::flush_schema` method, deprecated in favor of `flushSchema`;

0 commit comments

Comments
 (0)