I'm using libpqxx to access PostgreSQL database. It provides very low level interface so queries are actually constructed by hand using string operations. I feel that this approach has some drawbacks:
- typos possibility
- no type checking
- a lot of handwriting
So most errors will be noticed at runtime. I would like to have more checks at compile time so that code that I write and ship is more reliable. Is there a solution to my problem?