Describe my "special" table to views I'm developing a module, and there is a table that needs views integration. The table is not so special, but can't find a solution yet.

This is how my table looks:
nid_a|nid_b|data

I would like to join this table to the node base table, with nid_a as joining key, and nid_b should come from a contextual filter (aka argument).

How can I achieve this?

System: Drupal 7.x and Views 3.x
Create a custom module and use the hook_views_Data. Here is a link for doing that