1 /* 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License 4 * as published by the Free Software Foundation; either version 2 5 * of the License, or (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 15 */ 16 17 #ifndef INCLUDED_SQL_DBCREATOR_TYPES 18 #define INCLUDED_SQL_DBCRETAOR_TYPES 19 20 #include "common/list.h" 21 22 typedef struct sqlcommand 23 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS 24 { 25 char * sql_command; 26 char * mode; 27 char * extra_cmd; 28 } 29 #endif 30 t_sqlcommand; 31 32 typedef struct column 33 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS 34 { 35 char * name; 36 char * value; 37 char * mode; 38 char * extra_cmd; 39 } 40 #endif 41 t_column; 42 43 typedef struct table 44 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS 45 { 46 char * name; 47 t_list * columns; 48 t_list * sql_commands; 49 } 50 #endif 51 t_table; 52 53 typedef struct db_layout 54 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS 55 { 56 t_list * tables; 57 } 58 #endif 59 t_db_layout; 60 61 62 #endif /* INCLUDED_SQL_DBCREATOR_TYPES */ 63 64 #ifndef JUST_NEED_TYPES 65 66 #ifndef INCLUDED_SQL_DBCREATOR_PROTOS 67 #define INCLUDED_SQL_DBCRETAOR_PROTOS 68 69 #ifndef SQL_INTERNAL 70 #define SQL_INTERNAL 1 71 #endif 72 # include "sql_common.h" 73 #undef SQL_INTERNAL 74 75 int sql_dbcreator(t_sql_engine * sql); 76 77 #endif /* INCLUDED_SQL_DBCREATOR_PROTOS */ 78 #endif /* JUST_NEED_TYPES */ 79