Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _FLAT_CON_H
00026 #define _FLAT_CON_H
00027
00036 #include "../../lib/srdb2/db_pool.h"
00037 #include "../../lib/srdb2/db_con.h"
00038 #include "../../lib/srdb2/db_uri.h"
00039
00040 #include <stdio.h>
00041
00042
00046 enum flat_con_flags {
00047 FLAT_OPENED = (1 << 0),
00048 };
00049
00050
00051 struct flat_file {
00052 char* filename;
00053 str table;
00054 FILE* f;
00055 };
00056
00057
00065 struct flat_con {
00066 db_pool_entry_t gen;
00067 struct flat_file* file;
00068 int n;
00069 unsigned int flags;
00070 };
00071
00072
00080 int flat_con(db_con_t* con);
00081
00082
00083 int flat_con_connect(db_con_t* con);
00084
00085
00086 void flat_con_disconnect(db_con_t* con);
00087
00088
00089 int flat_open_table(int *idx, db_con_t* con, str* name);
00090
00093 #endif