mercredi 6 mai 2015

Suitable REGEX / Script to rename SQLite definitions and functions

We embed SQLite into several of our applications using our DBAccess framework, but sometimes we come across other frameworks (Salesforce etc..) that also contain SQLite and we get lots of duplicate symbols. So I spend what feels like hours refactoring everything to be preceded with different names to differentiate the two libraries.

We do modify some parts of SQLite and adjust some of the compiler directives. So we can't use the system library versions and as far as we can see we do still have to compile the source ourselves.

Does anyone know of some neat script that will refactor the SQLite codebase to change say the function sqlite3_column call to dba_sqlite3_column, and defines too such as SQLITE_ENABLE_METADATA to DBA_SQLITE_ENABLE_METADATA.

We would like to stay up to date with the latest releases without a huge burden.

Any tips or advice would be gratefully received.

Aucun commentaire:

Enregistrer un commentaire