C# Class Npgsql.Tests.TestBase

显示文件 Open project: npgsql/npgsql

Protected Methods

Method Description
CreateSleepCommand ( NpgsqlConnection conn, int seconds ) : NpgsqlCommand

In PG under 9.1 you can't do SELECT pg_sleep(2) in binary because that function returns void and PG doesn't know how to transfer that. So cast to text server-side.

IsSequential ( CommandBehavior behavior ) : bool
OpenConnection ( NpgsqlConnectionStringBuilder csb ) : NpgsqlConnection
OpenConnection ( string connectionString = null ) : NpgsqlConnection
SetupLogging ( ) : void

Private Methods

Method Description
TestFixtureSetup ( ) : void

Method Details

CreateSleepCommand() protected static method

In PG under 9.1 you can't do SELECT pg_sleep(2) in binary because that function returns void and PG doesn't know how to transfer that. So cast to text server-side.
protected static CreateSleepCommand ( NpgsqlConnection conn, int seconds ) : NpgsqlCommand
conn NpgsqlConnection
seconds int
return NpgsqlCommand

IsSequential() protected static method

protected static IsSequential ( CommandBehavior behavior ) : bool
behavior CommandBehavior
return bool

OpenConnection() protected method

protected OpenConnection ( NpgsqlConnectionStringBuilder csb ) : NpgsqlConnection
csb NpgsqlConnectionStringBuilder
return NpgsqlConnection

OpenConnection() protected method

protected OpenConnection ( string connectionString = null ) : NpgsqlConnection
connectionString string
return NpgsqlConnection

SetupLogging() protected method

protected SetupLogging ( ) : void
return void