PHP » GoLang |
login |
register |
about
|
GoLang cubrid_pconnect_with_url
request it (436)
GoLang replacement for PHP's cubrid_pconnect_with_url
[edit | history]
cubrid_pconnect_with_url(PECL CUBRID >= 8.3.1) cubrid_pconnect_with_url — Open a persistent connection to CUBRID server Description
resource cubrid_pconnect_with_url
( string
$conn_url
[, string $userid
[, string $passwd
]] )Establishes a persistent connection to a CUBRID server. cubrid_pconnect_with_url() acts very much like cubrid_connect_with_url() with two major differences. First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, port, dbname and userid. If one is found, an identifier for it will be returned instead of opening a new connection. Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (cubrid_close() or cubrid_disconnect() will not close links established by cubrid_pconnect_with_url()). This type of link is therefore called 'persistent'. <url> ::= CUBRID:<host>:<db_name>:<db_user>:<db_password>:[?<properties>] <properties> ::= <property> [&<property>] <properties> ::= alhosts=<alternative_hosts>[ &rctime=<time>] <properties> ::= login_timeout=<milli_sec> <properties> ::= query_timeout=<milli_sec> <properties> ::= disconnect_on_query_timeout=true|false <alternative_hosts> ::= <standby_broker1_host>:<port> [,<standby_broker2_host>:<port>] <host> := HOSTNAME | IP_ADDR <time> := SECOND <milli_sec> := MILLI SECOND
Parameters
Return ValuesConnection identifier, when process is successful.
ExamplesExample #1 cubrid_pconnect_with_url() url without properties example
<?php Example #2 cubrid_pconnect_with_url() url with properties example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|