Compare commits

..

No commits in common. "sqlitetest" and "master" have entirely different histories.

2 changed files with 7 additions and 27 deletions

View File

@ -1,34 +1,14 @@
#include <iostream>
#include <string>
#include<iostream>
#include "headers/3rd-party/sqlite_orm.h"
using namespace sqlite_orm;
class item{
public:
private:
struct employee{
int id;
std::string first_name;
std::string last_name;
double salary;
};
// class item{
// public:
// private:
// };
int main(){
auto employees = make_storage("sqlite.db3",
make_table("Employees",
make_column("id", &employee::id, autoincrement(), primary_key()),
make_column("first_name", &employee::first_name),
make_column("last_name", &employee::last_name),
make_column("salary", &employee::salary)
)
);
employees.sync_schema();
employees.remove_all<employee>();
employees.replace(employee{0,"Sagar","Ramsaransingh",120000});
system("PAUSE");
return 0;
std::cout << "Hello";
return 0;
}

Binary file not shown.