Created Pgsql::Transaction class for handling of transactions. It auto rollsback if no commit has been done.

Also moved some code out of the connection files to their own files.
This commit is contained in:
eelke 2018-12-09 20:24:11 +01:00
parent 255b2ec970
commit e32c82ac6f
12 changed files with 394 additions and 130 deletions

View file

@ -35,9 +35,11 @@ SOURCES += Pgsql_Connection.cpp \
Pgsql_Result.cpp \
Pgsql_Row.cpp \
Pgsql_Value.cpp \
Pgsql_Col.cpp \
ArrayParser.cpp \
Pgsql_oids.cpp
Pgsql_oids.cpp \
Pgsql_Transaction.cpp \
Pgsql_ErrorDetails.cpp \
Pgsql_Canceller.cpp
HEADERS += Pgsql_Connection.h \
Pgsql_Params.h \
@ -49,7 +51,10 @@ HEADERS += Pgsql_Connection.h \
Pgsql_Col.h \
ArrayParser.h \
Pgsql_oids.h \
SqlGenerator.h
SqlGenerator.h \
Pgsql_Transaction.h \
Pgsql_ErrorDetails.h \
Pgsql_Canceller.h
#FORMS +=