/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ************************************************************************** * * * File: myddas.yap * * Last rev: * * mods: * * comments: Global predicates for the MyDDAS Interface * * * *************************************************************************/ #if defined MYDDAS_MYSQL || defined MYDDAS_ODBC :- load_foreign_files([myddas], [], init_myddas). /* Initialize MYDDAS GLOBAL STRUCTURES */ :- c_db_initialize_myddas. #ifdef DEBUG :- yap_flag(single_var_warnings,on). #endif :- module(myddas,[ db_open/5, db_open/4, db_close/1, db_close/0, db_verbose/1, db_module/1, db_is_database_predicate/3, #ifdef MYDDAS_STATS db_stats/1, db_stats/2, db_stats_time/2, #endif db_sql/2, db_sql/3, db_sql_select/3, db_prolog_select/2, db_prolog_select/3, db_prolog_select_multi/3, db_command/2, db_assert/2, db_assert/1, db_create_table/3, db_export_view/4, db_update/2, db_get_attributes_types/2, db_get_attributes_types/3, db_number_of_fields/2, db_number_of_fields/3, db_multi_queries_number/2, % myddas_top_level.ypp #ifdef MYDDAS_TOP_LEVEL db_top_level/4, db_top_level/5, db_datalog_select/3, #endif % myddas_assert_predicates.ypp db_import/2, db_import/3, db_view/2, db_view/3, db_insert/2, db_insert/3, db_abolish/2, db_listing/0, db_listing/1 #ifdef MYDDAS_MYSQL % myddas_mysql.ypp , db_my_result_set/1, db_datalog_describe/1, db_datalog_describe/2, db_describe/3, db_describe/2, db_datalog_show_tables/1, db_datalog_show_tables/0, db_show_tables/2, db_show_tables/1, db_show_database/2, db_show_databases/2, db_show_databases/1, db_change_database/2, db_call_procedure/4, db_call_procedure/3, db_my_sql_mode/1, db_my_sql_mode/2, db_sql_mode/1, db_sql_mode/2 #endif ]). /** @defgroup MYDDAS The MYDDAS Data-base interface. @ingroup YAPPackages The MYDDAS database project was developed within a FCT project aiming at the development of a highly efficient deductive database system, based on the coupling of the MySQL relational database system with the Yap Prolog system. MYDDAS was later expanded to support the ODBC interface. @section Requirements_and_Installation_Guide Requirements and Installation Guide Next, we describe how to usen of the YAP with the MYDDAS System. The use of this system is entirely depend of the MySQL development libraries or the ODBC development libraries. At least one of the this development libraries must be installed on the computer system, otherwise MYDDAS will not compile. The MySQL development libraries from MySQL 3.23 an above are know to work. We recommend the usage of MySQL versusODBC, but it is possible to have both options installed At the same time, without any problem. The MYDDAS system automatically controls the two options. Currently, MYDDAS is know to compile without problems in Linux. The usage of this system on Windows has not been tested yet. MYDDAS must be enabled at configure time. This can be done with the following options: