2014-01-24 19:59:42 +00:00
|
|
|
/* MYDDAS */
|
|
|
|
|
2015-02-10 09:17:59 +00:00
|
|
|
#ifdef USE_MYDDAS
|
2014-01-24 19:59:42 +00:00
|
|
|
|
|
|
|
/* myddas_initialization.c */
|
2016-07-31 16:02:06 +01:00
|
|
|
extern MYDDAS_GLOBAL myddas_init_initialize_myddas(void);
|
|
|
|
extern MYDDAS_UTIL_CONNECTION
|
|
|
|
myddas_init_initialize_connection(void *, void *, MYDDAS_API,
|
|
|
|
MYDDAS_UTIL_CONNECTION);
|
|
|
|
extern MYDDAS_UTIL_PREDICATE myddas_init_initialize_predicate(const char *, int,
|
|
|
|
const char *,
|
|
|
|
MYDDAS_UTIL_PREDICATE);
|
2014-01-24 19:59:42 +00:00
|
|
|
|
|
|
|
#ifdef MYDDAS_STATS
|
|
|
|
/* myddas_statistics.c */
|
2016-07-31 16:02:06 +01:00
|
|
|
extern MYDDAS_GLOBAL myddas_stats_initialize_global_stats(MYDDAS_GLOBAL);
|
|
|
|
extern MYDDAS_STATS_STRUCT myddas_stats_initialize_connection_stats(void);
|
|
|
|
extern void myddas_stats_delete_stats_list(MYDDAS_STATS_STRUCT);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif /* MYDDAS_STATS */
|
|
|
|
|
|
|
|
#ifdef MYDDAS_MYSQL
|
|
|
|
/* myddas_util.c */
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void init_mysq( void );
|
|
|
|
extern void myddas_util_table_write(MYSQL_RES *);
|
|
|
|
extern MYDDAS_UTIL_CONNECTION myddas_util_add_connection(void *, void *, MYDDAS_API);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|
2016-07-31 16:02:06 +01:00
|
|
|
extern MYDDAS_UTIL_CONNECTION myddas_util_search_connection(void *con);
|
|
|
|
extern MYDDAS_UTIL_CONNECTION myddas_util_search_connection(void *);
|
|
|
|
extern void myddas_util_delete_connection(void *);
|
|
|
|
extern MYDDAS_UTIL_CONNECTION myddas_util_add_predicate(const char *, Int,
|
|
|
|
const char *, void *);
|
|
|
|
extern MYDDAS_UTIL_PREDICATE myddas_util_search_predicate(const char *, Int,
|
|
|
|
const char *);
|
|
|
|
extern void myddas_util_delete_predicate(MYDDAS_UTIL_PREDICATE);
|
2014-01-24 19:59:42 +00:00
|
|
|
|
|
|
|
/* Get's the number of queries to save */
|
2016-07-31 16:02:06 +01:00
|
|
|
extern UInt myddas_util_get_total_multi_queries_number(MYDDAS_UTIL_CONNECTION);
|
|
|
|
extern void myddas_util_set_total_multi_queries_number(MYDDAS_UTIL_CONNECTION, UInt);
|
2014-01-24 19:59:42 +00:00
|
|
|
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void *myddas_util_get_list_pred(MYDDAS_UTIL_CONNECTION);
|
|
|
|
extern void *myddas_util_get_pred_next(void *);
|
|
|
|
extern const char *myddas_util_get_pred_module(void *);
|
|
|
|
extern const char *myddas_util_get_pred_name(void *);
|
|
|
|
extern MyddasInt myddas_util_get_pred_arity(void *);
|
2016-01-03 02:06:09 +00:00
|
|
|
// DELETE THIS WHEN DB_STATS IS COMPLETED
|
2016-07-31 16:02:06 +01:00
|
|
|
extern MyddasInt get_myddas_top(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void check_int(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MYDDAS_MYSQL || MYDDAS_ODBC */
|
|
|
|
|
|
|
|
/* myddas_mysql.c */
|
|
|
|
#if defined MYDDAS_MYSQL
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void Yap_InitMYDDAS_MySQLPreds(void);
|
|
|
|
extern void Yap_InitBackMYDDAS_MySQLPreds(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* myddas_odbc.c */
|
|
|
|
#if defined MYDDAS_ODBC
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void init_odbc( void );
|
|
|
|
extern void Yap_InitMYDDAS_ODBCPreds(void);
|
|
|
|
extern void Yap_InitBackMYDDAS_ODBCPreds(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|
|
|
|
|
2016-07-31 16:02:06 +01:00
|
|
|
/* myddas_postgres.c */
|
|
|
|
#if defined MYDDAS_POSTGRES
|
|
|
|
extern void init_postgres( void );
|
|
|
|
extern void Yap_InitMYDDAS_PostgresPreds(void);
|
|
|
|
extern void Yap_InitBackMYDDAS_PostgresPreds(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* myddas_sqlite3.c */
|
2015-02-11 10:33:35 +00:00
|
|
|
#if defined MYDDAS_SQLITE3
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void init_sqlite3( void );
|
|
|
|
extern void Yap_InitMYDDAS_SQLITE3Preds(void);
|
|
|
|
extern void Yap_InitBackMYDDAS_SQLITE3Preds(void);
|
2015-02-11 10:33:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Myddas_shared.c */
|
|
|
|
#if defined USE_MYDDAS
|
2016-07-31 16:02:06 +01:00
|
|
|
extern void Yap_MYDDAS_delete_all_myddas_structs(void);
|
|
|
|
extern void Yap_InitMYDDAS_SharedPreds(void);
|
|
|
|
extern void Yap_InitBackMYDDAS_SharedPreds(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* myddas_top_level.c */
|
2016-01-03 02:06:09 +00:00
|
|
|
#if defined MYDDAS_TOP_LEVEL && \
|
2016-07-31 16:02:06 +01:00
|
|
|
defined MYDDAS_MYSQL //&& defined HAVE_LIBREADLINE
|
|
|
|
extern void Yap_InitMYDDAS_TopLevelPreds(void);
|
2014-01-24 19:59:42 +00:00
|
|
|
#endif
|