Skip to content

Conversation

@btry
Copy link
Contributor

@btry btry commented Sep 9, 2022

Similar to CommonDBTM::pre_updateInDB()

A use case would be the management of a complex data which is hard / useless to store il multiple fields. It could be JSON encoded in a single field of the DB, but for manipulation should be decoded.

Combined with post_getFromDB and pre_updateInDb(), the new method pre_addInDB() could handle the JSON encode/decode process without hassle, maintaining in RAM the data as an array or an object, at developer's convenience.

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #number

Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add an entry in the changelog, in ### API changes > #### Added section ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants