MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / getIDField

Method getIDField

internal/search/search.go:406–411  ·  view source on GitHub ↗

getIDField returns the primary ID field name for a given table

(table string)

Source from the content-addressed store, hash-verified

404
405// getIDField returns the primary ID field name for a given table
406func (t *TypesenseClient) getIDField(table string) string {
407 if config, ok := collectionConfigs[table]; ok {
408 return config.IDField
409 }
410 return ""
411}
412
413// upsertDocument handles the final upsert operation to Typesense
414func (t *TypesenseClient) upsertDocument(ctx context.Context, table string, data map[string]interface{}) error {

Callers 2

upsertDocumentMethod · 0.95

Calls

no outgoing calls

Tested by 1