[Fusionforge-general] Mutualized persistence storage table to share by plugins - Was: [Fwd: [Fusionforge-commits] r12819 - trunk/src/common/include]

Roland Mas lolando at debian.org
Fri Mar 18 10:18:04 CET 2011


Vincent Caron, 2011-03-17 22:46:57 +0100 :

[...]

>> The idea is simple : storing in a single 'mutualized' table serialized
>> object.
>> 
>> The table contains a key-value store per plugin.
>> 
>> Objects are serialized with php's serialiazation functions.
>
>   This works if your plugin only needs a simple key/value store, but as
> soon as it wants to select from a specific data inside the value, it
> fails.

[...]

>   Maybe you only want to foster a common key/value store for simple data
> like configuration and such, and do not prevent a plugin from using its
> own table when it obviously needs it ?

  I think that's the idea.  Plugins that only have very basic needs (a
handful of key/value pairs) can do without the database machinery of
creating/dropping tables on installation/removal, which simplifies
development, packaging and deployment *for those plugins*.  When more
complex stuff is required, the machinery will still be available (even
so when someone comes around to factoring the code that's currently
duplicated across plugins).

Roland.
-- 
Roland Mas

Sauvez un arbre, tuez un castor.



More information about the Fusionforge-general mailing list