getColumnIndex

abstract fun getColumnIndex(column: KQLiteColumn<*>): Int

Returns the zero-based index for the given KQLiteColumn or -1 if not found.

This method provides a way to get the column index in the cursor's result set by using the type-safe KQLiteColumn object instead of the column name string. It is useful for bridging between type-safe access and index-based access.

Return

The zero-based index of the specified column or -1 if column is not found.

Author

MOHAMMAD AZIM ANSARI

Parameters

column

The KQLiteColumn representing the column whose index is requested.

See also