most features are implemented #4

Merged
MassiveAtoms merged 20 commits from sqlitecpp into master 2019-06-30 18:34:59 +00:00
4 changed files with 410 additions and 396 deletions
Showing only changes of commit 4294d4e68c - Show all commits

View File

@ -11,9 +11,22 @@ include_directories(
add_executable(park main.cpp data.cpp headers/data.h Customer.cpp headers/Customer.h Park_spot.cpp headers/Park_spot.h Park_time.cpp headers/Park_time.h)
target_link_libraries(park
if (UNIX)
target_link_libraries(park
SQLiteCpp
sqlite3
pthread
dl
)
elseif (MSYS OR MINGW)
target_link_libraries(park
SQLiteCpp
sqlite3
pthread
ssp
)
endif()

View File

@ -33,7 +33,8 @@ int main() {
SQLite::Database db = data::start_db();
// see implementation of update_db, save_db and delete_db of customer to see how queries and statements work
Customer sagar{"Ramsaransing", Verhicle_type::medium, db};
Customer sagar{"Sagar Winston Ramsaransing", Verhicle_type::medium, db};
sagar.update_db(db);
sagar.delete_db(db);
cout << "THIS WRKS";
// sagar.delete_db(db);
}

BIN
test.db3

Binary file not shown.