Show / Hide Table of Contents

Interface INpgsqlDatabaseInfoFactory

A factory which get generate instances of NpgsqlDatabaseInfo, which describe a database and the types it contains. When first connecting to a database, Npgsql will attempt to load information about it via this factory.

Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public interface INpgsqlDatabaseInfoFactory

Methods

Load(NpgsqlConnection, NpgsqlTimeout, Boolean)

Given a connection, loads all necessary information about the connected database, e.g. its types. A factory should only handle the exact database type it was meant for, and return null otherwise.

Declaration
Task<NpgsqlDatabaseInfo> Load(NpgsqlConnection conn, NpgsqlTimeout timeout, bool async)
Parameters
Type Name Description
NpgsqlConnection conn
NpgsqlTimeout timeout
System.Boolean async
Returns
Type Description
System.Threading.Tasks.Task<NpgsqlDatabaseInfo>

An object describing the database to which conn is connected, or null if the database isn't of the correct type and isn't handled by this factory.

Back to top Generated by DocFX