-
sqlrcon_alloc
-
Initiates a connection to "server" on "port" or to the unix "socket" on the local machine and authenticates with "user" and "password". Failed connections will be retried for "tries" times on interval "retrytime".
-
sqlrcon_autoCommitOff
-
Instructs the database to wait for the client to tell it when to commit.
-
sqlrcon_autoCommitOn
-
Instructs the database to perform a commit after every successful query.
-
sqlrcon_bindFormat
-
Returns a string representing the format of the bind variables used in the db.
-
sqlrcon_clientVersion
-
Returns the version of the sqlrelay client software.
-
sqlrcon_commit
-
Issues a commit. Returns 1 if the commit succeeded, 0 if it failed and -1 if an error occurred.
-
sqlrcon_dbVersion
-
Returns the version of the database
-
sqlrcon_debugOff
-
Turns debugging off.
-
sqlrcon_debugOn
-
Causes verbose debugging information to be sent to standard output.
-
sqlrcon_endSession
-
Ends the session.
-
sqlrcon_errorMessage
-
If an operation failed and generated an error, the error message is
-
sqlrcon_free
-
Disconnects and ends the session if it hasn't been terminated already.
-
sqlrcon_getConnectionPort
-
Returns the inet port that the connection is communicating over. This parameter may be passed to another connection for use in the sqlrcon_resumeSession() command. Note: The result this function returns is only valid after a call to suspendSession().
-
sqlrcon_getConnectionSocket
-
Returns the unix socket that the connection is communicating over. This parameter may be passed to another connection for use in the sqlrcon_resumeSession() command. Note: The result this function returns is only valid after a call to suspendSession().
-
sqlrcon_getCurrentDatabase
-
Returns the database/schema that is currently in use.
-
sqlrcon_getDebug
-
Returns 0 if debugging is off and 1 if debugging is on.
-
sqlrcon_getLastInsertId
-
Returns the value of the autoincrement column for the last insert
-
sqlrcon_identify
-
Returns the type of database: oracle, postgresql, mysql, etc.
-
sqlrcon_ping
-
Returns 1 if the database is up and 0 if it's down.
-
sqlrcon_resumeSession
-
Resumes a session previously left open using sqlrcon_suspendSession().
-
sqlrcon_rollback
-
Issues a rollback. Returns 1 if the rollback succeeded, 0 if it failed and -1 if an error occurred.
-
sqlrcon_selectDatabase
-
Sets the current database/schema to "database"
-
sqlrcon_serverVersion
-
Returns the version of the sqlrelay server software.
-
sqlrcon_setTimeout
-
Sets the server connect timeout in seconds and milliseconds.
-
sqlrcon_suspendSession
-
Disconnects this connection from the current session but leaves the session open so that another connection can connect to it using sqlrcon_resumeSession().
-
sqlrcur_affectedRows
-
Returns the number of rows that were updated, inserted or deleted by the query. Not all databases support this call. Don't use it for applications which are designed to be portable across databases. -1 is returned by databases which don't support this option.
-
sqlrcur_alloc
-
Creates a cursor to run queries and fetch
-
sqlrcur_cacheOff
-
Sets query caching off.
-
sqlrcur_cacheToFile
-
Sets query caching on. Future queries will be cached to the file "filename".
-
sqlrcur_clearBinds
-
Clears all bind variables.
-
sqlrcur_colCount
-
Returns the number of columns in the current result set.
-
sqlrcur_countBindVariables
-
Parses the previously prepared query, counts the number of bind variables defined in it and returns that number.
-
sqlrcur_defineOutputBindBlob
-
Defines a binary lob output bind variable
-
sqlrcur_defineOutputBindClob
-
Defines a character lob output bind variable
-
sqlrcur_defineOutputBindCursor
-
Defines a cursor output bind variable
-
sqlrcur_defineOutputBindDouble
-
Defines an decimal output bind variable.
-
sqlrcur_defineOutputBindInteger
-
Defines an integer output bind variable.
-
sqlrcur_defineOutputBindString
-
Defines a string output bind variable.
-
sqlrcur_dontGetColumnInfo
-
Tells the server not to send any column info (names, types, sizes). If you don't need that info, you should call this function to improve performance.
-
sqlrcur_endOfResultSet
-
Returns 0 if part of the result set is still pending on the server and 1 if not. This function can only return 0 if setResultSetBufferSize() has been called with a parameter other than 0.
-
sqlrcur_errorMessage
-
If a query failed and generated an error, the error message is available here. If the query succeeded then this function returns a NULL.
-
sqlrcur_executeQuery
-
Execute the query that was previously prepared and bound.
-
sqlrcur_fetchFromBindCursor
-
Fetch from a cursor that was returned as an output bind variable.
-
sqlrcur_firstRowIndex
-
Returns the index of the first buffered row. This is useful when buffering only part of the result set at a time.
-
sqlrcur_free
-
Destroys the cursor and cleans up all associated result set data.
-
sqlrcur_getCacheFileName
-
Returns the name of the file containing the most recently cached result set.
-
sqlrcur_getColumnInfo
-
Tells the server to send column info.
-
sqlrcur_getColumnIsAutoIncrement
-
Returns 1 if the specified column auto-increments and 0 otherwise.
-
sqlrcur_getColumnIsBinary
-
Returns 1 if the specified column contains binary data and 0 otherwise.
-
sqlrcur_getColumnIsNullable
-
Returns the scale of the specified column. Scale is the total number of digits to the right of the decimal point in a number. eg: 123.45 has a scale of 2. "col" may be specified as the column name or number.
-
sqlrcur_getColumnIsPartOfKey
-
Returns 1 if the specified column is part of a composite key and 0 otherwise. "col" may be specified as the column name or number.
-
sqlrcur_getColumnIsPrimaryKey
-
Returns 1 if the specified column is a primary key and 0 otherwise.
-
sqlrcur_getColumnIsUnique
-
Returns 1 if the specified column is unique and 0 otherwise. "col" may be specified as the column name or number.
-
sqlrcur_getColumnIsUnsigned
-
Returns 1 if the specified column is an unsigned number and 0 otherwise.
-
sqlrcur_getColumnIsZeroFilled
-
Returns 1 if the specified column is zero-filled and 0 otherwise.
-
sqlrcur_getColumnLength
-
Returns the length of the specified column. "col" may be specified as the column name or number.
-
sqlrcur_getColumnList
-
Sends a query that returns a list of columns in the table specified by the "table" parameter matching "wild". If wild is empty or NULL then a list of all columns will be returned.
-
sqlrcur_getColumnName
-
Returns the name of the specified column.
-
sqlrcur_getColumnNames
-
Returns an array of the column names of the current result set.
-
sqlrcur_getColumnPrecision
-
Returns the precision of the specified column. Precision is the total number of digits in a number. eg: 123.45 has a precision of 5. For non-numeric types, it's the number of characters in the string. "col" may be specified as the column name or number.
-
sqlrcur_getColumnScale
-
Returns the scale of the specified column. Scale is the total number of digits to the right of the decimal point in a number. eg: 123.45 has a scale of 2. "col" may be specified as the column name or number.
-
sqlrcur_getColumnType
-
Returns the type of the specified column. "col" may be specified as the column name or number.
-
sqlrcur_getDatabaseList
-
Sends a query that returns a list of databases/schemas matching "wild".
-
sqlrcur_getField
-
Returns the specified field as a string. "col" may be specified as the column name or number.
-
sqlrcur_getFieldAsDouble
-
Returns the specified field as an decimal. "col" may be specified as the column name or number.
-
sqlrcur_getFieldAsInteger
-
Returns the specified field as an integer. "col" may be specified as the column name or number.
-
sqlrcur_getFieldLength
-
Returns the length of the specified row and column. "col" may be specified as the column name or number.
-
sqlrcur_getLongest
-
Returns the length of the longest field in the specified column.
-
sqlrcur_getNullsAsEmptyStrings
-
Tells the connection to return NULL fields and output bind variables as empty strings. This is the default.
-
sqlrcur_getNullsAsNulls
-
Tells the connection to return NULL fields and output bind variables as NULL's.
-
sqlrcur_getOutputBindBlob
-
Get the value stored in a previously defined binary lob output bind variable.
-
sqlrcur_getOutputBindClob
-
Get the value stored in a previously defined character lob output bind variable.
-
sqlrcur_getOutputBindDouble
-
Get the value stored in a previously defined decimal output bind variable.
-
sqlrcur_getOutputBindInteger
-
Get the value stored in a previously defined integer output bind variable.
-
sqlrcur_getOutputBindLength
-
Get the length of the value stored in a previously defined output bind variable.
-
sqlrcur_getOutputBindString
-
Get the value stored in a previously defined string output bind variable.
-
sqlrcur_getResultSetBufferSize
-
Returns the number of result set rows that will be buffered at a time or
- for the entire result set.
-
sqlrcur_getResultSetId
-
Returns the internal ID of this result set. This parameter may be passed to another statement for use in the resumeResultSet() function. Note: The value this function returns is only valid after a call to suspendResultSet().
-
sqlrcur_getRow
-
Returns an array of the values of the fields in the specified row.
-
sqlrcur_getRowAssoc
-
Returns an associative array of the values of the fields in the specified row.
-
sqlrcur_getRowLenghtsAssoc
-
Returns an associative array of the lengths of the fields in the specified row.
-
sqlrcur_getTableList
-
Sends a query that returns a list of tables matching "wild". If wild is empty or NULL then a list of all tables will be returned.
-
sqlrcur_inputBind
-
Defines an input bind variable. The value may be a string,
-
sqlrcur_inputBindBlob
-
Defines a binary lob input bind variable.
-
sqlrcur_inputBindClob
-
Defines a character lob input bind variable.
-
sqlrcur_lowerCaseColumnNames
-
Columns names are converted to lower case.
-
sqlrcur_mixedCaseColumnNames
-
Columns names are returned in the same case as they are defined in the database. This is the default.
-
sqlrcur_openCachedResultSet
-
Opens a cached result set. Returns 1 on success and 0 on failure.
-
sqlrcur_prepareFileQuery
-
Prepare to execute the contents of "path"/"filename".
-
sqlrcur_prepareQuery
-
Prepare to execute "query".
-
sqlrcur_prepareQueryWithLength
-
Prepare to execute "query" with length "length". This function must be used if the query contains binary data.
-
sqlrcur_resumeCachedResultSet
-
Resumes a result set previously left open using suspendSession() and continues caching the result set to "filename". Returns 1 on success and 0 on failure.
-
sqlrcur_resumeResultSet
-
Resumes a result set previously left open using suspendSession().
-
sqlrcur_rowCount
-
Returns the number of rows in the current result set.
-
sqlrcur_sendFileQuery
-
Sends the query in file "path"/"filename" and gets a result set.
-
sqlrcur_sendQuery
-
Sends "query" directly and gets a result set.
-
sqlrcur_sendQueryWithLength
-
Sends "query" with length "length" directly and gets a result set. This function must be used if the query contains binary data.
-
sqlrcur_setCacheTtl
-
Sets the time-to-live for cached result sets. The sqlr-cachemanger will remove each cached result set "ttl" seconds after it's created, provided it's scanning the directory containing the cache files.
-
sqlrcur_setResultSetBufferSize
-
Sets the number of rows of the result set to buffer at a time.
-
sqlrcur_substitution
-
Defines a substitution variable. The value may be a string,
-
sqlrcur_suspendResultSet
-
Tells the server to leave this result set open when the connection calls suspendSession() so that another connection can connect to it using resumeResultSet() after it calls resumeSession().
-
sqlrcur_totalRows
-
Returns the total number of rows that will be returned in the result set.
-
sqlrcur_upperCaseColumnNames
-
Columns names are converted to upper case.
-
sqlrcur_validateBinds
-
If you are binding to any variables that might not actually be in your
-
sqlrcur_validBind
-
Returns true if "variable" was a valid bind variable of the query.
-
sql_relay.doc.php
-