nearinfinity/node-db-meta — pull request #2 by tvernon (2012-07-24 21:08:41+00:00)
Title: New metadata functions for db-meta closes #1

Adds the isUnique and isAutoIncrementing methods to the db-meta package.
isUnique returns true if the column in question was explicitly defined as unique or implicitly unique, by being a primary key.
isAutoIncrementing returns true if the column has either been defined to autoincrement, or defined as serial, in the case of postgreSQL.

New tests checking these functions have also been added.