Eneboo - Documentación para desarrolladores
src/dbf/sql.h
Ir a la documentación de este archivo.
00001 /***********************************************************************************
00002  * sql.h
00003  ***********************************************************************************
00004  * conversion of dbf files to sql
00005  * 
00006  * Version 0.2, 2003-09-08
00007  * Author: Dr Georg Roesler, groesle@gwdg.de
00008  *
00009  * History:
00010  * 2003-09-08   teterin,berg    Fixing some errors in the produced SQL statements
00011  *                                                              Support for MySQL and PostGres
00012  * 2003-02-24   jones                   some minor changes
00013  * - Version 0.1 - February 2003
00014  *       first implementation in dbf.c
00015  ************************************************************************************/
00016 
00017 #ifndef _SQL_EXPORT_
00018 #define _SQL_EXPORT_
00019 
00020 #include <string.h>
00021 #include <stdio.h>
00022 #include <stdlib.h>
00023 #include <fcntl.h>
00024 #include <limits.h>
00025 #ifdef __unix__
00026 #       include <sys/stat.h>
00027 #       include <unistd.h>
00028 #elif __MSDOS__
00029 #       include <io.h>
00030 #       include <sys/stat.h>
00031 #elif _WIN32
00032 #       include <io.h>
00033 #       include <sys/stat.h>
00034 #endif
00035 
00036 #include "an_string.h"
00037 #include "tables.h"
00038 
00039 int setSQLTrim(FILE *fp, const struct DB_FIELD * header, int header_length,
00040     const char *filename, const char *mode /* ``l''. or ``r'', or ``b'' */);
00041 int writeSQLHeader(FILE *fp, const struct DB_FIELD * header, int header_length,
00042     const char *filename, const char *export_filename);
00043 int writeSQLLine(FILE *fp, const struct DB_FIELD * header,
00044     const unsigned char *value, int header_length,
00045     const char *filename,  const char *export_filename);
00046 
00047 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'