Implement fast enumeration.
FossilOrigin-Name: 2da674855b3d179b7524f02132638c404a62952fce04cc7a97907d133939c826
This commit is contained in:
parent
a5aa71484f
commit
74aa01c7cd
2 changed files with 36 additions and 0 deletions
4
test.m
4
test.m
|
@ -42,6 +42,10 @@ OF_APPLICATION_DELEGATE(Test)
|
|||
of_log(@"%@", result);
|
||||
of_log(@"JSON: %@", [result JSONRepresentation]);
|
||||
|
||||
for (id row in result)
|
||||
for (id col in row)
|
||||
of_log(@"%@", col);
|
||||
|
||||
result = [connection executeCommand: @"SELECT COUNT(*) FROM test"];
|
||||
of_log(@"%@", result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue