| 544 | } |
| 545 | |
| 546 | static int fvecsEachColumn(sqlite3_vtab_cursor *cur, |
| 547 | sqlite3_context *context, |
| 548 | int i) { |
| 549 | |
| 550 | auto pCur = static_cast<fvecsEach_cursor *>(cur); |
| 551 | |
| 552 | switch (i) { |
| 553 | |
| 554 | case FVECS_EACH_DIMENSIONS: |
| 555 | sqlite3_result_int(context, pCur->iCurrentD); |
| 556 | break; |
| 557 | |
| 558 | case FVECS_EACH_VECTOR: |
| 559 | resultVector(context, pCur->pCurrentVector.get()); |
| 560 | break; |
| 561 | |
| 562 | case FVECS_EACH_INPUT: |
| 563 | sqlite3_result_null(context); |
| 564 | break; |
| 565 | } |
| 566 | return SQLITE_OK; |
| 567 | } |
| 568 | |
| 569 | /* |
| 570 | * This following structure defines all the methods for the |
nothing calls this directly
no test coverage detected