sqlitebrowser / dbhub.io

A "Cloud" for SQLite databases. Collaborative development for your data. 😊
https://dbhub.io
GNU Affero General Public License v3.0
372 stars 39 forks source link

Code refactoring thoughts :) #137

Closed justinclift closed 1 year ago

justinclift commented 4 years ago

Our code here has substantial amounts of code duplication, mostly around authenticating user supplied data.

Along the lines of:

Instead of that, we should:

We'd likely use https://github.com/go-playground/validator as the base for it.

I started working on this a few months ago, mainly because it would also get our Unicode handling in place, but got side tracked. It's not even slightly finished, but might be useful as reference info for the next attempt: :wink:

    https://github.com/sqlitebrowser/dbhub.io/tree/improve_validation_unicode_v1

justinclift commented 1 year ago

Closing this, as Martin has refactored most of the duplicated code already. :smile: