/*****************************************************************************/ /* database.h : Liens vers les greffons d'interface de base de données * database.h : Links to plug-ins for database interface * * * ToutDoux : Chtit gestionnaire de projet - A littl' project manage * Copyright (c) 2000-2001 Philippe Roy * Auteur - Author : Philippe Roy <ph_roy@toutdoux.org> * * * Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier * sous les termes de la licence publique générale GNU telle qu'elle est publiée par * la Free Software Foundation ; soit la version 2 de la licence, ou * (comme vous voulez) toute version ultérieure. * * Ce programme est distribué dans l'espoir qu'il sera utile, * mais SANS AUCUNE GARANTIE ; même sans la garantie de * COMMERCIALITÉ ou d'ADÉQUATION A UN BUT PARTICULIER. Voir la * licence publique générale GNU pour plus de détails. * * Vous devriez avoir reçu une copie de la licence publique générale GNU * avec ce programme ; si ce n'est pas le cas, écrivez à la Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * This program 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 2 of the License, or * (at your option) any later version. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*****************************************************************************/ /*****************************************************************************/ /*** Création des tables - Table creating */ /*****************************************************************************/ gboolean td_database_table_create (GtkObject *table); gboolean td_database_base_create (GtkObject *base); gboolean td_database_table_exist (gchar *table); /*****************************************************************************/ /*** Destruction des tables - Table destroying */ /*****************************************************************************/ gboolean td_database_table_drop (GtkObject *table); gboolean td_database_base_drop (void); /*****************************************************************************/ /*** Remplissage de tables - Tables filling */ /*****************************************************************************/ gboolean td_database_table_copy_in (GtkObject *datatable); /*****************************************************************************/ /*** Requete - Query */ /*****************************************************************************/ gboolean td_database_command (gchar* query); gboolean td_database_command_asyn (gchar* query); gboolean td_database_insert (gchar* query, gchar* table); GtkObject *td_database_select (gchar* query); GList *td_database_field (gchar* query); GList *td_database_row (gchar* query); GList *td_database_column (gchar* query); gchar *td_database_value (gchar* query); void td_database_set_current (gchar* query); gchar *td_database_current (gchar* query); /*****************************************************************************/ /*** Chaîne de caractère - String */ /*****************************************************************************/ gchar *td_database_strescape (gchar *source); gchar *td_database_adaptvalue (gchar *value, gchar *type);