Function3

Register a function that's used to generate a foreign key for a particular row.