Skip to content

v0.5.0

Compare
Choose a tag to compare
@ucym ucym released this 31 Jul 09:31
· 38 commits to master since this release

API broken changes

CodeLapse\Database\Connection\* classes stops return false when detect database operation errors.
From now on, Connection classes throws CodeLapse\Database\DBException on detect database error (ex, PDO::query returns false, catch the Exception).
And when operation successful, some methods not return true.
Many of the methods were no longer return a value.
(if error, throws Exception, not then, It will quietly continue process.)

Related methods

  • CodeLapse\Database\Connection
    • useDB, setCharset, query, startTransaction, commit, rollback
      lastInsertId: int, quote: string