Properly abstract LastInsertID

This commit is contained in:
Aaron L 2016-08-13 16:27:34 -07:00
parent ef03225024
commit 944303f2f5
9 changed files with 93 additions and 94 deletions
bdb/drivers

View file

@ -74,6 +74,11 @@ func (p *PostgresDriver) Close() {
p.dbConn.Close()
}
// UseLastInsertID returns false for postgres
func (p *PostgresDriver) UseLastInsertID() bool {
return false
}
// TableNames connects to the postgres database and
// retrieves all table names from the information_schema where the
// table schema is public. It excludes common migration tool tables