ORDAStatementResult Protocol Reference
Conforms to | ORDAResult |
Declared in | ORDAStatementResult.h |
Overview
The ORDAStatementResult protocol is the protocol that all statement results must conform to.
Tasks
Properties
-
– changed
the number of inserted, updated, or deleted rows or -1 for select
required method -
– rows
the number of result rows
required method -
– columns
the number of result columns
required method -
– lastID
the ID of the last inserted row, or -1 for select, update, or delete
required method
Data
-
– objectAtIndexedSubscript:
Treats the result as an array of dictionaries
required method -
– objectForKeyedSubscript:
Treats the result as a dictionary of arrays
required method
Instance Methods
changed
the number of inserted, updated, or deleted rows or -1 for select
- (int)changed
Return Value
the number of inserted, updated, or deleted rows or -1 for select
Declared In
ORDAStatementResult.h
columns
the number of result columns
- (int)columns
Return Value
the number of result columns
Declared In
ORDAStatementResult.h
lastID
the ID of the last inserted row, or -1 for select, update, or delete
- (long long)lastID
Return Value
the ID of the last inserted row, or -1 for select, update, or delete
Declared In
ORDAStatementResult.h
objectAtIndexedSubscript:
Treats the result as an array of dictionaries
- (NSDictionary *)objectAtIndexedSubscript:(NSUInteger)idx
Parameters
- idx
the row index
Return Value
the idx'th row’s data, index by column name
Declared In
ORDAStatementResult.h