r-Techsupport / hyde

A web editor and CMS for Jekyll/git static sites.
GNU General Public License v3.0
6 stars 3 forks source link

Refactor database code to store db pool internally #30

Closed zleyyij closed 3 months ago

zleyyij commented 3 months ago

Move the database connection pool into a struct, then implement all of the database methods on that struct using impl, and store that struct in app state.