Ya boi came through

This commit is contained in:
TinyAtoms 2019-06-27 00:55:27 -03:00
parent 6be7af0933
commit 4294d4e68c
4 changed files with 410 additions and 396 deletions

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)
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.