MCPcopy Create free account
hub / github.com/audacity/audacity / idxCreateCandidates

Function idxCreateCandidates

lib-src/sqlite/shell.c:9395–9407  ·  view source on GitHub ↗

** Create candidate indexes in database [dbm] based on the data in ** linked-list pScan. */

Source from the content-addressed store, hash-verified

9393** linked-list pScan.
9394*/
9395static int idxCreateCandidates(sqlite3expert *p){
9396 int rc = SQLITE_OK;
9397 IdxScan *pIter;
9398
9399 for(pIter=p->pScan; pIter && rc==SQLITE_OK; pIter=pIter->pNextScan){
9400 rc = idxCreateFromWhere(p, pIter, 0);
9401 if( rc==SQLITE_OK && pIter->pOrder ){
9402 rc = idxCreateFromWhere(p, pIter, pIter->pOrder);
9403 }
9404 }
9405
9406 return rc;
9407}
9408
9409/*
9410** Free all elements of the linked list starting at pConstraint.

Callers 1

sqlite3_expert_analyzeFunction · 0.85

Calls 1

idxCreateFromWhereFunction · 0.85

Tested by

no test coverage detected