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.Internal
Assembly: Npgsql.dll
Syntax
public interface INpgsqlDatabaseInfoFactory
Methods
| Improve this Doc View SourceLoad(NpgsqlConnector, NpgsqlTimeout, bool)
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(NpgsqlConnector conn, NpgsqlTimeout timeout, bool async)
Parameters
Type | Name | Description |
---|---|---|
NpgsqlConnector | conn | |
NpgsqlTimeout | timeout | |
bool | async |
Returns
Type | Description |
---|---|
Task<><NpgsqlDatabaseInfo> | An object describing the database to which |