C# Class PHP.Library.Data.PhpMyDbConnection

Summary description for PhpMyDbConnection.
Inheritance: PHP.Library.Data.PhpDbConnection
显示文件 Open project: DEVSENSE/PhalangerMySql Class Usage Examples

Private Properties

Property Type Description
QueryGlobalVariable object
SetServer void
StripErrorNumber string
ValidConnection PhpMyDbConnection

Public Methods

Method Description
GetExceptionMessage ( Exception e ) : string

Gets a message from an exception raised by the connector. Removes the initial #{number} and the ending dot.

GetLastErrorMessage ( ) : string

Gets the last error message.

GetLastErrorNumber ( ) : int

Gets last error number.

PhpMyDbConnection ( string connectionString ) : System

Creates a connection resource.

Protected Methods

Method Description
CreateCommand ( ) : IDbCommand

Command factory.

GetResult ( PHP.Library.Data.PhpDbConnection connection, IDataReader reader, bool convertTypes ) : PHP.Library.Data.PhpDbResult

Gets a query result resource.

Private Methods

Method Description
QueryGlobalVariable ( string name ) : object

Queries server for a value of a global variable.

SetServer ( string value ) : void
StripErrorNumber ( string msg ) : string
ValidConnection ( PHP.Core.PhpResource handle ) : PhpMyDbConnection

Method Details

CreateCommand() protected method

Command factory.
protected CreateCommand ( ) : IDbCommand
return IDbCommand

GetExceptionMessage() public method

Gets a message from an exception raised by the connector. Removes the initial #{number} and the ending dot.
is a null reference.
public GetExceptionMessage ( Exception e ) : string
e System.Exception Exception.
return string

GetLastErrorMessage() public method

Gets the last error message.
public GetLastErrorMessage ( ) : string
return string

GetLastErrorNumber() public method

Gets last error number.
public GetLastErrorNumber ( ) : int
return int

GetResult() protected method

Gets a query result resource.
protected GetResult ( PHP.Library.Data.PhpDbConnection connection, IDataReader reader, bool convertTypes ) : PHP.Library.Data.PhpDbResult
connection PHP.Library.Data.PhpDbConnection Database connection.
reader IDataReader Data reader to be used for result resource population.
convertTypes bool Whether to convert data types to PHP ones.
return PHP.Library.Data.PhpDbResult

PhpMyDbConnection() public method

Creates a connection resource.
public PhpMyDbConnection ( string connectionString ) : System
connectionString string
return System