You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
371 B
19 lines
371 B
1 year ago
|
#include <iostream>
|
||
|
|
||
|
#include "../lib/sql3.hpp"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
|
||
|
sql3 mydb("../example/example.db", true);
|
||
|
|
||
|
//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");
|
||
|
|
||
|
cout << endl << res["NAME"][0];
|
||
|
|
||
|
return 0;
|
||
|
}
|