C# Class PHP.Library.Data.MySQLPDODriver

Inheritance: PHP.Library.Data.PDODriver
Show file Open project: DEVSENSE/PhalangerMySql

Public Methods

Method Description
ConvertDbValue ( object sqlValue, string dataType ) : object

Converts DB value to PHP value.

CreateStatement ( ScriptContext context, PHP.Library.Data.PDO pdo ) : PHP.Library.Data.PDOStatement

Creates new PDO statement.

GetLastInsertId ( ScriptContext context, PHP.Library.Data.PDO pdo, string name ) : object
OpenConnection ( ScriptContext context, string dsn_data, string username, string password, object argdriver_options ) : PHP.Library.Data.PDOConnection

Creates new PDO DB connection.

Quote ( ScriptContext context, object strobj, PDOParamType param_type ) : object

Quotes given command.

Protected Methods

Method Description
IsValueValidForAttribute ( int att, object value ) : bool

Private Methods

Method Description
SetupConnectionString ( MySqlConnectionStringBuilder csb, string dsn_data ) : void

Method Details

ConvertDbValue() public method

Converts DB value to PHP value.
public ConvertDbValue ( object sqlValue, string dataType ) : object
sqlValue object
dataType string
return object

CreateStatement() public method

Creates new PDO statement.
public CreateStatement ( ScriptContext context, PHP.Library.Data.PDO pdo ) : PHP.Library.Data.PDOStatement
context PHP.Core.ScriptContext
pdo PHP.Library.Data.PDO
return PHP.Library.Data.PDOStatement

GetLastInsertId() public method

public GetLastInsertId ( ScriptContext context, PHP.Library.Data.PDO pdo, string name ) : object
context PHP.Core.ScriptContext
pdo PHP.Library.Data.PDO
name string
return object

IsValueValidForAttribute() protected method

protected IsValueValidForAttribute ( int att, object value ) : bool
att int
value object
return bool

OpenConnection() public method

Creates new PDO DB connection.
public OpenConnection ( ScriptContext context, string dsn_data, string username, string password, object argdriver_options ) : PHP.Library.Data.PDOConnection
context PHP.Core.ScriptContext
dsn_data string
username string
password string
argdriver_options object
return PHP.Library.Data.PDOConnection

Quote() public method

Quotes given command.
public Quote ( ScriptContext context, object strobj, PDOParamType param_type ) : object
context PHP.Core.ScriptContext
strobj object
param_type PDOParamType
return object