{"version":"1.0","type":"rich","title":"Try db_merge","description":"This example demonstrates a Drupal database merge operation using the `db_merge` API. It shows how to insert or update a record in the `linkchecker_bean` table, matching on the `bid` and `lid` keys from two objects, `$bean` and `$link`. The code explicitly sets both the key and field arrays to the same values, so the merge either updates an existing row with those keys or inserts a new one. No visualization library is involved; the rendering approach is a plain PHP script executed in a Drupal context.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b319f2629e5a7ccc684550fa7727246b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}