MCPcopy Index your code
hub / github.com/continuedev/continue / createLanceDocsTable

Method createLanceDocsTable

core/indexing/docs/DocsService.ts:1030–1053  ·  view source on GitHub ↗
(
    connection: LanceType.Connection,
    initializationVector: number[],
    tableName: string,
  )

Source from the content-addressed store, hash-verified

1028
1029 // Lance DB Initialization
1030 private async createLanceDocsTable(
1031 connection: LanceType.Connection,
1032 initializationVector: number[],
1033 tableName: string,
1034 ) {
1035 const mockRowTitle = "mockRowTitle";
1036 const mockRow: LanceDbDocsRow[] = [
1037 {
1038 title: mockRowTitle,
1039 vector: initializationVector,
1040 starturl: "",
1041 content: "",
1042 path: "",
1043 startline: 0,
1044 endline: 0,
1045 },
1046 ];
1047
1048 const table = await connection.createTable(tableName, mockRow);
1049
1050 await runLanceMigrations(table);
1051
1052 await table.delete(`title = '${mockRowTitle}'`);
1053 }
1054
1055 /**
1056 * From Lance: Table names can only contain alphanumeric characters,

Callers 1

getOrCreateLanceTableMethod · 0.95

Calls 2

runLanceMigrationsFunction · 0.90
deleteMethod · 0.65

Tested by

no test coverage detected