The first one is the link - object for a database connection, the second a result - object which helds the result of a query.
There are two resource types used in the dbx module. The first one is the link- object for a database connection, the second a result- object which helds the result of a query.