Public Member Functions | |
__construct (array|string $address, string $userName="", string $password="") | |
connect (array|string $address="127.0.0.1:11810", string $userName="", string $password="") | |
Public Member Functions inherited from SequoiaDB | |
__construct (array|string $address, string $userName="", string $password="", boolean $useSSL=false) | |
install (array|string $options=null) | |
getLastErrorMsg () | |
cleanLastErrorMsg () | |
connect (array|string $address="127.0.0.1:11810", string $userName="", string $password="", boolean $useSSL=false) | |
close () | |
isValid () | |
syncDB (array|string $options=null) | |
invalidateCache (array|string $condition=array( 'Global'=> true)) | |
interrupt () | |
interruptOperation () | |
snapshot (integer $type, array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null, integer $numToSkip=0, integer $numToReturn=-1) | |
resetSnapshot (array|string $options=null) | |
list (integer $type, array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null, integer $numToSkip=0, integer $numToReturn=-1) | |
listCS (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
selectCS (string $name, array|string $options=null) | |
selectCS (string $name, integer $pageSize=null) | |
createCS (string $name, array|string $options=null) | |
getCS (string $name) | |
dropCS (string $name) | |
renameCS (string $oldName, string $newName, array|string $options=null) | |
listCL (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
getCL (string $fullName) | |
truncate (string $fullName) | |
listDomain (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
createDomain (string $name, array|string $options=null) | |
getDomain (string $name) | |
dropDomain (string $name) | |
listGroup (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
getGroup (string $name) | |
createGroup (string $name) | |
removeGroup (string $name) | |
createCataGroup (string $hostName, string $serviceName, string $databasePath, array|string $configure=null) | |
execSQL (string $sql) | |
execUpdateSQL (string $sql) | |
createUser (string $userName, string $passwd) | |
removeUser (string $userName, string $passwd) | |
flushConfigure (array|string $options) | |
updateConfig (array|string $configs, array|string $options) | |
deleteConfig (array|string $configs, array|string $options) | |
listProcedure (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
createJsProcedure (string $code) | |
removeProcedure (string $name) | |
evalJs (string $code) | |
transactionBegin () | |
transactionCommit () | |
transactionRollback () | |
backup (array|string $options) | |
listBackup (array|string $options, array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
removeBackup (array|string $options) | |
listTask (array|string $condition=null, array|string $selector=null, array|string $orderBy=null, array|string $hint=null) | |
waitTask (array|integer|SequoiaInt64 $taskID) | |
cancelTask (integer|SequoiaInt64 $taskID, boolean $isAsync=true) | |
setSessionAttr (array|string $options) | |
getSessionAttr (boolean $useCache=TRUE) | |
forceSession (integer|SequoiaINT64 $sessionID, array|string $options=null) | |
analyze (array|string $options=null) | |
getList (integer $type, array|string $condition=null, array|string $selector=null, array|string $orderBy=null) | |
getSnapshot (integer $type, array|string $condition=null, array|string $selector=null, array|string $orderBy=null) | |
selectCS (string $name, integer $pageSize=4096) | |
listCSs () | |
dropCollectionSpace (string $name) | |
listCollections () | |
listDomains () | |
selectGroup (string $name) | |
backupOffline (array|string $options) | |
secure SequoiaDB, use SSL connection
SecureSdb::__construct | ( | array|string | $address, |
string | $userName = "" , |
||
string | $password = "" |
||
) |
SecureSdb class constructor.
$address | an array or the string argument. The Host Name or IP Address and The Service Name or Port of Database Server. |
$userName | the string argument. The User's Name of the account. |
$password | the string argument. The Password of the account. |
Example: 1. Connect to the database with ssl.
Example: 2. Using the connect function to connect to the database with ssl.
SecureSdb::connect | ( | array|string | $address = "127.0.0.1:11810" , |
string | $userName = "" , |
||
string | $password = "" |
||
) |
Connect to database with ssl.
$address | an array or the string argument. The Host Name or IP Address and The Service Name or Port of Database Server. |
$userName | the string argument. The User's Name of the account. |
$password | the string argument. The Password of the account. |
array | array( 'errno' => 0 ) |
string | { "errno": 0 } |
Example: