Documentation

This commit is contained in:
Peter 'Pita' Martischka 2011-05-30 15:53:11 +01:00
parent 88297a99ef
commit f7b46f6e69
22 changed files with 368 additions and 447 deletions

View file

@ -1,4 +1,9 @@
/**
* The DB Module provides a database initalized with the settings
* provided by the settings module
*/
/*
* 2011 Peter 'Pita' Martischka
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -20,9 +25,15 @@ var settings = require("./settings");
//set database settings
var db = new ueberDB.database(settings.dbType, settings.dbSettings);
//set the exported db to null, we will set it in intalize
/**
* The UeberDB Object that provides the database functions
*/
exports.db = null;
/**
* Initalizes the database with the settings provided by the settings module
* @param callback {Function}
*/
exports.init = function(callback)
{
//initalize the database async