Replace clear global response string
This commit is contained in:
parent
f6c8443c5d
commit
3a67bf47c2
@ -8,12 +8,17 @@ int main() {
|
|||||||
|
|
||||||
sql3 mydb("../example/example.db", false);
|
sql3 mydb("../example/example.db", false);
|
||||||
|
|
||||||
//cout << mydb.ask("Select * from Tab1");
|
// cout << mydb.ask("Select * from Tab1");
|
||||||
// cout << mydb.ask("INSERT INTO Tab1 VALUES(3,'Pakora', 'marijanab@bitelex.ml');");
|
// cout << mydb.ask("INSERT INTO Tab1 VALUES(3,'Pakora', 'marijanab@bitelex.ml');");
|
||||||
|
|
||||||
auto res = mydb.query("Select * from Tab1");
|
auto res = mydb.query("Select * from Tab1");
|
||||||
|
|
||||||
cout << endl << res["NAME"][0];
|
for (auto i : res)
|
||||||
|
for (auto j: i.second)
|
||||||
|
cout << i.first << " : " << j << endl;
|
||||||
|
|
||||||
|
|
||||||
|
// cout << endl << res["NAME"][1];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
BIN
test/test.o
BIN
test/test.o
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user