MCPcopy Index your code
hub / github.com/simstudioai/sim / tableNameFor

Function tableNameFor

apps/sim/app/api/knowledge/utils.test.ts:91–96  ·  view source on GitHub ↗
(table: any)

Source from the content-addressed store, hash-verified

89vi.mock('@sim/db', async () => {
90 const { schemaMock } = (await import('@sim/testing')) as typeof import('@sim/testing')
91 const tableNameFor = (table: any) => {
92 if (table === schemaMock.knowledgeBase) return 'knowledge_base'
93 if (table === schemaMock.document) return 'document'
94 if (table === schemaMock.embedding) return 'embedding'
95 return ''
96 }
97 const selectBuilder = {
98 from(table: any) {
99 return {

Callers 2

limitFunction · 0.85
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected