Rob van Maris wrote:
You set them up in the same way as you do with the database support classes: you configure which database to use in mmbaseroot.xmlI suggest anyone that likes to develop a new database support class to use the Storage classes, which are documented.Then tell me how to use these, or point me to some documentation. I have no idea how to set up my configuration to use the new storage classes.
There are two databases that now work with Storage: mysql and postgresql.
These are described in relational.xml and postgresql.xml, in the database dir in the MMBase config. They have documentation on how to configure the various schemes (database instruction templates).
Adding a new database would work in a similar way, though some databases might need additonal implementation for specific targets such as generating a key, or craeting dependent tables (though I think a lot can be done using the schemes).
For OO databses, you can extend OODatabaseStorage.java. for relational databases extend RelationalDatabaseStorage.java.
--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Never summon anything bigger than your head."
