Bluz\Db\Db

PDO wrapper

Synopsis

class Db {
}

Hierarchy

Members

protected

  • $attributes — array
    PDO connection flags
  • $connect — array
    PDO connection settings
  • $handler\PDO
  • $options — array

Methods

private

protected

  • log() — Log queries by Application
  • ok() — Setup timer
  • prepare() — Prepare SQL query and return PDO Statement

public

  • connect() — Connect to Db
  • delete() — Create new query update builder
  • disconnect() — Disconnect PDO and clean default adapter
  • fetchAll() — Returns an array containing all of the result set rows
  • fetchColumn() — Returns an array containing one column from the result set rows
  • fetchColumnGroup() — Returns an array containing all of the result set rows
  • fetchGroup() — Returns an array containing all of the result set rows
  • fetchObject() — Returns an object containing first row from the result set
  • fetchObjects() — Returns an array of objects containing the result set
  • fetchOne() — Return first field from first element from the result set
  • fetchPairs() — Returns a key-value array
  • fetchRelations() — Returns an array of linked objects containing the result set
  • fetchRow() — Returns an array containing first row from the result set
  • handler() — Return PDO handler
  • insert() — Create new query insert builder
  • query() — Execute SQL query
  • quote() — Quotes a string for use in a query
  • quoteIdentifier() — Quote a string so it can be safely used as a table or column name
  • select() — Create new query select builder
  • setAttributes() — Setup attributes for PDO connect
  • setConnect() — Setup connection
  • transaction() — Transaction wrapper
  • update() — Create new query update builder

Inherited from Bluz\Common\Options

protected

public

History