Flupdo  v1.3
Public Member Functions | Static Public Member Functions | List of all members
Flupdo Class Reference

Description

Extend PDO class with query builder starting methods.

These methods are simple factory & proxy to FlupdoBuilder.

Inheritance diagram for Flupdo:

Public Member Functions

 __call ($method, $args)
 Returns fresh instance of Flupdo query builder. More...
 
 quoteIdent ($ident)
 Quote identifier for use in SQL query (i.e. More...
 
 rawSql ($sql)
 Returns object marking raw SQL statement. More...
 

Static Public Member Functions

static createInstanceFromConfig ($config)
 Creates instance of this class using configuration specified in array. More...
 

Member Function Documentation

__call (   $method,
  $args 
)

Returns fresh instance of Flupdo query builder.

quoteIdent (   $ident)

Quote identifier for use in SQL query (i.e.

table name, column name), preserve dot.

This is a copy of FlupdoBuilder::quoteIdent().

rawSql (   $sql)

Returns object marking raw SQL statement.

static createInstanceFromConfig (   $config)
static

Creates instance of this class using configuration specified in array.

$config is array containing these keys:

  • dsn
  • username
  • password

Or:

  • driver
  • database
  • host
  • username
  • password

See PDO documentation for details.