Class

DBFactory

Package: IO\DB\factory Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2009 10 01 Located at: io/db/factory/DBFactory.class.php

This factory provides the

DBConnection

and the

SQLQuerier

for the right sgbd.

Methods summary
public static
# __static( )
public static
public static
# init_factory( $dbms )
public static DBConnection
# get_db_connection( )

returns the currently opened

DBConnection

instance or if none, creates a new one

public static
public static
public static
public static SQLQuerier
# new_db_connection( )

returns a new

DBConnection

instance

public static SQLQuerier
# new_sql_querier( DBConnection $db_connection )

returns a new

SQLQuerier

instance

public static
# new_dbms_util( SQLQuerier $querier, $dbms_type = null )
Constants summary
integer MYSQL
# 0x01
integer PDO_MYSQL
# 0x11
integer PDO_SQLITE
# 0x12
integer PDO_POSTGRESQL
# 0x13