Search Results for

    Show / Hide Table of Contents

    Class NpgsqlConnector

    Represents a connection to a PostgreSQL backend. Unlike NpgsqlConnection objects, which are exposed to users, connectors are internal to Npgsql and are recycled by the connection pool.

    Inheritance
    object
    NpgsqlConnector
    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlConnector

    Properties

    | Improve this Doc View Source

    DatabaseInfo

    Information about PostgreSQL and PostgreSQL-like databases (e.g. type definitions, capabilities...).

    Declaration
    public NpgsqlDatabaseInfo DatabaseInfo { get; }
    Property Value
    Type Description
    NpgsqlDatabaseInfo
    | Improve this Doc View Source

    Settings

    The parsed connection string.

    Declaration
    public NpgsqlConnectionStringBuilder Settings { get; }
    Property Value
    Type Description
    NpgsqlConnectionStringBuilder
    | Improve this Doc View Source

    TextEncoding

    Declaration
    public Encoding TextEncoding { get; }
    Property Value
    Type Description
    Encoding

    Methods

    | Improve this Doc View Source

    CreateBatch()

    Creates and returns a NpgsqlBatch object associated with the NpgsqlConnector.

    Declaration
    public NpgsqlBatch CreateBatch()
    Returns
    Type Description
    NpgsqlBatch

    A NpgsqlBatch object.

    | Improve this Doc View Source

    CreateCommand(string?)

    Creates and returns a NpgsqlCommand object associated with the NpgsqlConnector.

    Declaration
    public NpgsqlCommand CreateCommand(string? cmdText = null)
    Parameters
    Type Name Description
    string? cmdText

    The text of the query.

    Returns
    Type Description
    NpgsqlCommand

    A NpgsqlCommand object.

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