In Drupal, if you want to insert something into the node table, 'nid' can be null, but 'vid' can't. The inverse is true for the node_revision table.
So my question is, in what order are inserts done to the Drupal db when a node is created?
i.e. I can't insert into the node table, because I don't have the VID, and I can't insert into the node_revision table, because I don't have a nid.
Also, is there some kind of function available that can easily do this insert for you?