Skip to content

Releases: Modularr/Database

v2.2.1

08 Apr 15:32
Compare
Choose a tag to compare

Update 2.2.1

Force disable emulated prepared statements. For security purposes.
See for more info: http://stackoverflow.com/questions/5741187/sql-injection-that-gets-around-mysql-real-escape-string

v2.2.0

08 Apr 15:31
Compare
Choose a tag to compare

Update 2.2.0

  • Added Functions:
    • insert($table, $data)
    • update($table, $data)
    • store($table, $match='id', $data)

v2.1.0

08 Apr 15:31
Compare
Choose a tag to compare

Update 2.1.0

  • Updated Quoting function (backwards compatible)
  • Wrote extensive Documentation about it
  • Updated Functions:
    • quote($string,$remove_quotes=false)

v2.0.0

08 Apr 15:30
Compare
Choose a tag to compare

Changed static class to OOP class with optional facade API instead.

  • Changes:
    • Static Class Database:: becomes Db:: (facade)
    • Created Db::Facade($obj) function (to set a face from any $pdo object)
  • Added Functions:
    • quote()

v1.2.0

08 Apr 15:29
Compare
Choose a tag to compare

Update 1.2

  • Added Functions:
    • getPdo()
    • setPdo($query)
    • setPdo($query)
    • fetch_assoc($query)
    • fetch_safe_assoc($query)

v1.1.0

08 Apr 15:29
Compare
Choose a tag to compare

Update 1.1

  • Added Missing Functions:
    • fetchAll($query)
    • fetchAll_safe($query)

v1.0.0

08 Apr 15:27
Compare
Choose a tag to compare

Initial Release

This is the first release.

What we have now:

  • Composer Classmap Autoloading
  • Readme, License and Composer files
  • The initial Class with the following API
    • connect($db='test',$pass='',$user='root',$host='localhost',$type='mysql')
    • query($query, $params = array())
    • fetch_object($query)
    • fetch_safe_object($query)
    • num_rows($query)