beautypg.com

Querying metadata, Hc_query_ez, Synopsis – Sun Microsystems Sun StorageTek 5800 User Manual

Page 94

background image

HCERR_NULL_SESSION

HCERR_INVALID_SESSION

HCERR_INVALID_OID

HCERR_ILLEGAL_ARGUMENT

Querying Metadata

The following functions are defined for simple queries:

“hc_query_ez” on page 94

“hc_qrs_next_ez” on page 96

“hc_qrs_is_query_complete” on page 97

“hc_qrs_get_query_integrity_time” on page 98

“hc_qrs_free” on page 99

The following functions are defined for prepared statement queries:

“hc_pstmt_create” on page 100

“hc_pstmt_free” on page 101

“hc_pstmt_set_string” on page 101

“hc_pstmt_set_char” on page 102

“hc_pstmt_set_double” on page 103

“hc_pstmt_set_long” on page 104

“hc_pstmt_set_date” on page 105

“hc_pstmt_set_time” on page 106

“hc_pstmt_set_timestamp” on page 107

“hc_pstmt_set_binary” on page 108

“hc_pstmt_query_ez” on page 109

Prepared statement example:

“Querying With a Prepared Statement” on page 110

hc_query_ez

Retrieves OIDs and optionally name-value records matching a query.

Synopsis

hcerr_t hc_query_ez(hc_session_t *session,

hc_string_t query,

hc_string_t selects[],

int n_selects,

Synchronous C API Functions

Sun StorageTek 5800 System Client API Reference Manual • June 2008

94