[Nodedb-interop] Database shema of Nodewatcher

Mitar (spam-protected)
Sat Jun 11 11:29:12 CEST 2011


Hi!

> where can I find the database shema of Nodewatcher (WLAN-SI)?
> I know ofcourse that the shema is explained in the interop wiki but I canĀ“t 
> find the pure code. Any hint?

http://dev.wlan-si.net/browser/nodewatcher/nodewatcher/web/nodes/models.py

But there is work on progress on completely changing this into an
pluggable and extensible schema. A work in progress core part of this
schema can be found here:

http://dev.wlan-si.net/wiki/Nodewatcher/Registry/NodeConfiguration

The main difference is that schema becomes a tree structure, where
plugins can attach new field anywhere in the tree structure. Then other
plugins can use those new fields or stick to the core ones.

I have no idea how you could implement something like this in anything
else than Django (or some other system with good database abstraction)
as we are heavily relying on its abstraction and thus automation.
Because writing such SQL queries by hand is probably impossible.

The main motivation is that we have decided that a better approach than
one-suits-all is to make a system, which can be heavily customized by
everybody.

What would probably useful is to to name our fields and define the
content the same as you would have in your common schema definition. And
maybe define some automatic mapping between our tree-structure path and
(probably?) your flat schema table names.


Mitar




More information about the Nodedb-interop mailing list