예제 #1
0
EdiGrid *espReadTable(HttpConn *conn, cchar *tableName)
{
    EdiGrid *grid;
    
    grid = ediReadWhere(espGetDatabase(conn), tableName, 0, 0, 0);
    espSetGrid(conn, grid);
    return grid;
}
예제 #2
0
PUBLIC EdiGrid *readTable(cchar *tableName)
{
    EdiGrid *grid;
    
    grid = ediReadWhere(getDatabase(), tableName, 0, 0, 0);
    setGrid(grid);
    return grid;
}
예제 #3
0
파일: edi.c 프로젝트: varphone/appweb-4
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;
}
예제 #4
0
파일: espAbbrev.c 프로젝트: embedthis/esp
PUBLIC EdiGrid *readTable(cchar *tableName)
{
    return setGrid(ediReadWhere(getDatabase(), tableName, 0, 0, 0));
}
예제 #5
0
파일: espAbbrev.c 프로젝트: embedthis/esp
PUBLIC EdiGrid *readWhere(cchar *tableName, cchar *fieldName, cchar *operation, cchar *value)
{
    return setGrid(ediReadWhere(getDatabase(), tableName, fieldName, operation, value));
}
예제 #6
0
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));
}