ophiuchus2 / wrongthink

self hosted discord clone
GNU Affero General Public License v3.0
4 stars 0 forks source link

Initial work on DB abstraction layer #23

Closed owwk closed 3 years ago

owwk commented 3 years ago

Abstraction hierachy has been created and all functions in Util.cpp have been moved into the DBPostgres class. The rest of the code has been updated to use the new abstract db interface where calls to Util.cpp were previously, and Util.cpp has been removed.

No extra functionality has been added, this commit is really just a big restructure. The DB calls in WrongThinkServerImpl still need to be abstracted out and a SQLite implementation still needs to be created.