getIDField returns the primary ID field name for a given table
(table string)
| 404 | |
| 405 | // getIDField returns the primary ID field name for a given table |
| 406 | func (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 |
| 414 | func (t *TypesenseClient) upsertDocument(ctx context.Context, table string, data map[string]interface{}) error { |
no outgoing calls