C# Class PHP.Library.Data.PhpMyDbConnection

Summary description for PhpMyDbConnection.
Inheritance: PHP.Library.Data.PhpDbConnection
Afficher le fichier Open project: DEVSENSE/PhalangerMySql Class Usage Examples

Private Properties

Свойство Type Description
QueryGlobalVariable object
SetServer void
StripErrorNumber string
ValidConnection PhpMyDbConnection

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Command factory.
protected CreateCommand ( ) : IDbCommand
Résultat IDbCommand

GetExceptionMessage() public méthode

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.
Résultat string

GetLastErrorMessage() public méthode

Gets the last error message.
public GetLastErrorMessage ( ) : string
Résultat string

GetLastErrorNumber() public méthode

Gets last error number.
public GetLastErrorNumber ( ) : int
Résultat int

GetResult() protected méthode

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.
Résultat PHP.Library.Data.PhpDbResult

PhpMyDbConnection() public méthode

Creates a connection resource.
public PhpMyDbConnection ( string connectionString ) : System
connectionString string
Résultat System