Difference between revisions of "Remote Data Connectivity"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) (→Overview of Recital Data Objects (RDO)) |
Yvonnemilne (Talk | contribs) (→Overview of Recital Data Objects (RDO)) |
||
Line 18: | Line 18: | ||
* [[RDO_AFFECTED_ROWS()|rdo_affected_rows()]] - return the number of rows affected by the last operation | * [[RDO_AFFECTED_ROWS()|rdo_affected_rows()]] - return the number of rows affected by the last operation | ||
* [[RDO_CLOSE()|rdo_close()]] - close a data source opened with [[RDO_CONNECT()|rdo_connect()]] | * [[RDO_CLOSE()|rdo_close()]] - close a data source opened with [[RDO_CONNECT()|rdo_connect()]] | ||
− | * [[RDO_CONNECT()|rdo_connect()]] - | + | * [[RDO_CONNECT()|rdo_connect()]] - connect to a data source |
− | * [[RDO_DATA_SEEK()|rdo_data_seek()]] - | + | * [[RDO_DATA_SEEK()|rdo_data_seek()]] - move the internal row pointer |
− | * [[RDO_ERRNO()|rdo_errno()]] - | + | * [[RDO_ERRNO()|rdo_errno()]] - return the number of the last error |
− | * [[RDO_ERROR()|rdo_error()]] - | + | * [[RDO_ERROR()|rdo_error()]] - return the error description of the last Recital error |
− | * [[RDO_EXEC()|rdo_exec()]] - | + | * [[RDO_EXEC()|rdo_exec()]] - execute a non-SELECT statement |
− | * [[RDO_FETCH_ARRAY()|rdo_fetch_array()]] - | + | * [[RDO_FETCH_ARRAY()|rdo_fetch_array()]] - return the results of a query as an associative array |
− | * [[RDO_FETCH_ASSOC()|rdo_fetch_assoc()]] - | + | * [[RDO_FETCH_ASSOC()|rdo_fetch_assoc()]] - return the results of a query as an associative array |
− | * [[RDO_FETCH_FIELD()|rdo_fetch_field()]] - | + | * [[RDO_FETCH_FIELD()|rdo_fetch_field()]] - return an object containing information about a field from a result set |
− | * [[RDO_FETCH_LENGTHS()|rdo_fetch_lengths()]] - | + | * [[RDO_FETCH_LENGTHS()|rdo_fetch_lengths()]] - return the length of the contents of each field in a result set |
− | * [[RDO_FETCH_OBJECT()|rdo_fetch_object()]] - | + | * [[RDO_FETCH_OBJECT()|rdo_fetch_object()]] - return the next row from a result set as an object |
− | * [[RDO_FETCH_ROW()|rdo_fetch_row()]] - | + | * [[RDO_FETCH_ROW()|rdo_fetch_row()]] - return the next row from a result set as an object |
− | * [[RDO_FIELD_FLAGS()|rdo_field_flags()]] - | + | * [[RDO_FIELD_FLAGS()|rdo_field_flags()]] - return the flags of a field in a result set |
− | * [[RDO_FIELD_LEN()|rdo_field_len()]] - | + | * [[RDO_FIELD_LEN()|rdo_field_len()]] - return the length of a field in a result set |
− | * [[RDO_FIELD_NAME()|rdo_field_name()]] - | + | * [[RDO_FIELD_NAME()|rdo_field_name()]] - return the name of a field in a result set |
− | * [[RDO_FIELD_SEEK()|rdo_field_seek()]] - | + | * [[RDO_FIELD_SEEK()|rdo_field_seek()]] - jump to a specified field in a result set |
− | * [[RDO_FIELD_TABLE()|rdo_field_table()]] - | + | * [[RDO_FIELD_TABLE()|rdo_field_table()]] - return the name of the table where a specified field is located |
− | * [[RDO_FIELD_TYPE()|rdo_field_type()]] - | + | * [[RDO_FIELD_TYPE()|rdo_field_type()]] - return the type of a field in a result set |
− | * [[RDO_FREE_OBJECT()|rdo_free_object()]] - | + | * [[RDO_FREE_OBJECT()|rdo_free_object()]] - free memory used by a result set object |
− | * [[RDO_FREE_RESULT()|rdo_free_result()]] - | + | * [[RDO_FREE_RESULT()|rdo_free_result()]] - free memory used by a result set object |
− | * [[RDO_GET_CLIENT_INFO()|rdo_get_client_info()]] - | + | * [[RDO_GET_CLIENT_INFO()|rdo_get_client_info()]] - return information about the client |
− | * [[RDO_GET_HOST_INFO()|rdo_get_host_info()]] - | + | * [[RDO_GET_HOST_INFO()|rdo_get_host_info()]] - return information about the connection |
− | * [[RDO_INFO()|rdo_info()]] - | + | * [[RDO_INFO()|rdo_info()]] - return information about the last query |
− | * [[RDO_LIST_DBS()|rdo_list_dbs()]] - | + | * [[RDO_LIST_DBS()|rdo_list_dbs()]] - list the available databases for the current or specified connection |
− | * [[RDO_NUM_FIELDS()|rdo_num_fields()]] - | + | * [[RDO_NUM_FIELDS()|rdo_num_fields()]] - return the number of fields in a result set |
− | * [[RDO_NUM_ROWS()|rdo_num_rows()]] - | + | * [[RDO_NUM_ROWS()|rdo_num_rows()]] - return the number of rows in a result set |
− | * [[RDO_PING()|rdo_ping()]] - | + | * [[RDO_PING()|rdo_ping()]] - check whether a server connection is active |
− | * [[RDO_QUERY()|rdo_query()]] - | + | * [[RDO_QUERY()|rdo_query()]] - return a result set object for a SELECT query |
− | * [[RDO_REAL_ESCAPE_STRING()|rdo_real_escape_string()]] - | + | * [[RDO_REAL_ESCAPE_STRING()|rdo_real_escape_string()]] - escape special characters in a string for use in an SQL statement |
− | * [[RDO_RESULT()|rdo_result()]] - | + | * [[RDO_RESULT()|rdo_result()]] - return the value of a field in a result set |
− | * [[RDO_SELECT_DB()|rdo_select_db()]] - | + | * [[RDO_SELECT_DB()|rdo_select_db()]] - set the active database for a data source connection |
− | * [[RDO_STAT()|rdo_stat()]] - | + | * [[RDO_STAT()|rdo_stat()]] - return the current system status of Recital |
− | * [[RDO_THREAD_ID()|rdo_thread_id()]] - | + | * [[RDO_THREAD_ID()|rdo_thread_id()]] - return the current thread ID |
− | * [[RDO_UNBUFFERED_QUERY()|rdo_unbuffered_query()]] - | + | * [[RDO_UNBUFFERED_QUERY()|rdo_unbuffered_query()]] - return a result set object for a SELECT query |
===Using Recital Client/Server === | ===Using Recital Client/Server === |
Revision as of 10:42, 28 July 2010
Contents
Remote Data Connectivity
Overview of Remote Data Connectivity Functions
- sqlcancel() - request that an executing SQL statement be cancelled
- sqlcolumns() - store column information to a cursor
- sqlcommit() - commit a transaction
- sqlconnect() - connect to a data source
- sqldisconnect() - disconnect from a data source
- sqlexec() - send an SQL statement to a data source
- sqlgetprop() - query property settings for a connection or the environment
- sqlmoreresult() - check if more results sets are available and if so, copy next results set to a cursor
- sqlprepare() - prepare an SQL statement that will be executed by the SQLEXEC() function
- sqlrollback() - rollback a transaction
- sqlsetprop() - set property settings for a connection
- sqlstringconnect() - connect to a data source using a gateway connection string
- sqltables() - store data source table names to a table
Overview of Recital Data Objects (RDO)
- rdo_affected_rows() - return the number of rows affected by the last operation
- rdo_close() - close a data source opened with rdo_connect()
- rdo_connect() - connect to a data source
- rdo_data_seek() - move the internal row pointer
- rdo_errno() - return the number of the last error
- rdo_error() - return the error description of the last Recital error
- rdo_exec() - execute a non-SELECT statement
- rdo_fetch_array() - return the results of a query as an associative array
- rdo_fetch_assoc() - return the results of a query as an associative array
- rdo_fetch_field() - return an object containing information about a field from a result set
- rdo_fetch_lengths() - return the length of the contents of each field in a result set
- rdo_fetch_object() - return the next row from a result set as an object
- rdo_fetch_row() - return the next row from a result set as an object
- rdo_field_flags() - return the flags of a field in a result set
- rdo_field_len() - return the length of a field in a result set
- rdo_field_name() - return the name of a field in a result set
- rdo_field_seek() - jump to a specified field in a result set
- rdo_field_table() - return the name of the table where a specified field is located
- rdo_field_type() - return the type of a field in a result set
- rdo_free_object() - free memory used by a result set object
- rdo_free_result() - free memory used by a result set object
- rdo_get_client_info() - return information about the client
- rdo_get_host_info() - return information about the connection
- rdo_info() - return information about the last query
- rdo_list_dbs() - list the available databases for the current or specified connection
- rdo_num_fields() - return the number of fields in a result set
- rdo_num_rows() - return the number of rows in a result set
- rdo_ping() - check whether a server connection is active
- rdo_query() - return a result set object for a SELECT query
- rdo_real_escape_string() - escape special characters in a string for use in an SQL statement
- rdo_result() - return the value of a field in a result set
- rdo_select_db() - set the active database for a data source connection
- rdo_stat() - return the current system status of Recital
- rdo_thread_id() - return the current thread ID
- rdo_unbuffered_query() - return a result set object for a SELECT query