Commit graph

5 commits

Author SHA1 Message Date
eelke
c346430b25 Abstract IResult interface for Result
This is to allow faking the result for testing the CrudModel.
2022-02-06 12:19:43 +01:00
eelke
e32c82ac6f 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.
2018-12-09 20:24:11 +01:00
eelke
cfc218c43b Added to functions to Pgsql::Result to help in doing smart things based on a result.
- ftable, return from which table the column in the result originates
- ftableCol, returns the column number within that table (attnum)
Ofcourse columns can also be expressions in which case these functions return InvalidOid and 0.
2018-11-10 11:36:35 +01:00
eelke
d1114793a1 Fixed missing comman in pg_class query.
Added checks on row and column indexes in Pgsql::Result to detect these kind of problems earlier in the future.
2017-12-17 20:28:02 +01:00
eelke
bebb3391c3 Builds on windows again 2017-11-26 13:07:21 +01:00
Renamed from src/pgsql/Pgsql_Result.h (Browse further)