ElephantInTheRoomFirst

Results comments of ElephantInTheRoomFirst

Thanks. I tried to oversimplify the documentation. Please, let me know if it makes sense to you. It is more in line with usage. Suggestion: enum class sync_schema_result { new_tbl_created,...

5. I added enum sync_schema_status and schema_status. It will return schema_status.

I added schema_status. But how should it return schema status for all tables? It is still question for me.

Yes, it should return std::map. How should it be implemented? It should be for all tables in database.

Thanks, I think, it will be hard for me. Sorry.

I checked your recent code. You added sync_schema_simulate function. simulate has different meaning e.g. proxy implementation. I feel schema_status instead of sync_schema_simulate is better name.

Here is sample class for you. class CTransaction { Storage& mStorage; bool mIsCommitted: CTransaction(Storage) : mStorage(Storage), mIsCommitted(false) { mStorage.begin transaction() } ~CTransaction() { //rollback transaction if uncommiited and begun if(!mIsCommitted)...

I checked the transaction function. It is little less flexible than I want. The lambda function signature is not useful for me.