Lines Matching refs:qrf
132 /* Add -DSQLITE_ENABLE_QRF_IN_TCL to add the Query Result Formatter (QRF)
134 ** source files. The QRF is included automatically when building from
138 #include "qrf.h"
2056 ** provided into human-readable form using the Query Result Formatter (QRF)
2088 ** is below. Use this to reference the QRF documentation:
2118 Tcl_SetResult(pDb->interp, "QRF not available in this build", TCL_VOLATILE);
2125 sqlite3_qrf_spec qrf; /* Formatting spec */
2143 memset(&qrf, 0, sizeof(qrf));
2144 qrf.iVersion = 1;
2145 qrf.pzOutput = &zResult;
2184 qrf.eStyle = aStyleMap[style];
2197 qrf.eEsc = aEscMap[esc];
2219 qrf.eText = aTextMap[txt];
2221 qrf.bTitles = txt ? QRF_Yes : QRF_No;
2222 qrf.eTitle = QRF_TEXT_Auto;
2224 qrf.bTitles = QRF_Yes;
2225 qrf.eTitle = aTextMap[txt-2];
2243 qrf.eBlob = aBlobMap[blob];
2250 qrf.bWordWrap = aBoolMap[v];
2261 qrf.bTextJsonb = aBoolMap[v];
2263 qrf.bBorder = aBoolMap[v];
2265 qrf.bSplitColumn = aBoolMap[v];
2276 qrf.eDfltAlign = aAlignMap[ax];
2278 qrf.eTitleAlign = aAlignMap[ax];
2295 qrf.nWrap = v;
2297 qrf.nScreenWidth = v;
2299 qrf.nTitleLimit = v;
2301 qrf.nLineLimit = v;
2309 qrf.nCharLimit = v;
2316 qrf.nMultiInsert = v;
2323 sqlite3_free(qrf.aAlign);
2324 qrf.aAlign = sqlite3_malloc64( (n+1)*sizeof(qrf.aAlign[0]) );
2325 if( qrf.aAlign==0 ){
2330 memset(qrf.aAlign, 0, (n+1)*sizeof(qrf.aAlign[0]));
2331 qrf.nAlign = n;
2340 qrf.aAlign[jj] = aAlignMap[x];
2348 sqlite3_free(qrf.aWidth);
2349 qrf.aWidth = sqlite3_malloc64( (n+1)*sizeof(qrf.aWidth[0]) );
2350 if( qrf.aWidth==0 ){
2355 memset(qrf.aWidth, 0, (n+1)*sizeof(qrf.aWidth[0]));
2356 qrf.nWidth = n;
2368 qrf.aWidth[jj] = (short int)v;
2372 qrf.zColumnSep = Tcl_GetString(objv[i+1]);
2375 qrf.zRowSep = Tcl_GetString(objv[i+1]);
2378 qrf.zTableName = Tcl_GetString(objv[i+1]);
2381 qrf.zNull = Tcl_GetString(objv[i+1]);
2385 qrf.iVersion = atoi(Tcl_GetString(objv[i+1]));
2395 char *zErr = 0; /* Error message from QRF */
2400 rc = sqlite3_format_query_result(pStmt->pStmt, &qrf, &zErr);
2414 sqlite3_free(qrf.aWidth);
2415 sqlite3_free(qrf.aAlign);