MGsDb - is a structure used to hold properties of a data base
mojave green software co's general utilities library libMG.so.0 ( -lMG )
#include <libMG.h> MGsDb {dbName}; /* where {dbName} is the MGsDb type structure used to hold */ /* data base properties */
properties contained in a MGsDb data type structure are:
char* buffer
purpose: Buffer used to contain the data base.
char* field
purpose: Used internally by MGrDbArray(3) when assigning an array to a data base. This field is essentially meaningless to any other routine and will propbably be moved from MGsDb in a later version.
char* mode
purpose: Mode in which the data base is opened, see fopen(3) for all possible modes. The most common would be "r" for reading, "r+" for read/write and "a" for appending.
char* name
purpose: Name and path of the data base file.
char** record;
purpose: Used internally by MGrDbArray(3) when assigning an array to a data base. This field is essentially meaningless to any other routine and will propbably be moved from MGsDb in a later version.
char*** array
purpose: The ultimate purpose of this data structure ( MGsDb ) is to get this property set. Once set, the data base may be accessed simply by using this array like so: {dbName}.array[{record number}][{field number}].
FILE* stream
purpose: stream assigned to data base file when it is opened.
int eof
purpose: Size of data base file in bytes.
int fieldQty
purpose: Quantity of fields per record.
int recordQty
purpose: Quantity of records per data base.
MGsDb sources | ||
---|---|---|
libMG.h | html | .h |
Mojave Green Software Co. Landers Ca Michael C. Shultz copyright(c) March 2004 all rights reserved