harmony 鸿蒙OH_Cursor

  • 2023-10-30
  • 浏览 (365)

OH_Cursor

Overview

Defines a result set.

It provides APIs to access the result set obtained by querying the RDB store.

Since

10

Related Modules

RDB

Summary

Member Variables

Name Description
id Unique identifier of the OH_Cursor struct.
getColumnCount Pointer to the function used to obtain the number of columns in the result set.
getColumnType Pointer to the function used to obtain the column type based on the specified column index.
getColumnIndex Pointer to the function used to obtain the column index based on the specified column name.
getColumnName Pointer to the function used to obtain the column name based on the specified column index.
getRowCount Pointer to the function used to obtain the number of rows in the result set.
goToNextRow Pointer to the function used to go to the next row of the result set.
getSize Pointer to the function used to obtain information about the memory required when the column data type in the result set is BLOB or TEXT.
getText Pointer to the function used to obtain the value in the form of a string based on the specified column and the current row.
getInt64 Pointer to the function used to obtain the value of the int64_t type based on the specified column and the current row.
getReal Pointer to the function used to obtain the value of the double type based on the specified column and the current row.
getBlob Pointer to the function used to obtain the value in the form of a byte array based on the specified column and the current row.
isNull Pointer to the function used to check whether the value in the specified column is null.
destroy Pointer to the function used to close a result set.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞