(n: number)
| 100 | where() { |
| 101 | return { |
| 102 | limit(n: number) { |
| 103 | const tableName = tableNameFor(table) |
| 104 | |
| 105 | if (tableName === 'knowledge_base') { |
| 106 | return Promise.resolve(kbRows.slice(0, n)) |
| 107 | } |
| 108 | if (tableName === 'document') { |
| 109 | return Promise.resolve(docRows.slice(0, n)) |
| 110 | } |
| 111 | if (tableName === 'embedding') { |
| 112 | return Promise.resolve(chunkRows.slice(0, n)) |
| 113 | } |
| 114 | |
| 115 | return Promise.resolve([]) |
| 116 | }, |
| 117 | } |
| 118 | }, |
| 119 | innerJoin() { |
nothing calls this directly
no test coverage detected