ElephantInTheRoomFirst

Results comments of ElephantInTheRoomFirst

Thanks ```c++ try { auto Storage = GetStorage(); //make_storage equivalent Storage.sync_schema(true); Storage.begin_transaction(); //following replace call are only simplified version of code. Obj = {...}; Storage.replace(Obj); Obj = {...}; Storage.replace(Obj); Storage.commit();...

Thanks, let me try it. 1. There are some class method calls in between replace calls. 2. I need to set some return values and log some details among their...

Thanks, it will be good. If the lock rollbacks on destroy then it is much more flexible option.

Thank you very much. It looks like you did lot many chnages. One simple Q, what will happen when you call sqlite3_close(nullptr);. I hope it will not crash.

I know it performs and I am not going to do it. I was just reading your code. Then then saw the code in destructor. What does happen if sqlite3_close(this->db...

OK. Then I close the issue. Thanks for addition of the code.

DB -int user_version() -void user_version(int value) -bool table_exists(const std::string &tableName) -std::string libversion() -void drop_table(const std::string &tableName) -int changes()??? -int total_changes()??? -int64 last_insert_rowid()??? -std::string current_timestamp(sqlite3 *db)??? Possible candidates with modification -void...

What will happen when I call select (i.e. CRUD) on this make_storage("empty.sqlite"); instance?

auto DB = make_storage(GetDBPath()); DB.table_exists("TableNames"); sqlite_orm/sqlite_orm.h:5049: error: ‘sqlite_orm::storage_t::impl_type {aka struct sqlite_orm::storage_impl}’ has no member named ‘table_exists’ return this->impl.table_exists(tableName, db); ~~~~~~~~~~~^~~~~~~~~~~~