# Copyright (c) 2013-2016 Silke Horn, Andreas Paffenholz
# http://solros.de/polymake/poly_db
# http://www.mathematik.tu-darmstadt.de/~paffenholz
# 
# This file is part of the polymake extension polyDB.
# 
# polyDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# polyDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with polyDB.  If not, see <http://www.gnu.org/licenses/>.


# @topic category any/Database
# Here you can find the functions to access the polymake database.

# @topic category functions/Database Admin
# These are administrative functions. You need admin access to the database for these.
# 
# This category also contains functions that I want to hide from the public because they are not yet completely presentable.

# @topic category functions/Database Write Access
# These are the functions to insert and update objects. You need write access to the database for these. 

CONFIGURE {
   eval("require MongoDB;");
   if ($@) {
      die "Could not load perl MongoDB module: $@\n\nSee 'help \"install_mongodb\";' for an installation guide.\n";
   } else {
      return 1;
   }
}

require PolyDB;

CREDIT polyDB
   Access to the polymake polytope database.
   (c) 2013-16 Silke Horn, Andreas Paffenholz
   http://www.mathematik.tu-darmstadt.de/~paffenholz

INCLUDE
	db_templates.rules
	db_query.rules
	db_info.rules
	db_insert.rules
	db_admin.rules
	db_cursor.rules


#	db_update_client.rules # check
