Search Results for

    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.Internal
    Assembly: Npgsql.dll
    Syntax
    public interface INpgsqlDatabaseInfoFactory

    Methods

    Load(NpgsqlConnector, 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(NpgsqlConnector conn, NpgsqlTimeout timeout, bool async)
    Parameters
    Type Name Description
    NpgsqlConnector conn
    NpgsqlTimeout timeout
    Boolean async
    Returns
    Type Description
    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.

    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team