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

    Methods

    | Improve this Doc

    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
    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.

    • Improve this Doc
    In This Article
    Back to top © Copyright 2021 The Npgsql Development Team