EdiGrid *espReadTable(HttpConn *conn, cchar *tableName) { EdiGrid *grid; grid = ediReadWhere(espGetDatabase(conn), tableName, 0, 0, 0); espSetGrid(conn, grid); return grid; }
PUBLIC EdiGrid *readTable(cchar *tableName) { EdiGrid *grid; grid = ediReadWhere(getDatabase(), tableName, 0, 0, 0); setGrid(grid); return grid; }
EdiRec *ediReadOneWhere(Edi *edi, cchar *tableName, cchar *fieldName, cchar *operation, cchar *value) { EdiGrid *grid; if ((grid = ediReadWhere(edi, tableName, fieldName, operation, value)) == 0) { return 0; } if (grid->nrecords > 0) { return grid->records[0]; } return 0; }
PUBLIC EdiGrid *readTable(cchar *tableName) { return setGrid(ediReadWhere(getDatabase(), tableName, 0, 0, 0)); }
PUBLIC EdiGrid *readWhere(cchar *tableName, cchar *fieldName, cchar *operation, cchar *value) { return setGrid(ediReadWhere(getDatabase(), tableName, fieldName, operation, value)); }
EdiGrid *espReadRecsWhere(HttpConn *conn, cchar *tableName, cchar *fieldName, cchar *operation, cchar *value) { // MOB - where else should call espSetGrid return espSetGrid(conn, ediReadWhere(espGetDatabase(conn), tableName, fieldName, operation, value)); }