Add -[insertRows:intoTable:].

FossilOrigin-Name: 7b335b3af81d4506f2842748671541073f4c455b4a0ce8a108eab0d43280f3ad
This commit is contained in:
Jonathan Schleifer 2012-10-06 21:02:01 +00:00
parent f9be9ea547
commit 728b3d1e2a
4 changed files with 97 additions and 4 deletions

2
test.m
View file

@ -34,6 +34,8 @@ OF_APPLICATION_DELEGATE(Test)
[connection executeCommand: @"INSERT INTO test (id, content) "
@"VALUES($1, $2)"
parameters: @"2", @"Blup!!", nil];
[connection insertRow: @{ @"content": @"Hallo!", @"name": @"foo" }
intoTable: @"test"];
result = [connection executeCommand: @"SELECT * FROM test"];
of_log(@"%@", result);