mindplay-dk / sql

Database framework and query builder
Other
17 stars 6 forks source link

DBMS-specific Connection implementations #15

Closed mindplay-dk closed 8 years ago

mindplay-dk commented 8 years ago

Add MySQLConnection and PostgresConnection - make PDOConnection abstract.

MySQLConnection should have lastInsertId() without arguments.

PostgresConnection may have lastInsertId() with argument, but I'm inclined to remove support for lastInsertId() on Postgres, since we have support for RETURNING now, which is much more powerful, and doesn't depend on knowing the sequence name.

mindplay-dk commented 8 years ago

We have DBMS-specific connection-types - I'm closing this issue, pending more precise proposals/specs for connection type differences, if/when required.