Compare commits

...

1 Commits
dev ... thread

Author SHA1 Message Date
marcelb
475c33651c Add mutex as semaphore, for multithread support, also merge with fix-callback 2023-07-27 22:52:22 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -11,12 +11,12 @@ int main() {
// cout << mydb.ask("Select * from Tab1");
// cout << mydb.ask("INSERT INTO Tab1 VALUES(3,'Pakora', 'marijanab@bitelex.ml');");
// auto res = mydb.query("Select * from Tab1");
auto res = mydb.query("INSERT INTO Tab1 VALUES(4,'Mare', 'marijanab@bitelex.co');");
auto res = mydb.query("Select * from Tab1");
// auto res = mydb.query("INSERT INTO Tab1 VALUES(4,'Mare', 'marijanab@bitelex.co');");
// for (auto i : res)
// for (auto j: i.second)
// cout << i.first << " : " << j << endl;
for (auto i : res)
for (auto j: i.second)
cout << i.first << " : " << j << endl;
// cout << endl << res["NAME"][1];

Binary file not shown.